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