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