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 Self Intersections

获得 Production Mapping 许可后可用。

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

描述

This tool removes self-intersecting portions of features beyond their vertices of intersection in an input line or polygon feature class.

插图

Remove Self Intersections illustration

使用方法

  • This tool modifies the input features.

    警告:

    This tool modifies the input data. See Tools_with_no_outputs for more information and strategies to avoid undesired data changes.

语法

arcpy.production.RemoveSelfIntersections(Input_Features, {Maximum_Removal_Length}, {Remove_Self_Intersections_at_End_Point}, {Check_for_Errors_Only}, {Output_Table})
参数说明数据类型
Input_Features

The polyline or polygon feature class from which this tool will remove self-intersections. This feature class (or layer) will be modified.

Feature Layer
Maximum_Removal_Length
(可选)

The maximum length for input lines or polygons. Features within maximum length are deleted.

Linear unit
Remove_Self_Intersections_at_End_Point
(可选)

Indicates if this tool will remove, or avoid removing, any self-intersections whose end point is snapped on itself.

  • REMOVE_SNAPPED —Self-intersections will be removed.
  • IGNORE_SNAPPED —Any feature that has an end point that snaps to itself will not be removed. An example is a cul-de-sac. This is the default.
Boolean
Check_for_Errors_Only
(可选)

Indicates if this tool will report errors only or remove self-intersections.

  • REPORT_ONLY —Self-intersections will not be removed and the records will be added to the Output_Table.
  • REPAIR_ONLY —Self-intersections will be removed. This is the default.
Boolean
Output_Table
(可选)

The table that will be created containing all errors if REPORT_ONLY is selected in the Check_For_Errors_Only parameter.

Feature Layer

代码示例

RemoveSelfIntersections example 1 (stand-alone script)

The following stand-alone sample script demonstrates how to use the RemoveSelfIntersections tool.

# Name: RemoveSelfIntersections_Example.py
# Description: Remove the self-intersections in the roads feature class that are under 50 meters long.  No warnings or errors will be recorded in a table.

# Import system modules
import arcpy

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

# Define variables
input_features = r"C:\data\Edit_Sample.gdb\Roads"
maximum_removal_length = "50 Meters"

# Execute Remove Self Intersections
arcpy.RemoveSelfIntersections_production(input_features, maximum_removal_length, "REMOVE_SNAPPED", "REPAIR_ONLY", "#")

# 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. | 隐私政策 | 法律声明