Share via


GetDemographics method

Creates a data set of demographics for a specified country or for worldwide data. Returns a DataSet object.

Note  Countries for which demographic data is available vary between Microsoft MapPoint with European maps and MapPoint with North American maps.  For more information, see the Country parameter description.

Applies to

Collections:  DataSets

Syntax

object.GetDemographics(Country)

Parameters

Part Description
object Required. An expression that returns a DataSets collection.
Country Required GeoCountry. The country for which demographics are added. Default is geoCountryDefault. The following GeoCountry values are valid for the GetDemographics method:
GeoCountry Description Version
geoCountryAustria Austria MapPoint Europe
geoCountryDefault Default shown in the Data Mapping Wizard MapPoint Europe

MapPoint North America

geoCountryFrance France MapPoint Europe
geoCountryGermany Germany MapPoint Europe
geoCountryItaly Italy MapPoint Europe
geoCountryNetherlands Netherlands MapPoint Europe
geoCountrySpain Spain MapPoint Europe
geoCountrySwitzerland Switzerland MapPoint Europe
geoCountryUnitedKingdom Great Britain MapPoint Europe
geoCountryUnitedStates United States MapPoint North America
geoCountryMultiCountry Worldwide MapPoint Europe

MapPoint North America

Remarks

For information about the demographics included for each country, see the following Help topics:

Austria demographic data

France demographic data

Germany demographic data

Great Britain demographic data

Italy demographic data

Netherlands demographic data

Spain demographic data

Switzerland demographic data

United States demographic data

Worldwide country data

Example

    Sub CreateShadedAreaMapUsingMapPointDemographics()
    Dim objApp As New MapPoint.Application
    Dim objDataSet As MapPoint.DataSet
    Dim objDataMap As MapPoint.DataMap
    Dim objField As MapPoint.Field

    'Set up application     objApp.Visible = True     objApp.UserControl = True
    'Get a new demographics set to DataMap     Set objDataSet = objApp.ActiveMap.DataSets.GetDemographics()
    'Get a field from the demographics     Set objField = objDataSet.Fields("Households (2000)")     'Create the data map and give it a name     Set objDataMap = _       objDataSet.DisplayDataMap(geoDataMapTypeShadedArea, _       objField, geoShowByRegion1, geoCombineByDefault, _       geoRangeTypeDiscreteEqualRanges, geoRangeOrderDefault, 15)     objDataMap.LegendTitle = "State Households"   End Sub

Note  This code example is specifically for use in MapPoint North America; it is for illustration purposes only.