Packagecom.esri.ags.tasks.geoEnrichmentClasses
Classpublic class GeographyQueryBase
InheritanceGeographyQueryBase Inheritance Object
Subclasses GeographyQuery, SubGeographyQuery

Since : ArcGIS API 3.5 for Flex

Base class extended by GeographyQuery and SubGeographyQuery.

See also

com.esri.ags.tasks.geoEnrichmentClasses.GeographyQuery
com.esri.ags.tasks.geoEnrichmentClasses.SubGeographyQuery
com.esri.ags.tasks.StandardGeographyQueryTask
ArcGIS Help - Standard Geography Query


Public Properties
 PropertyDefined By
  countryId : String
Optional parameter to specify the source country for the search.
GeographyQueryBase
  datasetId : String
Optional parameter to specify a specific dataset within a defined country.
GeographyQueryBase
  featureLimit : int = 1000
Optional integer value where you can limit the number of features that are returned from the query.
GeographyQueryBase
  generalizationLevel : int = 0
Optional integer that specifies the level of generalization or detail in the area representations of the administrative boundary or standard geographic data layers.
GeographyQueryBase
  outSpatialReference : SpatialReference
Optional parameter to request the output geometries in a specified spatial reference system.
GeographyQueryBase
  returnCentroids : Boolean = false
Optional Boolean parameter to request the output geometry to return the center point for each feature.
GeographyQueryBase
  returnGeometry : Boolean = false
Optional parameter to request the output geometries in the response.
GeographyQueryBase
  useFuzzySearch : Boolean = false
Optional Boolean parameter to define if text provided in the query parameter should utilize fuzzy search logic.
GeographyQueryBase
Property Detail
countryIdproperty
public var countryId:String

Optional parameter to specify the source country for the search. Use this parameter to limit the search and query of standard geographic features to one country. This parameter supports both the two-digit and three-digit country codes illustrated in the coverage table.

See also


Example
ActionScript code for specifying a countryId
     var query:GeographyQueryBase = new GeographyQueryBase();
     query.countryId = "US";
datasetIdproperty 
public var datasetId:String

Optional parameter to specify a specific dataset within a defined country. Some countries may have two or more datasets that may have different vintages and standard geography areas. For example, in the United States, there may be an optional dataset with historic census data from previous years.


Example
ActionScript code for specifying a countryId
     var query:GeographyQueryBase = new GeographyQueryBase();
     query.datasetId = "USA_ESRI_2013";
featureLimitproperty 
public var featureLimit:int = 1000

Optional integer value where you can limit the number of features that are returned from the query. The Standard Geography Query service has a maximum of 5000 features. The featureLimit parameter cannot exceed this maximum.

The default value is 1000.

See also

generalizationLevelproperty 
public var generalizationLevel:int = 0

Optional integer that specifies the level of generalization or detail in the area representations of the administrative boundary or standard geographic data layers. Values must be whole integers from 0 through 6, where 0 is most detailed and 6 is most generalized.

A generalizationLevel of 0 will return the most detailed and precise polygon area features. Bandwidth "cost" for detailed features will be greater and may lead to performance issues depending on the number and size of the features in the query of the service request. On the other hand, a generalizationLevel of 6 will produce a much smaller and much less detailed polygon. Less detailed features may not look as precise or match the shoreline of basemaps.

The default value is 0.

See also

outSpatialReferenceproperty 
public var outSpatialReference:SpatialReference

Optional parameter to request the output geometries in a specified spatial reference system. When returnGeometry is set to true, this optional parameter can be specified to explicitly indicate the spatial reference system of the output geometry. If no outSpatialReference is specified, results will be returned in Geographic coordinate system (GCS_WGS_1984) Well-known ID 4326.

See also


Example
To display query results on a map, make sure to return geometries and setting the outSpatialReference as appropriate:
     <esri:GeographyQuery id="query" outSpatialReference="{myMap.spatialReference}" where="{qText.text}" returnGeometry="true">
returnCentroidsproperty 
public var returnCentroids:Boolean = false

Optional Boolean parameter to request the output geometry to return the center point for each feature. Use this parameter to return all the geometries as points.

Note:

The default value is false.

See also

returnGeometryproperty 
public var returnGeometry:Boolean = false

Optional parameter to request the output geometries in the response. When this parameter is set to true, the output geometries associated with each feature will be included in the response. The output geometries will be in the spatial reference system defined by outSpatialReference. Only use when you plan to use the geometry of the feature, for example, to include them on a map.

Requesting output geometries can significantly increase the payload size of the output response which will increase the amount of time it takes to receive the response and negatively affect the speed and performance of any client applications consuming the service.

The default value is false.

See also

useFuzzySearchproperty 
public var useFuzzySearch:Boolean = false

Optional Boolean parameter to define if text provided in the query parameter should utilize fuzzy search logic. Using this approach will also help find matches for common misspellings. For example, the state of California can be found if the state name is spelled incorrectly with “Californa”. The output response has a “score” field that specifies how similar the output attribute is to the query input text. Values range from 0 to 100. A score of 100 indicates a perfect string match.

Note:

The default value is false.

See also