Feature to Line (Data Management) (ArcInfo only) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
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
Usage tips
The attributes of the Input Features are transferred to the Output Feature Class lines.
To get lines with right and left polygon IDs as attributes from a polygon feature class, use the Polygon To Line tool instead.
If the Preserve Attributes parameter is set to NO_ATTRIBUTES (or not checked on the dialog box), none of the input's attributes will be transferred to the output.
An output line features will be created for each input line, and each input polygon boundary. If input lines or polygon boundaries cross, the output lines will be split into different features at those locations.
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
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.
If this parameter is set to No_Attributes, a single line feature will be written to the output. |
Boolean |
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.
If this parameter is set to No_Attributes, a single line feature will be written to the output. |
Boolean |
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "h:/workspace.mdb" gp.toolbox = "management" gp.featuretoline("vegetation", "veg_lines")