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

Feature 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 output line feature class from input polygon or line features. The attributes from the Input Features are maintained in the Output Feature Class lines.


Illustration

Feature to Line illustration

Usage tips

Command line syntax
An overview of the Command Line window
FeatureToLine_management <in_features...in_features> <out_feature_class> <cluster_tolerance> <attributes>

Parameter Explanation Data Type
<in_features...in_features>

Input polygon features whose geometry will be used to create line features.

Feature Layer
<out_feature_class>

The feature class to be created that will contain the line features.

Feature Class
<cluster_tolerance>

The distance range in which all vertices and boundaries in a feature class are considered identical or coincident. To minimize error, the cluster tolerance chosen should be as small as possible, depending on the precision level of your data. By default, the minimum possible tolerance value is calculated in the units of the spatial reference of the input.

Linear unit
<attributes>

Specifies whether to preserve attributes in the output feature class.

  • Attributes — The Input Feature's attributes will be transferred to the output features. This is the default.
  • No_Attributes — The Input Feature's attributes will not be transferred to the output features.
  • If this parameter is set to Attributes and there are coincident lines or polygon boundaries within an input feature class, for example the boundary seperating two polygons, two features with identical line geometry will be written to the output. One output feature will have the attribute of one of the input polygons, and the other output line feature will have the attribute of the other input polygon.
    If this parameter is set to No_Attributes, a single line feature will be written to the output.

Boolean
Data types for geoprocessing tool parameters


Command line example

FeatureToLine_management d:\workspace.mdb\vegetation d:\workspace.mdb\veg_ln

Scripting syntax
About getting started with writing geoprocessing scripts
FeatureToLine_management (in_features, out_feature_class, cluster_tolerance, attributes)

Parameter Explanation Data Type
in_features (Required)

Input polygon features whose geometry will be used to create line features.

Feature Layer
out_feature_class (Required)

The feature class to be created that will contain the line features.

Feature Class
cluster_tolerance (Required)

The distance range in which all vertices and boundaries in a feature class are considered identical or coincident. To minimize error, the cluster tolerance chosen should be as small as possible, depending on the precision level of your data. By default, the minimum possible tolerance value is calculated in the units of the spatial reference of the input.

Linear unit
attributes (Required)

Specifies whether to preserve attributes in the output feature class.

  • Attributes — The Input Feature's attributes will be transferred to the output features. This is the default.
  • No_Attributes — The Input Feature's attributes will not be transferred to the output features.
  • If this parameter is set to Attributes and there are coincident lines or polygon boundaries within an input feature class, for example the boundary seperating two polygons, two features with identical line geometry will be written to the output. One output feature will have the attribute of one of the input polygons, and the other output line feature will have the attribute of the other input polygon.
    If this parameter is set to No_Attributes, a single line feature will be written to the output.

Boolean

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "h:/workspace.mdb"
gp.toolbox = "management"
gp.featuretoline("vegetation", "veg_lines")

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