Polygon To Polyline Advanced

Running programmatically

Converts the polygon boundaries to polylines.

Inputs:

Outputs:

Notes :

If the input polygon layer has overlaps it is strongly recommended to use the Clean Polygons function beforhand

Input Polygons with overlaps

Result if the function is performed on the overlapping polygons

Result if the overlaps are cleaned beforehand

Example:

Original polygons

Derived polylines.

Polylines labeled with their Left and Right polygons. Polygons labeled with the Link field used in the function.

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name PolygonsToPolylinesAdvanced
<input dataset> A String representing the input layer. Must be of Polygon type.
<output dataset> A String - the full name of the output layer.
<Fuzzy Tolerance> A Double representing the Fuzzy Tolerance.
{Labels Dataset} A String - the full name of the output label points layer.
{Link Field} A String - the name of the field in the input dataset to be used as a link.

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, "PolygonsToPolylinesAdvanced", "input dataset", "output dataset", "Fuzzy Tolerance", "Labels Dataset" "Link Field"])
.NET using ETGWRun.exe StartInfo.FileName = ETGWPath
StartInfo.Arguments = "PolygonsToPolylinesAdvanced" "input dataset" "output dataset" "Fuzzy Tolerance" "Labels Dataset" "Link Field"
.NET using ETGWOutX.dll PolygonsToPolylinesAdvanced (input dataset, output dataset, Fuzzy Tolerance, Labels Dataset,Link Field)
ArcPy arcpy. PolygonsToPolylinesAdvanced (input dataset, output dataset, "Fuzzy Tolerance", "Labels Dataset", "Link Field")

Notes:

(Go to TOP)