FRAMES | NO FRAMES
GetDataHierarchies Method

Gets the list of all available hierarchies of data layers.

Availability: Business Analyst Server 10.0.

string[] GetDataHierarchies ( 
    string  ActiveDatasetID       
);

Parameter Description
ActiveDatasetID (Optional parameter — can be null).
ID of the active dataset. Type String.

Returns

Variable of type String[] containing the list of all available hierarchies of data layers

Remarks

Business Analyst Server uses demographic data from layers of a data hierarchy to calculate summarization variables for a custom boundary layer. The calculated data are then shown in reports or appended as attribute fields to output boundary layers. A data hierarchy is usually specified with the DataHierarchy parameter of a Business Analyst task. If this parameter is omitted, the default "Standard Business Analyst Data" hierarchy is used in demographic calculations.

Examples

The example below requests a string array of available hierarchies of data layers.

C#
// Instantiate the BAServerHelper class to access analysis methods
BAServerHelper baServerHelper = new BAServerHelper();
baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter
 
string[] dataHierarchies = baServerHelper.GetDataHierarchies();

See Also