Packagecom.esri.bao.tasks.geofence
Classpublic class GeofenceInfoParameters
InheritanceGeofenceInfoParameters Inheritance AnalysisParameters Inheritance BATaskParameters Inheritance Object
Implements IBAResultProcessor

The GeofenceInfoParameters class provides input parameters for the Geofence Info task.

The standard geography data layer is specified by the geoLevelID property value. The query criteria is specified by the searchString property value. This query is performed on the name and ID attributes of every available feature in the standard geography layer. All available features in the specified standard geography layer are requested when no value for the searchString property is specified.

When specifying the request with a Community Analyst API user account with geofence constraints, the resulting features are filtered with geofence criteria.

Output options for this task include creating a feature class for subsequent analysis (outputTypes.getFeatureClass) and rendering output image (outputTypes.getMapImage). If output options are not specified, the output will contain the stdGeographiesFeatures only.

View the examples

See also

GeofenceInfoTask
GeofenceInfoOutput
OutputTypes


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BATaskParameters
  geoLevelID : String
Community Analyst data layer ID to query features in.
GeofenceInfoParameters
  outputSpatialReference : SpatialReference
The spatial reference to return the output feature set in.
GeofenceInfoParameters
 InheritedoutputTypes : OutputTypes
Task output types.
BATaskParameters
  resultType : BAResultType
[override] [read-only] Type of a result returned by the task associated with these parameters.
GeofenceInfoParameters
  searchString : String
A string of characters which is used to query features of the data layer specified by the geoLevelID parameter value.
GeofenceInfoParameters
 InheritedtaskName : String
[read-only] Name of a Community Analyst Task associated with these parameters.
BATaskParameters
Public Methods
 MethodDefined By
  
GeofenceInfoParameters(geoLevelID:String = null, searchString:String = null)
Creates a new instance of the GeofenceInfoParameters class.
GeofenceInfoParameters
Property Detail
geoLevelIDproperty
geoLevelID:String

Community Analyst data layer ID to query features in. The list of available geography levels could be retrieved with GetStandardGeographyLevelsTask task.


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

See also

outputSpatialReferenceproperty 
outputSpatialReference:SpatialReference

The spatial reference to return the output feature set in.


Implementation
    public function get outputSpatialReference():SpatialReference
    public function set outputSpatialReference(value:SpatialReference):void
resultTypeproperty 
resultType:BAResultType  [read-only] [override]

Type of a result returned by the task associated with these parameters. The base implementation returns BAResultType.SPECIAL.


Implementation
    public function get resultType():BAResultType
searchStringproperty 
searchString:String

A string of characters which is used to query features of the data layer specified by the geoLevelID parameter value. A feature of the data layer is recognized as a matching feature if its ID or name contains the search string. If the search string is missing or empty, all features of the data layer are recognized as matching features.


Implementation
    public function get searchString():String
    public function set searchString(value:String):void
Constructor Detail
GeofenceInfoParameters()Constructor
public function GeofenceInfoParameters(geoLevelID:String = null, searchString:String = null)

Creates a new instance of the GeofenceInfoParameters class.

Parameters
geoLevelID:String (default = null) — The unique identifier for the standard geography level. The list of available geography levels could be retrieved with GetStandardGeographyLevelsTask task.
 
searchString:String (default = null) — A string of characters which is used to query features of the data layer specified by the geoLevelID parameter value.

See also

Examples
ActionScript to create GeofenceInfoParameters and then use in the GeofenceInfoTask:
                     
     var parameters : GeofenceInfoParameters = new GeofenceInfoParameters();
     
     parameters.geoLevelID = "US.ZIP5";
     parameters.searchString = "923";
     
     // Optionally set getFeatureClass and getMapImage to true
     parameters.outputTypes.getFeatureClass = true;
     parameters.outputTypes.getMapImage = true;
     
     geofenceInfoTask.execute(parameters, new Responder(resultHandler, faultHandler));