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 varies between MapPoint Europe and MapPoint North America. See the Country parameter description for more information.

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
geoCountryCanada Canada MapPoint North America
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 on the demographics included for each country, see the following Help topics:

Austria demographic data

Canada 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 (1980)")     '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 sample code is specific for use in MapPoint North America; it is for illustration purposes only.