Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Features toolset > Tools

Polygon to Line (Data Management) (ArcInfo only)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Creates a new line feature class from a polygon feature class including the feature ID €™ s of the left and right polygons for the new lines.


Illustration

Polygon To Line illustration

Usage tips

Command line syntax
An overview of the Command Line window
PolygonToLine_management <in_features> <out_feature_class>

Parameter Explanation Data Type
<in_features>

Input polygon features whose polygon feature classes will be used to generate a line feature class or shapefile.

Feature Layer
<out_feature_class>

The new output feature class (LINE) to be created.

Feature Class
Data types for geoprocessing tool parameters


Command line example

PolygonToLine c:\test_data\workspace.mdb\lots c:\test_data\workspace.mdb\lot_bdy

Scripting syntax
About getting started with writing geoprocessing scripts
PolygonToLine_management (in_features, out_feature_class)

Parameter Explanation Data Type
in_features (Required)

Input polygon features whose polygon feature classes will be used to generate a line feature class or shapefile.

Feature Layer
out_feature_class (Required)

The new output feature class (LINE) to be created.

Feature Class

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

# Set a default workspace
gp.workspace = "c:/test_data/workspace.mdb"
gp.toolbox = "management"

try:
    # Turn this polygon feature class to a line feature class
    gp.PolygonToLine ("lots", "lot_bdy")

except:
    # If an error occurs when running polygonToLine, print out the error message.
    print gp.GetMessages(2)

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.