Delete Dangles (Production Mapping)

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

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

Removes lines that are shorter than the specified length and do not connect to other features on both ends.

Рисунок

Delete Dangles example

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

Синтаксис

DeleteDangles_production (Input_Line_Features, Minimum_Length, {Compare_Features})
ПараметрОбъяснениеТип данных
Input_Line_Features

The features that will be checked for dangles.

Feature Layer
Minimum_Length

The minimum length for input lines. Features shorter than this are deleted.

Linear unit
Compare_Features
[Compare_Features,...]
(дополнительно)

Additional feature classes the input line features can be compared to when determining whether the feature is a dangle.

Feature Class

Пример кода

DeleteDangles example (stand-alone script)

This sample script deletes dangles from roads.

# Name: DeleteDangles_Example.py
# Description: Uses Production Mapping tool Delete Dangles to remove
#   unconnected lines less than a certain length
# 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/RoadCenterline"
inFeaturesLyr="RoadL_Lyr"
minLength="10 Feet"

# Create an input feature layer for DeleteDangles
arcpy.MakeFeatureLayer_management(inFeatures,inFeaturesLyr)

# Execute the tool
arcpy.DeleteDangles_production(inFeaturesLyr,minLength)

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

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

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

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