Create Centerlines

Running programmatically

Creates centerlines from polygon features.

Inputs:

Outputs:

Notes:

Examples:

Centerlines Inside Polygons

Input Dataset

Result

Result (Detail

Centerlines Outside Polygons

Input Dataset

Result

Result (Detail)

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name CreateCenterlines
<input dataset> A String representing the input layer. Must be of Polygon type.
<output dataset> A String - the full name of the output layer.
<Max Width> A Double representing the maximum width of the polygons (in the units of the spatial reference of the input dataset.
<Min Width< A Double representing the minimum width of the polygons (in the units of the spatial reference of the input dataset.

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, "CreateCenterlines", "input dataset", "output dataset", "Max Width", "Min Width"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "CreateCenterlines" "input dataset" "output dataset" "Max Width" "Min Width"
.NET using ETGWOutX.dll CreateCenterlines(input dataset, output dataset, Max Width, Min Width)
ArcPy arcpy.CreateCenterlines(input dataset, output dataset, "Max Width", "Min Width")

Notes:

(Go to TOP)