Delete Polygons And Extend Lines (Production Mapping)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

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.

Рисунок

Delete Polygons and Extend Lines functionality

Использование

Синтаксис

DeletePolygonsAndExtendLines_production (Input_Line_Features, Input_Polygon_Features, Minimum_Area, {Compare_Features})
ПараметрОбъяснениеТип данных
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,...]
(дополнительно)

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

Пример кода

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)

Параметры среды

Связанные темы

Информация о лицензировании

ArcGIS for Desktop Basic: Нет
ArcGIS for Desktop Standard: Требует Production Mapping
ArcGIS for Desktop Advanced: Требует Production Mapping
4/27/2014