ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for 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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

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

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

# 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

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: No
  • ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed

Related Topics

  • An overview of the coverage Generalization toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal