Service Area

Running programmatically

Calculates the service area for the input points based on the cost along the Bidirectional Network (BDN) used. The result is a polygon feature layer with a polygon for each input point. A CutOff distance/cost can be used (a single value for all points or different for each point based on the values in the attribute table of the input point layer).

Inputs:

Outputs:

Notes :

Example:

Results - Assigned service areas - No CutOff Cost used.

Assigned service areas - No CutOff Cost used

Results - Assigned service areas - CutOff Cost = 15 kilometers used.

Assigned service areas - CutOff Cost = 15 kilometers used

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name ServiceArea
<Network to Use> A String - the full name of the Network file (.etn).
<Input Points> A String representing the input layer. Must be of Point type.
<output dataset> A String - the full name of the output layer.
<snap tolerance> A Double representing the snap tolerance(in the units of the spatial reference of the Network).
{Input Barrier Points} A String representing the input layer with barrier points. Must be of Point type.
{Barriers Direction Field} A String representing the name of the field in the Input Barrier Points that will indicate the direction in which the barrier defined by each point work . Must be of String type.
{CutOff Cost} A Double representing the CutOff Costs in the units of the Network costs.
{CutOff Field} A String representing the Name of the field to be used to sort the points of the Input Point layer to establish the sequence in which they will be visited.
{Include No Reach Areas} A Boolean.

Running the function

ETGWPath used in the table below is the  full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")

Language Syntax
Python subprocess.call([ETGWPath, "ServiceArea", "Network to Use", "Input Points", "output dataset","snap tolerance", "Input Barrier Points", "Barriers Direction Field","CutOff Cost", "CutOff Field" "Include No Reach Areas"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "ServiceArea" "Network to Use" "Input Points" "output dataset" "snap tolerance" "Input Barrier Points" "Barriers Direction Field" "CutOff Cost" "CutOff Field" "Include No Reach Areas"
.NET using ETGWOutX.dll ServiceArea(Network to Use,Input Points, output dataset, snap tolerance,Input Barrier Points, Barriers Direction Field CutOff Cost, CutOff Field,Include No Reach Areas)
ArcPy arcpy.ServiceArea(Network to Use,Input Points, output dataset, snap tolerance, Input Barrier Points, Barriers Direction Field, CutOff Cost, CutOff Field, Include No Reach Areas)
,

Notes:

(Go to TOP)