ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Remove Cutbacks

Disponible con licencia de Production Mapping.

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información de licenciamiento

Resumen

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.

Uso

    Precaución:

    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.

Sintaxis

arcpy.production.RemoveCutbacks(Input_Features, {Minimum_Angle}, {Removal_Method}, {Check_for_Errors_Only}, {Ignore_Points_Snapped_to_Features}, {Output_Points})
ParámetroExplicaciónTipo de datos
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
(Opcional)

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,...]
(Opcional)

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
(Opcional)

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
(Opcional)

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
(Opcional)

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

Feature Class

Salida derivada

NombreExplicaciónTipo de datos
output_feature_layer

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

Feature Class

Muestra de código

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")

Entornos

  • Espacio de trabajo actual
  • Espacio de trabajo temporal

Información de licenciamiento

  • Basic: No
  • Standard: Requiere Production Mapping
  • Advanced: Requiere Production Mapping

Temas relacionados

  • An overview of the Editing toolset

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal