Delete Polygons And Extend Lines (Production Mapping)

License Level:BasicStandardAdvanced

Summary

Removes polygons that are smaller than the specified area and are connected to two or more lines. Once the polygon is deleted, the lines are extended to meet at the center point of the polygon.

Illustration

Delete Polygons and Extend Lines functionality

Usage

Syntax

DeletePolygonsAndExtendLines_production (Input_Line_Features, Input_Polygon_Features, Minimum_Area, {Compare_Features})
ParameterExplanationData Type
Input_Line_Features

The line features that will be extended.

Feature Layer
Input_Polygon_Features

The polygon features that will be deleted if they are smaller than the specified size and connected to two or more lines from the line feature class.

Feature Layer
Minimum_Area

The minimum area for polygon features.

Areal unit
Compare_Features
[Compare_Features,...]
(Optional)

Feature classes that will be used to fill the space left by the deleted polygon. The feature that has the longest common boundary with the deleted feature is used to fill the hole.

Feature Class

Code Sample

DeletePolygonsAndExtendLines example (stand-alone script)

This sample script removes facility features that touch two or more lines and extends the lines.

# Name: DeletePolygonAndExtendLines_Example.py
# Description: Executes the DeletePolygonAndExtendLines tool against
# LocalGovernment.gdb sample data
# 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
inLineFeatures="ReferenceData/RoadCenterline"
inPolyFeatures="ReferenceData/FacilitySite"
inLineLyr="Roadlayer"
inPolyLyr="FacilityLayer"
minArea="2000000 SquareFeet"

# create two feature layers
arcpy.MakeFeatureLayer_management(inLineFeatures,inLineLyr)
arcpy.MakeFeatureLayer_management(inPolyFeatures,inPolyLyr)

# execute Delete Polygon and Extend Lines
arcpy.DeletePolygonsAndExtendLines_production(inLineLyr,inPolyLyr,minArea)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Requires Production Mapping
ArcGIS for Desktop Advanced: Requires Production Mapping
6/12/2015