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

Collapse Dual Lines To Centerline (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

Derives centerlines from dual-line (or double-line) features, such as road casings, based on specified width tolerances.


Illustration

Collapse Dual Lines to Centerline illustration

Usage tips

Command line syntax
An overview of the Command Line window
CollapseDualLinesToCenterline_management <in_features> <out_feature_class> <maximum_width> {minimum_width}

Parameter Explanation Data Type
<in_features>

The input dual-line features, such as road casings, from which centerlines are derived.

Feature Layer
<out_feature_class>

The output feature class to be created.

Feature Class
<maximum_width>

Sets the maximum width of the dual-line features to derive centerline. A value must be specified, and it must be greater than zero. You can specify a preferred unit; the default is the feature unit.

Linear unit
{minimum_width}

Sets the minimum width of the dual-line features to derive centerline. The minimum width must be greater than or equal to zero, and it must be less than the maximum width. The default value is zero. You can specify a preferred unit; the default is the feature unit.

Linear unit
Data types for geoprocessing tool parameters


Command line example

collapseduallinestocenterline_management c:\mapData.mdb\roads c:\mapDataNew\centerlines 100 0

Scripting syntax
About getting started with writing geoprocessing scripts
CollapseDualLinesToCenterline_management (in_features, out_feature_class, maximum_width, minimum_width)

Parameter Explanation Data Type
in_features (Required)

The input dual-line features, such as road casings, from which centerlines are derived.

Feature Layer
out_feature_class (Required)

The output feature class to be created.

Feature Class
maximum_width (Required)

Sets the maximum width of the dual-line features to derive centerline. A value must be specified, and it must be greater than zero. You can specify a preferred unit; the default is the feature unit.

Linear unit
minimum_width (Optional)

Sets the minimum width of the dual-line features to derive centerline. The minimum width must be greater than or equal to zero, and it must be less than the maximum width. The default value is zero. You can specify a preferred unit; the default is the feature unit.

Linear unit

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "h:\\workspace"
gp.toolbox = "management"
gp.collapseduallinestocenterline ("roads", "centerlines", "100")

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