dojo.require("esri.tasks.geoenrichment.StandardGeographyQueryTask");
Description
(Added at v3.12)
(Currently in beta)
Geoenrichment helper task that returns standard geography IDs and features for the supported geographic levels in Canada, the United States and a number of European countries. For example, you can use this service to find the FIPS for the county of San Diego, which is 06073. You can then use this FIPS ID within the Geoenrichment service study area definition to get geometry and optional demographic data for the county.
Samples
Search for
samples that use this class.
Constructors
Methods
Events
[ On Style Events | Connect Style Event ]
All On Style event listeners receive a single event object. Additionally, the event object also contains a 'target' property whose value is the object which fired the event.
Constructor Details
Creates a new instance of the StandardGeographyQueryTask class.
Parameters:
<String > url |
Optional |
URL to the Geoenrichment server. Defaults to the World Geoenrichment Server (http://geoenrich.arcgis.com/arcgis/rest/services/World/GeoenrichmentServer) if a valid URL is not provided. |
Method Details
Executes the StandardGeographyQueryTask. Fires the onExecuteComplete event when completed successfully, and the onError event if an error occurs.
Event Details
[ On Style Events | Connect Style Event ]
Fires when an error occurs during the query.
Event Object Properties:
<Error > error |
Fires when an error occurs during the query. |
Fires when the query successfully executes.
Event Object Properties:
<FeatureSet > features |
The FeatureSet returned from the query. |
Fires when an error occurs during the query.
Event Object Properties:
<Error > error |
Fires when an error occurs during the query. |
Fires when the query successfully executes.
Event Object Properties:
<FeatureSet > features |
The FeatureSet returned from the query. |