FRAMES | NO FRAMES |
Gets IDs and names of standard geography levels.
Availability: Business Analyst Server, Business Analyst Online.
IDNamePair[] GetStandardGeographyLevels ( string ActiveDatasetID );
Parameter | Description |
---|---|
ActiveDatasetID | (Since version 9.3.1, this parameter is optional — it can be null). ID of the active dataset. Type String. Available with Business Analyst Server. |
Variable of type IDNamePair[]
Use this method when you want IDs and names of standard geography levels available for use in Business Analyst Server SOAP methods.
The example below requests all standard geography levels available in the Business Analyst Server core dataset.
C# |
// Instantiate the BAServerHelper class to access analysis methods BAServerHelper baServerHelper = new BAServerHelper(); baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter IDNamePair[] levels = baServerHelper.GetStandardGeographyLevels(); // Iterate through geography levels and create their description in the // levelDescriptions array. string[] levelDescriptions = new string[levels.Length]; for (int i = 0; i < levels.Length; i++) { levelDescriptions[i] = "ID: " + levels[i].ID + "; NAME: " + levels[i].Name; } |