Erase

Title  Erase

Summary

Cria uma nova classe de feição que apresenta a feição de entrada apagando a porção indicada para remoção.


Illustration

Erase illustration Erase illustration

Usage


Syntax

Parameter Explanation
in_features

The input feature class or layer.

erase_features

The features to be used to erase coincident features in the input.

out_feature_class (Optional)

The feature class that will contain only those Input Features that are not coincident with the Erase Features.

cluster_tolerance (Optional)

The minimum distance separating all feature coordinates (nodes and vertices) as well as the distance a coordinate can move in X or Y (or both).

esri_out_feature_service_name (Optional)

The name of the optional feature service to create on the federated server containing the result of this tool. If no name is specified an output feature service will not be created.

Code Samples

Erase example 1 (Python window)

The following Python window script demonstrates how to use the Erase function in immediate mode.


import arcpy
arcpy.env.workspace = 'C:/data/gdb'
arcpy.Erase_analysis(r'redlands.gdb\rdlswells\well', r'redlands.gdb\rdlsfloodzones\flood', r'redlands.gdb\wellsoutside_flood')
                    

Erase example 2 (stand-alone script)

Find areas of suitable vegetation which exclude areas heavily impacted by major roads.


# Name: Erase.py
# Description: Find areas of suitable vegetation which exclude areas heavily impacted by major roads

# import system modules 
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/data/Habitat_Analysis.gdb"

# Select suitable vegetation patches from all vegetation
veg = "vegtype"
suitableVeg = "C:/output/Output.gdb/suitable_vegetation"
whereClause = "HABITAT = 1" 
arcpy.Select_analysis(veg, suitableVeg, whereClause)

# Buffer areas of impact around major roads
roads = "majorrds"
roadsBuffer = "C:/output/Output.gdb/buffer_output"
distanceField = "Distance"
dissolveField = "Distance"
arcpy.Buffer_analysis(roads, roadsBuffer, distanceField, "FULL", "ROUND", "LIST", dissolveField)

# Erase areas of impact around major roads from the suitable vegetation patches
eraseOutput = "C:/output/Output.gdb/suitable_vegetation_minus_roads"
xyTol = "1 Meters"
arcpy.Erase_analysis(suitableVeg, roadsBuffer, eraseOutput, xyTol)

                    

Tags

Credits

Use limitations