The Generate Tessellations task creates tessellations, or bins, determined by a specified extent, shape, and size.
For example, for reforestation projects, foresters need to divide harvested areas into bins, or regularly shaped areas, to understand the amount of seedlings and resources needed to reforest the area effectively. Generate Tessellations can be used to automatically create a dataset of appropriately sized bins for the full study area.
The tessellation shape. Bin options are as follows:
Example: "binType" : "Hexagon"
The size of each bin. Cell size can be determined by specifying square units or by specifying a distance that is calculated using the following measurements, where d = Distance:
Example: "binSize" : 100
The linear or areal unit to be used with the value specified in binSize.
Values: Meters | Kilometers | Feet | Miles | NauticalMiles | Yards | SquareKilometers | Hectares | SquareMeters | SquareMiles | Acres | SquareYards | SquareFeet | SquareInches
The default is SquareKilometers.
Example: "binSizeUnit" : "Miles"
The extent that the tessellations will cover.
Syntax: As described in detail in the Feature Input topic, this parameter can be
A Boolean value that specifies whether to only keep tessellations that intersect with the extent layer (extentLayer). The default is false.
This option is only applied if an extent layer has been provided.
Values: true | false
If provided, the task will create a feature service of the results. You define the name of the service. If outputName is not supplied, the task will return a feature collection.
Context contains additional settings that affect task execution. For Generate Tessellations, there are two settings.
The response format. The default response format is html.
Values: html | json
When you submit a request, the service assigns a unique job ID for the transaction.
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
After the initial
request is submitted you can use the
jobId to periodically check the status of the job and messages as described in the topic Checking job status.
Once the job has successfully completed, you use
the jobId to retrieve the results. To track the status, you can make a request of the following form:
When the status of the job request is esriJobSucceded, you can access the results of the analysis by making a request of the following form:
http://<analysis url>/GenerateTessellations/jobs/<jobId>/results/<output parameter name>?token=<your token>&f=json
tessellationLayer will always contain polygon features.
The result has properties for parameter name, data type, and value. The contents of value depends upon the outputName parameter provided in the initial request.
See Feature Output for more information about how the result layer or collection is accessed.