Extend Polygon Sides (Production Mapping)

许可等级:BasicStandardAdvanced

摘要

Extends the lengths and widths of polygon features until they meet a specified minimum value.

插图

Extend Polygon Side example

用法

语法

ExtendPolygonSides_production (Input_Polygon_Features, Minimum_Length, Minimum_Width)
参数说明数据类型
Input_Polygon_Features

The polygon features that will have their lengths and widths extended.

Feature Layer
Minimum_Length

The minimum size of the long side of the polygon.

Linear unit
Minimum_Width

The minimum size of the short side of the polygon.

Linear unit

代码实例

ExtendPolygonSides example (stand-alone script)

This script sample extends the length and width of parks until the height and width are both 1,000 feet.

# Name: ExtendPolygonSides_Example.py
# Description: Extends the sides of park polygons with an area of less than
# 10000 square feet.
# Author: Esri
# Date: February 2014

# Import arcpy module
import arcpy

# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")

# set environment
arcpy.env.workspace="c:/data/LocalGovernment.gdb"

# Define variables
inFeatures="ReferenceData/BuildingFootprint"
where="FULLADDRESS='332 FORT HILL DR'"
minLength="150 feet"
minWidth="100 feet"

# make a feature layer 
inFeatureLyr=arcpy.MakeFeatureLayer_management(inFeatures,"FacilityLayer",where)

# execute the ExtendPolygonSides function - best use against more rectangular features like buildings
arcpy.ExtendPolygonSides_production(inFeatureLyr,minLength,minWidth)

环境

相关主题

许可信息

ArcGIS for Desktop Basic: 否
ArcGIS for Desktop Standard: 需要 Production Mapping
ArcGIS for Desktop Advanced: 需要 Production Mapping
4/27/2014