Polygon to Line (Data Management) (ArcInfo only) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
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
Usage tips
All input feature classes and/or feature layers must be polygon.
Polygon boundaries are split at nodes in the output line feature class.
The right and left polygon FIDS are written in the output line feature class. These ID's can be used to associated polygon attributes with each side of a line in the output feature class. The orientation of lines which make up a polygon cannot be controlled. The arcs along the outer boundary of each polygon are always drawn in a clockwise direction. By default, interior or island boundaries are drawn in a counterclockwise direction.
The following environment settings affect this tool: Coordinate system, Extent, XY Tolerance, Z Tolerance, M Tolerance, XY Resolution, Z Resolution, M Resolution, Output XY domain, Output Z domain, Output M domain, Output has M values, Output has Z values, Default Z value, Configuration keyword, Output Spatial Grid.
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 |
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 |
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)