Aggregate Polygons (Coverage)

Summary

Combines disjoint and adjacent polygons into new area features based on a distance.

Learn more about how Aggregate Polygons works

Illustration

Aggregate Polygons illustration

Usage

Syntax

AggregatePolygons_arc (in_cover, out_cover, cell_size, distance, {orthogonal_option})
ParameterExplanationData Type
in_cover

The coverage containing polygons to be aggregated.

Coverage
out_cover

The output coverage containing aggregated features as preliminary regions with a subclass AREAAGG. The output coverage name must be different from the input coverage name.

Coverage
cell_size

Sets cell size in coverage units for grid conversion. Cell size must be greater than 0.

Double
distance

Sets the aggregation distance in coverage units. A distance must be equal to or greater than the cell size.

Double
orthogonal_option
(Optional)

Specifies the characteristic of the input features that will be preserved when constructing the aggregated boundaries.

  • NON_ORTHOGONALSpecifies natural features, such as vegetation or soil polygons, which unlikely contain orthogonal shapes. This is the default.
  • ORTHOGONALSpecifies building-like features for which orthogonal shapes will be preserved and constructed.
Boolean

Code Sample

AggregatePolygons example (stand-alone script)

The following stand-alone script demonstrates how to use the AggregatePolygons tool.

# Name: AggregatePolygons_Example.py
# Description: Aggregates city limits polygons into a county boundary
# 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 = "citylim"
outCover = "c:/output/countybnd"
cellSize = 10
distance = 150
orthogonalOption = "NON_ORTHOGONAL"

# Execute AggregatePolygons
arcpy.AggregatePolygons_arc(inCover, outCover, cellSize, distance, 
                            orthogonalOption)

Environments

Related Topics

Licensing Information

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

Published 6/8/2010