ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

Delete Dangles

Production Mapping ライセンスで利用できます。

  • 概要
  • 図
  • 使用法
  • 構文
  • コードのサンプル
  • 環境
  • ライセンス情報

概要

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

図

Delete Dangles example

使用法

    注意:

    このツールを実行すると、入力データが変更されます。詳しい説明および不適切なデータの変更を防ぐための方法については、「出力データセットを作成しないツール」をご参照ください。

  • 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.

  • Input line features that are below the minimum length and do not touch another line at both end points are deleted.

  • If a maximum angle is entered, the dangles that are kept will be measured in length with a consecutive line. If the combined length is below the defined minimum length, both lines will be removed.

  • Features connected to any feature class listed in the Compare Features (Compare_Features for Python) 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.

構文

arcpy.production.DeleteDangles(Input_Line_Features, Minimum_Length, {Compare_Features}, Recursive, {Maximum_Angle})
パラメーター説明データ タイプ
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 features the input line features can be compared to when determining whether the feature is a dangle.

Feature Layer
Recursive

Indicates the method used to delete dangles on the line features.

  • NON_RECURSIVE —All the dangles on lines are deleted. The remaining lines are not analyzed to see if they are dangles. This is the default.
  • RECURSIVE —The dangles are deleted from the lines and the remaining lines are analyzed to see if they are considered dangles. If they do not meet the Minimum_Length value, they are considered dangles and deleted.
Boolean
Maximum_Angle
(オプション)

Any line below the minimum length that is within the defined angle of a consecutive line segment will be kept.

Double

コードのサンプル

DeleteDangles example (stand-alone script)

The following stand-alone sample script demonstrates how to use DeleteDangles.

# Name: DeleteDangles_Example.py
# Description: Uses Production Mapping tool Delete Dangles to remove
#   unconnected lines less than a certain length unless within a defined
#   angle.
# Author: Esri
# Date: December 2015

# 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"
inCompareFeatures="ReferenceData/Hospital"
inFeaturesLyr="RoadL_Lyr"
inCompareFeaturesLyr="Hospital_Lyr"
recursion = 'NON_RECURSIVE'
minLength="10 Feet"
maxAngle="45"

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

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

環境

  • 現在のワークスペース
  • テンポラリ ワークスペース

ライセンス情報

  • Basic: いいえ
  • Standard: いいえ
  • Advanced: 次のものが必要 Production Mapping

関連トピック

  • An overview of the Generalization toolset
  • Increase Line Length

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル