FRAMES | NO FRAMES
CreateStdGeographies Method

Creates a study/trade area consisting of standard geography regions.

Availability: Business Analyst Server.

TaskResultOutput CreateStdGeographies ( 
    CreateStdGeographiesParams  Parameters, 
    TaskOutputType[]            OutputTypes, 
    esriFolderItem              OutputAnalysisItem 
); 

Parameter Description
Parameters Configuration options for analysis. Type CreateStdGeographiesParams.
OutputTypes Array of task output options. Options for this method include creating a feature layer for subsequent analysis (GetFeatureClass). Type TaskOutputType[].
OutputAnalysisItem (Optional parameter — can be null).
Configuration options for storing the output feature layer in the repository. This will enable viewing and working with the output result in subsequent tasks. Type esriFolderItem.

Returns

Variable of type TaskResultOutput

Examples

The example below generates a study/trade area consisting of regions defined by a list. This particular example specifies a list of counties using five-digit Federal Information Processing Standard (FIPS) county codes. The list of available geography levels could be retrieved with GetStandardGeographyLevels method.

C#
// Instantiate the BAServerHelper class to access analysis methods
BAServerHelper baServerHelper = new BAServerHelper();
baServerHelper.ActiveDatasetID = "USA_ESRI"; // Optional parameter
baServerHelper.IsFullErrorMessage = true;    // Default is false
 
StdGeographiesFeaturesInLevel featuresInLevel = new StdGeographiesFeaturesInLevel();
featuresInLevel.LevelID = "US.Counties";
 
// Specify FIPS codes for Chilton, Dale, and Talladega Counties, respectively
featuresInLevel.FeatureID = new string[] { "01021", "01045", "01121" };
 
CreateStdGeographiesParams parameters = new CreateStdGeographiesParams();
parameters.FeatureList = new StdGeographiesFeaturesInLevel[] { featuresInLevel };
 
esriFolderItem outputLayer = null;
 
TaskResultOutput result = baServerHelper.CreateStdGeographies(parameters, outputLayer);
 
// The result.RecordSet now contains polygons for requested standard geographies

See Also