CombineDataBy property
Returns the method by which data has been combined to display on the map. Read-only GeoCombineDataBy.
GeoCombineDataBy | Value | Description |
---|---|---|
geoCombineByAdd |
1
|
Data was combined by adding |
geoCombineByAverage |
2
|
Data was combined by calculating an average |
geoCombineByCount |
3
|
Data was combined by a count |
geoCombineByDefault |
–1
|
Not valid for use with the CombineDataBy property |
geoCombineByNone |
0
|
Data was not combined |
Applies to
Objects: DataMap
Syntax
object.CombineDataBy
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a DataMap object. |
Remarks
This is useful when the data is shown on the map at a different geographic level than the source data. For example, if imported data for the United States is at the county level but displayed in MapPoint at the state level, you can use the CombineDataBy property to see how the data was combined.
Example
Sub GetInfoAboutDataMapAggregation()
Dim objApp As New MapPoint.Application
Dim objDataMap As MapPoint.DataMap
'Set up application and objects to use
objApp.Visible = True
objApp.UserControl = True
'Let user create data map
Set objDataMap = objApp.ActiveMap.DataSets.ShowDataMappingWizard()
'Get information about the aggregation of data
Select Case objDataMap.CombineDataBy
Case geoCombineByNone
MsgBox "This data is not combined to a higher level."
Case geoCombineByAdd
MsgBox "This data is combined by adding the values."
Case geoCombineByAverage
MsgBox "This data is combined by averaging the values."
Case geoCombineByCount
MsgBox "This data is combined by counting the number of values."
End Select
End Sub