Delete Dangles (Production Mapping)
Краткая информация
Removes lines that are shorter than the specified length and do not connect to other features on both ends.
Рисунок
Использование
A warning is raised if the input features are not in a projected coordinate system. This tool relies on linear distance units, which will create unexpected results in an unprojected coordinate system. It is strongly suggested that you run this tool on data in a projected coordinate system to ensure valid results. An error is raised and the tool will not process if the coordinate system is missing or unknown.
This tool cannot be run on data that is registered as versioned.
-
Input line features that are below the minimum length and do not touch another line at both endpoints are deleted.
Features connected to any feature class listed in the Compare Features (Compare_Features) parameter are not considered dangles.
If this tool is run in an edit session in ArcMap, you can stop the edit session without saving changes to restore features that have been deleted.
Этот инструмент изменяет входные данные. Более подробно о стратегиях предотвращения неожиданных изменений данных см. в разделе Инструменты, не создающие выходных данных (Tools with no outputs).
Синтаксис
Параметр | Объяснение | Тип данных |
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 |
Пример кода
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)