CreateThresholdAreas

Titleā€ƒ CreateThresholdAreas

Summary

Creates rings or drive-time areas around point features. The size of the polygons are based on a threshold variable, such as population, income, or any demographic variable.


Usage

Syntax

Parameter Explanation
inputLayer

Input points layer used for the ring or drive-time area. Input can be a be a URL to a feature service or a feature collection.

idField (Optional)

A field that uniquely identifies each input point and is included in the output as an attribute.

thresholdVariable

Business Analyst variable to which the threshold value will be applied.

thresholdValues (Optional)

The threshold values that determines the size of the output areas. The areas will expand until they contain the threshold value of the selected variable.

thresholdExpression (Optional)

A fields-based expression used for defining the threshold values. The areas will expand until they contain the threshold value.

distanceType

Description: Defines how distance is calculated. Valid values are a string, StraightLine, which indicates Euclidean distance to be used as distance measure, or a JSON object representing settings for a travel mode.

distanceUnits (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>The distance units that will be used for distance calculations. Eg. Meters, Kilometers, Feet, Miles, Seconds, Minutes, Hours. Time units are only used for the network distance calculations type.</SPAN></P></DIV>
maxIterations (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>The maximum number of times Network Analysis will iterate to find the threshold values.</SPAN></P></DIV>
travelDirection (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>Specifies the direction of travel to calculate drive time.</SPAN></P></DIV>
timeOfDay (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>The time and date that will be used when calculating distance. Set the time and date as Unix time in milliseconds.</SPAN></P></DIV>
timeZoneForTimeOfDay (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>Specifies the time zone that will be used for the Time of Day parameter.</SPAN></P></DIV>
polygonDetail (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>Specifies the level of detail that will be used for the output drive time polygons.</SPAN></P></DIV>
minimumStep (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>The minimum increment distance or time - for example, 1 mile or 1 minute - used between iterations to expand until the threshold is reached.</SPAN></P></DIV>
targetPercentDifference (Optional) <DIV STYLE="text-align:Left;"><P><SPAN>The maximum difference between the target value and threshold value when determining the threshold drive time, for example, 5 percent.</SPAN></P></DIV>
outputName (Optional)

context (Optional)

Additional settings such as processing extent and output spatial reference.

useData (Optional)

Defines which data would be used to process the calculation. </SPAN></P><P><SPAN>Sample: {"sourceCountry":"US", "hierarchy":"census"}

Code Samples

Tags

CreateThresholdAreas

Credits

Use limitations