The Find
task selects features in the input layer that meet a specified query. A query is composed of one or more expressions. There are two types of expressions: attribute and spatial.
An example of an attribute expression is a parcel must be vacant, which is an attribute of the Parcels layer (where STATU
).
An example of a spatial expression is the parcel must also be within a certain distance of a river (Parcels within a distance of 0.75 Miles from Rivers
).
Request URL
http://<analysis url>/FindExistingLocations/submitJob
Request parameters
Parameter | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(Required) | A list of layers that will be used in the Each layer in the list can be either of the following:
Examples:
Example list of URLs:
| ||||||||||||||||||||||||||||||||
(Required) | A list of expressions. There are two types of expressions: attribute and spatial. Example attribute expression:
Notes:
Example spatial expression:
An expression can be a list, which denotes a group. The first operator in the group indicates how the group expression is added to the previous expression. Grouping expressions is only necessary when you need to create two or more distinct sets of features from the same layer. One way to think of grouping is that without grouping, you would have to run the The following is an example where grouping is needed:
Example of grouping using a list:
| ||||||||||||||||||||||||||||||||
|
If provided, the task will create a feature service of the results. You define the name of the service. If an Syntax:
In ArcGIS Online or ArcGIS Enterprise 10.9.1 and later, you can overwrite an existing feature service by providing the Syntax:
or
| ||||||||||||||||||||||||||||||||
|
The Context parameter contains the following additional settings that affect task operation:
Syntax:
| ||||||||||||||||||||||||||||||||
| The response format. The default response format is Values: | ||||||||||||||||||||||||||||||||
| When only a portion of a feature meets the criteria, this parameter specifies whether the result includes the entire feature or only the portions of the feature that meet all criteria:
This parameter is available in ArcGIS Online or ArcGIS Enterprise 11.2 and later.
|
Response
When you submit a request, the service assigns a unique job ID for the transaction.
Syntax:
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}
After the initial request is submitted, you can use the job
value to periodically check the status of the job and messages as described in the Check job status topic. Once the job has successfully completed, use the job
value to retrieve the results. To track the status, you can make a request of the following form:
http://<analysis url>/FindExistingLocations/jobs/<jobId>
Access results
When the status of the job request is esri
, you can access the results of the analysis by making a request of the following form:
http://<analysis url>/FindExistingLocations/jobs/<jobId>/results/<output parameter name>?token=<your token>&f=json
Parameter | Description |
---|---|
| Request example:
The result has properties for parameter name, data type, and value. The contents of
See Feature output for more information about how the result layer or collection is accessed. |