Extend Polygon Sides (Production Mapping)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

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

Illustration

Extend Polygon Side example

Utilisation

Syntaxe

ExtendPolygonSides_production (Input_Polygon_Features, Minimum_Length, Minimum_Width)
ParamètreExplicationType de données
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

Exemple de code

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)

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Annuler
ArcGIS for Desktop Standard: Requis Production Mapping
ArcGIS for Desktop Advanced: Requis Production Mapping
4/26/2014