ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS for Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Remove Cutbacks

Disponible avec une licence Production Mapping.

  • Résumé
  • Utilisation
  • Syntaxe
  • Exemple de code
  • Environnements
  • Informations de licence

Résumé

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.

Utilisation

    Attention :

    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.

Syntaxe

RemoveCutbacks(Input_Features, {Minimum_Angle}, {Removal_Method}, {Check_for_Errors_Only}, {Ignore_Points_Snapped_to_Features}, {Output_Points})
ParamètreExplicationType de données
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
(Facultatif)

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

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

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

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

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

Feature Class

Exemple de code

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

Environnements

  • Espace de travail courant
  • Espace de travail temporaire

Informations de licence

  • ArcGIS Desktop Basic: Non
  • ArcGIS Desktop Standard: Requiert Production Mapping
  • ArcGIS Desktop Advanced: Requiert Production Mapping

Rubriques connexes

  • An overview of the Editing toolset

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2019 Esri. | Confidentialité | Légal