Reconstruct Tracks
![]() |
The Reconstruct Tracks task works with a time-enabled layer of either point or polygon features that represents an instant in time. It first determines which features belong to a track using an identifier. Using the time at each location, the tracks are ordered sequentially and transformed into a line or polygon representing the path of movement over time. Optionally, the input can be buffered by a field, which will create a polygon at each location. These buffered points, or polygons if the inputs are polygons, are then joined sequentially to create a track as a polygon where the width is representative of the attribute of interest. Resulting tracks have start and end times that represent the time at the first and last feature in a given track. When the tracks are created, statistics about the input features are calculated and assigned to the output track. The most basic statistic is the count of points within the area, but other statistics can be calculated as well. Features in time-enabled layers can be represented in one of two ways:
- Instant—A single moment in time
- Interval—A start and end time
For example, suppose you have GPS measurements of hurricanes every 10 minutes. Each GPS measurement records the hurricane name, location, time of recording, and the wind speed. You could create tracks of the hurricanes using the name of the hurricane as the track identification, and all hurricanes' tracks would be generated. You could calculate statistics such as the mean, maximum, and minimum wind speed of each hurricane, as well as the count of measurements in each track.
Request URL
http://<analysis url>/ReconstructTracks/submitJob
Request parameters
Parameter | Description |
|---|---|
inputLayer (Required) | The point or polygon features from which tracks will be constructed. Syntax: As described in Feature input, this parameter can be one of the following:
REST web example:
REST scripting example:
|
trackFields (Required) | The fields used to identify distinct tracks. There can be multiple trackFields. REST web example:
REST scripting example:
|
method (Required) | The method used to apply reconstruct tracks and, optionally, to apply the buffer. There are two methods to choose from:
REST web example: Geodesic REST scripting example:"method" : "Planar" |
bufferField | A field in the inputLayer that contains a buffer distance or a buffer expression. REST web example:
REST scripting example:
A buffer expression must begin with an equal sign (=). To learn more about buffer expressions, see Buffer Expressions. |
summaryFields | A list of field names and statistical summary types that you want to calculate for all reconstructed track features. By default, all statistics are returned. Syntax: [{"statisticType" : "<statistic type>", "onStatisticField" : "<field name>" }, ...] fieldName is the name of the fields in the input point layer. statisticType is one of the following for numeric fields:
statisticType is one of the following for string fields:
REST web examples:
REST scripting examples:
If you want to return only the Count statistic, specify an empty value: "summaryFields" : []. |
timeSplit | A time duration used to split tracks. Any features in the inputLayer that are in the same track and are greater than this time apart will be split into a new track. The units of the distance values are supplied by the timeSplitUnit parameter. If both distanceSplit and timeSplit are used, a track is split when at least one condition is met. REST web examples:
REST scripting examples:
|
timeSplitUnit (Required if timeSplit is specified) | The temporal unit to be used with the temporal distance value specified in timeSplit. Values: Milliseconds | Seconds | Minutes | Hours | Days | Weeks| Months | Years REST web example: Hours REST scripting example: "timeSplitUnit" : "Minutes" |
distanceSplit | A distance used to split tracks. Any features in the inputLayer that are in the same track and are greater than this distance apart will be split into a new track. The units of the distance values are supplied by the distanceSplitUnit parameter. If both distanceSplit and timeSplit are used, the track is split when at least one condition is met. REST web examples:
REST scripting examples:
|
distanceSplitUnit (Required if distanceSplit is specified) | The distance unit to be used with the distance value specified in distanceSplit. Values: Meters | Kilometers | Feet | Miles | NauticalMiles | Yards REST web example: Hours REST scripting example: "distanceSplitUnit" : "Minutes" |
timeBoundarySplit (Optional) | A time boundary allows your to analyze values within a defined time span. For example, if you use a time boundary of 1 day, starting on January 1st, 1980 tracks will be analyzed 1 day at a time. The time boundary parameter was introduced in ArcGIS Enterprise 10.7. The timeBoundarySplit parameter defines the scale of the time boundary. In the case above, this would be 1. See the portal documentation for this tool to learn more. REST scripting example: "timeBoundarySplit" : 1 REST web example: 2 |
timeBoundarySplitUnit (Required if timeBoundarySplit is specified) | The unit applied to the time boundary. timeBoundarySplitUnit is required if a timeBoundarySplit is provided. REST scripting example: "timeBoundarySplitUnit" : "Days" REST web example: Weeks |
timeBoundaryReference (Optional) | A date that specifies the reference time to align the time boundary to, represented in milliseconds from epoch. The default is January 1, 1970, at 12:00 a.m. (epoch time stamp 0). This option is only available if the timeBoundarySplit and timeBoundarySplitUnit are set. REST scripting example: "timeBoundaryReference" : 946684800000 REST web example: 9466835800000 |
outputName (Required) | The task will create a feature service of the results. You define the name of the service. REST web example: myOutput REST scripting example: "outputName" : "myOutput" |
context | The context parameter contains additional settings that affect task execution. For this task, there are four settings:
Syntax: |
f | The response format. The default response format is html. Values: html | json |
Response
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 jobId to periodically check the status of the job and messages as described in Checking job status. Once the job has successfully completed, use jobId to retrieve the results. To track the status, you can make a request of the following form:
https://<analysis url>/ReconstructTracks/jobs/<jobId>
Accessing results
When the status of the job request is esriJobSucceeded, you can access the results of the analysis by making a request of the following form:
http://<analysis url>/ReconstructTracks/jobs/<jobId>/results/output?token=<your token>&f=json
Parameter | Description |
|---|---|
output |
The output tracks will be lines if points were given as inputLayer without a buffer. The output tracks will be polygons if points were given as an input with a buffer applied or if polygons were given as the input. Example: The result has properties for parameter name, data type, and value. The contents of value depend on the outputName parameter provided in the initial request. The value contains the URL of the feature service layer. See Feature output for more information about how the result layer is accessed. |
