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

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Remove Cutbacks

获得 Production Mapping 许可后可用。

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Cutbacks are high-angle turns that cause features to turn back toward themselves. These angles affect polyline and polygon features and can be caused during an editing session. For example, through a digitizing error, a river feature may have a short segment (less than one meter) that turns back toward itself and back in the original direction again. This tool removes unwanted cutbacks for polyline and polygon feature classes or layers.

使用方法

    警告:

    This tool modifies the input data. See Tools with no outputs for more information and strategies to avoid undesired data changes.

  • If the angle formed by a vertex and its two neighboring points is below the specified minimum angle, the vertex is a candidate for cutback removal.

  • When Check for Errors Only is selected, this tool only checks for errors and does not remove cutbacks from the Input Features. Vertices that are determined to be cutbacks will be recorded as point features and stored in the Output Points.

  • When Ignore Points Snapped to Features is selected, the vertices that have angles less than the Minimum Angle will not be removed from the feature geometry; rather, they get recorded as point features and stored in the Output Points.

  • If this tool is run in an edit session in ArcMap, you can stop the edit session without saving changes to restore the cutback vertices that have been removed.

语法

arcpy.production.RemoveCutbacks(Input_Features, {Minimum_Angle}, {Removal_Method}, {Check_for_Errors_Only}, {Ignore_Points_Snapped_to_Features}, {Output_Points})
参数说明数据类型
Input_Features

The polyline or polygon feature class from which the tool will remove cutbacks. This feature class (or layer) will be modified.

Feature Layer
Minimum_Angle
(可选)

Minimum angle threshold value (in degrees). The angle value should be within the range of 0–180. If the angle formed by a vertex and its two neighboring points is below the specified minimum angle, the vertex is a candidate for cutback removal.

Double
Removal_Method
[Removal_Method,...]
(可选)

Indicates whether a cutback should be removed one at a time or all at once.

  • SEQUENTIAL —Cutbacks will be checked sequentially for a feature. After a cutback is removed, the change in geometry is taken into consideration for checks and removal of cutbacks in the remaining vertices of a feature. This is the default.
  • ALL —Cutbacks will be checked for all vertices.
String
Check_for_Errors_Only
(可选)

Indicates whether the tool will only check for errors. If Check for Errors Only is selected, cutbacks will not be removed from the Input_Features. Vertices that are determined to be cutbacks will be recorded as point features and stored in the Output_Points.

  • REPORT_ONLY —Cutbacks will not be removed from the Input_Features.
  • REPAIR_ONLY —Cutbacks will be removed from the Input_Features. This is the default.
Boolean
Ignore_Points_Snapped_to_Features
(可选)

Indicates whether to remove cutbacks when the vertex is snapped to another feature. If Check_For_Errors_Only is selected, deselect it to disable this option.

  • IGNORE_SNAPPED_POINTS —Cutbacks will not be removed; they will be recorded as point features and stored in the Output_Points.
  • REMOVE_SNAPPED_POINTS —Cutbacks will be removed without considering whether they are snapped to other features. This is the default.
Boolean
Output_Points
(可选)

The output point feature class; by default, this feature class is created in the default geodatabase.

Feature Class

派生输出

名称说明数据类型
output_feature_layer

The output feature layer that includes the modified features from the original input.

Feature Class

代码示例

RemoveCutbacks example 1 (stand-alone script)

The following stand-alone sample script demonstrates how to use the RemoveCutbacks tool to ignore cutbacks that are snapped to a feature.

# Name: RemoveCutbacks_Example1.py
# Description: Determines a cutback in a line or polygon based on a provided angle and removes it. In this example, the tool will
# ignore any cutbacks that are snapped to a feature to avoid creating gaps.  The vertices will be reported in a feature class for further review.

# Import system modules
import arcpy

# Check out extension
arcpy.CheckOutExtension("Foundation")

# Define variables
roads = r"C:\data\Editing_Sample.gdb\Roads"
minimum_angle = "25"
warning_feature_class = 'C:\data\Editing_Sample.gdb\roads_cutbacks'

# Execute Remove Cutbacks
arcpy.RemoveCutbacks_production(roads, minimum_angle, "SEQUENTIAL", '#', 'IGNORE_SNAPPED_POINTS', warning_feature_class)

# Check in Production Mapping license
arcpy.CheckInExtension("Foundation")
RemoveCutbacks example 2 (stand-alone script)

The following stand-alone sample script demonstrates how to use the RemoveCutbacks tool to find cutbacks under the given angle threshold.

# Name: RemoveCutbacks_Example2.py
# Description: Checks for any cutbacks under the given angle threshold and reports them in a point feature class.
# This example does not remove any cutbacks.

# Import system modules
import arcpy

# Check out extension
arcpy.CheckOutExtension("Foundation")

# Define variables
roads = r"C:\data\Editing_Sample.gdb\Roads"
minimum_angle = "25"
error_feature_class = 'C:\data\Editing_Sample.gdb\roads_cutbacks'

# Execute Remove Cutbacks
arcpy.RemoveCutbacks_production(roads, minimum_angle, "SEQUENTIAL", 'REPORT_ONLY', '#', error_feature_class)

# Check in Production Mapping license
arcpy.CheckInExtension("Foundation")

环境

  • 当前工作空间
  • 临时工作空间

许可信息

  • Basic: 否
  • Standard: 需要 Production Mapping
  • Advanced: 需要 Production Mapping

相关主题

  • An overview of the Editing toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明