Eliminate Polygon Part (Data Management)

License Level:BasicStandardAdvanced

Summary

Creates a new output feature class containing the features from the input polygons with some parts or holes of a specified size deleted.

Illustration

Illustration of Eliminate Polygon Part

Usage

Syntax

EliminatePolygonPart_management (in_features, out_feature_class, {condition}, {part_area}, {part_area_percent}, {part_option})
ParameterExplanationData Type
in_features

The input feature class or layer whose features will be copied to the output feature class, with some parts or holes eliminated.

Feature Layer
out_feature_class

The output polygon feature class containing the remaining parts.

Feature Class
condition
(Optional)

Specify how the parts to be eliminated will be determined.

  • AREAParts with an area less than that specified will be eliminated.
  • PERCENTParts with a percent of the total outer area less than that specified will be eliminated.
  • AREA_AND_PERCENTParts with an area and percent less than that specified will be eliminated. Only if a polygon part meets both the area and percent criteria will it be deleted.
  • AREA_OR_PERCENTParts with an area or percent less than that specified will be eliminated. If a polygon part meets either the area or percent criteria, it will be deleted.
String
part_area
(Optional)

Eliminate parts smaller than this area.

Areal Unit
part_area_percent
(Optional)

Eliminate parts smaller than this percentage of a feature's total outer area.

Double
part_option
(Optional)

Determines what parts can be eliminated.

  • CONTAINED_ONLYOnly parts totally contained by other parts can be eliminated. This is the default.
  • ANYAny parts can be eliminated.
Boolean

Code Sample

EliminatePolygonPart Example (Python Window)

The following Python Window script demonstrates how to use the Eliminate Polygon Part tool.

import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.EliminatePolygonPart_management("buildings.shp", "output.gdb/remaining_buildings", "AREA", 10)
EliminatePolygonPart Example 2 (Stand-alone script)

The following stand-alone Python script demonstrates how to use the Eliminate Polygon Part tool.

# Name: EliminatePolygonPart_Example2.py
# Description: Eliminate small islands before simplifying and smoothing lake boundaries
# Author: ESRI
 
# Import system modules
import arcpy
from arcpy import env
 
# Set environment settings
env.workspace = "C:/data/Portland.gdb/Hydrography"
 
# Set local variables
inLakeFeatures = "lakes"
eliminatedFeatures = "lakes_eliminated"
simplifiedFeatures = "lakes_simplified"
smoothedFeatures = "lakes_smoothed"

# Eliminate small islands in lake polygons.
arcpy.EliminatePolygonPart_management(inLakeFeatures, eliminatedFeatures, "AREA", 100, "", "CONTAINED_ONLY")
 
# Simplify lake polygons.
arcpy.SimplifyPolygon_cartography(eliminatedFeatures, simplifiedFeatures, "POINT_REMOVE", 50, 200, "RESOLVE_ERRORS", "KEEP_COLLAPSED_POINTS")
 
# Smooth lake polygons.
arcpy.SmoothPolygon_cartography(simplifiedFeatures, smoothedFeatures, "BEZIER_INTERPOLATION")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Yes
11/18/2013