Collapse Dual Lines To Centerline (Coverage)

Summary

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

Learn more about how Collapse Dual Lines To Centerline works

Illustration

Creating centerlines

Usage

Syntax

CollapseDualLinestoCenterline_arc (in_cover, out_cover, maximum_width, {minimum_width})
ParameterExplanationData Type
in_cover

The coverage containing near parallel dual lines, such as road casings, from which centerlines are derived.

Coverage
out_cover

The output coverage containing the derived centerlines. The output coverage name must be different from the input coverage name.

Coverage
maximum_width

Sets the maximum width in coverage units.

Double
minimum_width
(Optional)

Sets the minimum width in coverage units. The default is zero.

Double

Code Sample

CollapseDualLinesToCenterline example (stand-alone script)

The following stand-alone script demonstrates how to create a line coverage of street centerlines from a line coverage of street casings.

# Name: CollapseDualLinesToCenterline_Example.py
# Description: Creates street centerlines from a street casing coverage.
# Requirements: ArcInfo Workstation
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inCover = "streets"
outCover = "C:/output/centerlines"
maximumWidth = 50

# Execute CollapseDualLinesToCenterline
arcpy.CollapseDualLinesToCenterline_arc(inCover, outCover, maximumWidth, "")
 

Environments

Related Topics

Licensing Information

ArcView: No
ArcEditor: No
ArcInfo: Requires ArcInfo Workstation installed

Published 6/8/2010