ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Collapse Dual Lines To Centerline

Available with Advanced license.

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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

  • In addition to the standard items, the Output Coverage.AAT will contain the following five new items:

    • LTYPE—Contains a line type value of:
      1   centerlines
      	2   unused lines and outlines of complicated intersections
      	3   partition lines
      
    • LL#—Carries the left source arc record number.
    • RL#—Carries the right source arc record number.
    • L-ID—Carries the left source arc user ID.
    • R-ID—Carries the right source arc user ID.
  • The values for item_width, output_width, and item_type in the item definition for all these items are 4, 5, and B.

Syntax

arcpy.arc.CollapseDualLinestoCenterline(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

# 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

  • Current Workspace
  • Level Of Comparison Between Projection Files
  • Precision For Derived Coverages
  • Precision For New Coverages
  • Scratch Workspace

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Requires ArcInfo Workstation installed

Related topics

  • An overview of the coverage Generalization toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal