Dissolve (Coverage)

Summary

Creates a new coverage by merging adjacent polygons, lines, or regions that have the same value for a specified item.

Illustration

Dissolve illustration

Usage

Syntax

Dissolve_arc (in_cover, out_cover, dissolve_item, {feature_type})
ParameterExplanationData Type
in_cover

The coverage containing features to be dissolved.

Coverage
out_cover

The coverage to be created. The output coverage cannot already exist.

Coverage
dissolve_item

The item in the in_cover feature attribute table that is used to dissolve features.

  • Dissolve_item—An item name will be used to perform the dissolve. The item may be a redefined item.
  • #ALL—All items past the cover-ID in the PAT, AAT, or region subclass PAT will be used as a single dissolve item. If there are no items past the cover-ID, then the cover-ID will be used.
ArcInfo item
feature_type
(Optional)

The feature classes to be preserved in the output coverage:

  • POLYPolygons will be dissolved; an AAT will not be created for the output coverage. This is the default option.
  • LINENodes will be dissolved; a PAT will not be created for the output coverage.
  • NETPolygons will be dissolved, and both a PAT and AAT will be created for the output coverage.
  • REGION.subclassRegion subclass will be dissolved, and all existing attributes of the input coverage will be maintained in the output coverage.
String

Code Sample

Dissolve example (stand-alone script)

The following stand-alone script demonstrates how to dissolve polygons into larger sections.

# Name: Dissolve_Example.py
# Description: Dissolves polygons into larger sections
# 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 = "tra_airport"
outCover = "C:/output/airport_sect"
dissolveItem = "section"
featureType = "POLY"

# Execute Dissolve
arcpy.Dissolve_arc(inCover, outCover, dissolveItem, featureType)

Environments

Related Topics

Licensing Information

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

Published 6/8/2010