Convert Polygons (Production Mapping)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

Deletes polygon features that are below a minimum size.

Рисунок

Convert Polygons functionality

Использование

Синтаксис

ConvertPolygons_production (Input_Polygon_Features, Minimum_Size, Compare_Features)
ПараметрОбъяснениеТип данных
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

Пример кода

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)

Параметры среды

Связанные темы

Информация о лицензировании

ArcGIS for Desktop Basic: Нет
ArcGIS for Desktop Standard: Требует Production Mapping
ArcGIS for Desktop Advanced: Требует Production Mapping
4/27/2014