Extend Polygon Sides (Production Mapping)

Nivel de licencia:BasicStandardAdvanced

Resumen

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

Ilustración

Extend Polygon Side example

Uso

Sintaxis

ExtendPolygonSides_production (Input_Polygon_Features, Minimum_Length, Minimum_Width)
ParámetroExplicaciónTipo de datos
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

Ejemplo de código

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)

Entornos

Temas relacionados

Información sobre licencias

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requiere Production Mapping
ArcGIS for Desktop Advanced: Requiere Production Mapping
4/26/2014