Packagecom.esri.baserver.tasks.stdgeographies
Classpublic class ThematicMappingQueryTask
InheritanceThematicMappingQueryTask Inheritance Object
Implements IQueryTask, IBATask, IBADatasetParameters

The ThematicMappingQueryTask class implements the IQueryTask facade for a task executing a Business Analyst Server thematic mapping query.

See also

IQueryTask


Public Properties
 PropertyDefined By
  activeDatasetID : String
Active dataset ID.
ThematicMappingQueryTask
  dataHierarchy : String
Name of a data hierarchy used for summarization.
ThematicMappingQueryTask
  disableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache.
ThematicMappingQueryTask
  isFullErrorMessage : Boolean
Produce an error message with stack trace (true) or without stack trace (false).
ThematicMappingQueryTask
  proxyURL : String
The URL to proxy the request through.
ThematicMappingQueryTask
  requestTimeout : Number
The request timeout in seconds.
ThematicMappingQueryTask
  token : String
Token for accessing a secure HTTP client.
ThematicMappingQueryTask
  tokenProvider : ITokenProvider
Provider responsible for updating the security token if the last one expires.
ThematicMappingQueryTask
  url : String
The base URL to the Business Analyst Server HTTP Service.
ThematicMappingQueryTask
Public Methods
 MethodDefined By
  
ThematicMappingQueryTask(urlOrClient:Object = null)
Creates a new instance of the ThematicMappingQueryTask class.
ThematicMappingQueryTask
  
createGeographyLayerInfo(geoLevelId:String, name:String, generalizationLevel:int, scale:Number, idField:String, nameField:String):IGeographyLayerInfo
Creates a new geography layer info object owned by this task.
ThematicMappingQueryTask
  
execute(layerInfo:IGeographyLayerInfo, query:Query, responder:IResponder):Boolean
Executes a query for the given layer if the layer is owned by this task.
ThematicMappingQueryTask
  
initialize(responder:IResponder):void
Initializes the query task.
ThematicMappingQueryTask
Property Detail
activeDatasetIDproperty
activeDatasetID:String

Active dataset ID. Null value means the default Business Analyst Server dataset which is the first dataset in the dataset list is used.

The default value is null.


Implementation
    public function get activeDatasetID():String
    public function set activeDatasetID(value:String):void
dataHierarchyproperty 
dataHierarchy:String

Since : Community Analyst API for Flex 2.2.

Name of a data hierarchy used for summarization. If this property value is null or empty, the default data hierarchy is used. List of available data hierarchies can be retrieved with Get Data Hierarchies task.


Implementation
    public function get dataHierarchy():String
    public function set dataHierarchy(value:String):void

See also

disableClientCachingproperty 
disableClientCaching:Boolean

If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache.

The default value is false.


Implementation
    public function get disableClientCaching():Boolean
    public function set disableClientCaching(value:Boolean):void
isFullErrorMessageproperty 
isFullErrorMessage:Boolean

Produce an error message with stack trace (true) or without stack trace (false).


Implementation
    public function get isFullErrorMessage():Boolean
    public function set isFullErrorMessage(value:Boolean):void
proxyURLproperty 
proxyURL:String

The URL to proxy the request through.


Implementation
    public function get proxyURL():String
    public function set proxyURL(value:String):void
requestTimeoutproperty 
requestTimeout:Number

The request timeout in seconds. A value less than or equal to zero prevents request timeout.

The default value is -1.


Implementation
    public function get requestTimeout():Number
    public function set requestTimeout(value:Number):void
tokenproperty 
token:String

Token for accessing a secure HTTP client.


Implementation
    public function get token():String
    public function set token(value:String):void
tokenProviderproperty 
tokenProvider:ITokenProvider

Provider responsible for updating the security token if the last one expires.


Implementation
    public function get tokenProvider():ITokenProvider
    public function set tokenProvider(value:ITokenProvider):void
urlproperty 
url:String

The base URL to the Business Analyst Server HTTP Service.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
ThematicMappingQueryTask()Constructor
public function ThematicMappingQueryTask(urlOrClient:Object = null)

Creates a new instance of the ThematicMappingQueryTask class.

A new task can be constructed in two ways: as a task sharing a BAServerClient type instance with other tasks (the urlOrClient parameter has the BAServerClient type) or as a standalone task encapsulating its own client.

The base URL to the Business Analyst Server HTTP Service looks as follows:

http://{host}:{port}/ArcGIS/baserver/REST/services/DefaultMap/BAServer

The {host} and {port} parameters in this URL should be substituted with valid Business Analyst Server host name and port, respectively.

Parameters
urlOrClient:Object (default = null) — A variable containing either Business Analyst Server HTTP Service base URL string or an instance of the BAServerClient class.

See also

Method Detail
createGeographyLayerInfo()method
public function createGeographyLayerInfo(geoLevelId:String, name:String, generalizationLevel:int, scale:Number, idField:String, nameField:String):IGeographyLayerInfo

Creates a new geography layer info object owned by this task.

Parameters

geoLevelId:String — ID of a standard geography level to find geography features in.
 
name:String — Display name of this layer.
 
generalizationLevel:int — Generalization of a standard geography level to find geography features in.
 
scale:Number — Maximum scale value the layer supports.
 
idField:String — Name of field representing a feature ID.
 
nameField:String — Name of field representing a feature name.

Returns
IGeographyLayerInfo — A new geography layer info object.
execute()method 
public function execute(layerInfo:IGeographyLayerInfo, query:Query, responder:IResponder):Boolean

Executes a query for the given layer if the layer is owned by this task.

This task is an owner of layers that were returned by the initialize method createGeographyLayerInfo method and copies of layers created with the IGeographyLayerInfo.createCopy method.

Before executing the query, the method tests that this task owns the given geography layer. If not, the query task doesn't executed.

Parameters

layerInfo:IGeographyLayerInfo — A geography layer to execute query on.
 
query:Query — A query to execute.
 
responder:IResponder — A responder to handle query results.

Returns
Boolean — True if the query task is started.
initialize()method 
public function initialize(responder:IResponder):void

Initializes the query task.

Parameters

responder:IResponder — A responder to handle initialization results.