Convert Polygons (Production Mapping)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Deletes polygon features that are below a minimum size.

Illustration

Convert Polygons functionality

Utilisation

Syntaxe

ConvertPolygons_production (Input_Polygon_Features, Minimum_Size, Compare_Features)
ParamètreExplicationType de données
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

Exemple de code

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)

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Annuler
ArcGIS for Desktop Standard: Requis Production Mapping
ArcGIS for Desktop Advanced: Requis Production Mapping
4/26/2014