To associate the values in your OLAP data with the regions of an ESRI map, your cube must contain member properties whose values match the field values in the ESRI map service. For each level of a hierarchy that you want to use with the ESRI map component, you must define a member property named SAS_SPATIAL_ID to identify the map region.
For each level, the column that you specify for the SAS_SPATIAL_ID property must fulfill the following requirements:
A cube contains a Geography hierarchy with the levels Country > Region:
Level | Column | Description |
Country | Country_name | identifies the countries by name |
Region | Region_name | identifies the regions by name |
(none) | Region_code | identifies the regions by region code |
The ESRI map service contains layers named Countries and Regions, which correspond to the Country and Region levels:
Layer | Field | Field Description |
Countries | country-name | identifies the countries by name |
country-code | identifies the countries by code | |
Regions | region-name | identifies the regions by name |
region-code | identifies the regions by code |
The values in the Country_name column are unique, and they match the values of the country-name field, so you can use these values to associate the Country level with the Countries layer. In your OLAP data, create a SAS_SPATIAL_ID property for the Country level and specify the Country_name column. In the ESRI mapping configuration file, specify the country-name field in the definition for the Countries layer.
The values in the Region_name column match the values of the region-name field, but they are not unique. For example, there is a West region for several countries. The values in the Region_code column are unique, and they match the values of the region-code field, so you can use these values to associate the Region level with the Regions field. In your OLAP data, create a SAS_SPATIAL_ID property for the Region level and specify the Region_code column. In the ESRI mapping configuration file, specify the region-code field in the definition for the Regions layer.
To create the member properties, you can use two different methods:
You can create member properties by using the PROPERTY statement in the OLAP procedure. For example, the following code fragment creates the properties for the Geography hierarchy from the preceeding example:
property SAS_SPATIAL_ID column=Country_name hierarchy=Geography level=Country; property SAS_SPATIAL_ID column=Region_code hierarchy=Geography level=Region;
For more information, see The OLAP Procedure in SAS OLAP Server: Administrator's Guide.
To create member properties by using SAS OLAP Cube Studio:
Name | - enter SAS_SPATIAL_ID. |
Level | - select the hierarchy level. |
Column | - select the column that corresponds to the level that you selected. |