Converts a polygon data set to a polyline feature class
Parameters
Expression | Explanation |
---|---|
Function Name | PolygonsToPolylines |
<input dataset> | A String representing the input layer. Must be of Polygon type. |
<output dataset> | A String - the full name of the output layer. |
{Keep Z} | A Boolean indicating whether if the input has Z values to keep them in the output. |
{Keep M} | A Boolean indicating whether if the input has M values to keep them in the output. |
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, "PolygonsToPolylines", "input dataset", "output dataset", "Keep Z", "Keep M"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "PolygonsToPolylines" "input dataset" "output dataset" "Keep Z" "Keep M" |
.NET using ETGWOutX.dll | PolygonsToPolylines(input dataset, output dataset, Keep Z, Keep M) |
ArcPy | arcpy.PolygonsToPolylines(input dataset, output dataset, "Keep Z", "Keep M") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.