Convert Polygons (Production Mapping)

License Level:BasicStandardAdvanced

Summary

Deletes polygon features that are below a minimum size.

Illustration

Convert Polygons functionality

Usage

Syntax

ConvertPolygons_production (Input_Polygon_Features, Minimum_Size, Compare_Features)
ParameterExplanationData Type
Input_Polygon_Features

The layer that contains polygons to be deleted.

Feature Layer
Minimum_Size

Polygons smaller than this will be deleted.

Areal unit
Compare_Features
[Compare_Features,...]

The polygon features to which the input features are compared. If the input feature is smaller than the minimum size, it becomes part of the input features.

Feature Class

Code Sample

ConvertPolygons example (stand-alone script)

The following sample script deletes a single building feature and replaces it with the AgricultureA feature class.

# Name: ConvertPolygonExample.py
# Description: Deletes polygons below a specified minimum size
# Author: Esri
# Date: July 2013

# Import arcpy module
import arcpy

# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")
arcpy.env.workspace="c:/Data/LocalGovernment.gdb"

# Define variables
inPolygons = "ReferenceData/FacilitySite"
inPolylyr="Facility"
where="FCODE='Park'"
size = '3000 SquareFeet'
compareFeatures = "ReferenceData/BuildingFootprint"

# Create feature layer for input features
arcpy.MakeFeatureLayer_management(inPolygons,inPolylyr)

# Compare the workspaces
arcpy.ConvertPolygons_production(inPolylyr,size,compareFeatures)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Production Mapping
ArcGIS for Desktop Advanced: Requires Production Mapping
6/12/2015