Erase Point (Editing)

Summary

Deletes points from the input that are either inside or outside the remove features, depending on the operation type.

Illustration

Erase Point tool Illustration

Usage

    Caution:

    This tool modifies the input data. See Tools that modify or update the input data for more information and strategies to avoid undesired data changes.

  • To delete points inside or on the boundary of the Remove Features parameter value, use the Operation Type parameter's Inside option. To delete points outside the Remove Features parameter value, use the Operation Type parameter's Outside option.

  • When the Input Features parameter consists of multipoint features, only points inside or outside the Remove Features parameter value will be deleted, depending on the Operation Type option.

Parameters

LabelExplanationData Type
Input Features

The input point features.

Feature Layer
Remove Features

The polygon features that will be used to determine which features from the Input Features value will be deleted.

Feature Layer
Operation Type
(Optional)

Specifies whether points inside or outside the remove features will be deleted.

  • InsideInput point features inside or on the boundary of the remove features will be deleted.
  • OutsideInput point features outside the remove features will be deleted.
String

Derived Output

LabelExplanationData Type
Updated Input Features

The updated input features.

Feature Class

arcpy.edit.ErasePoint(in_features, remove_features, {operation_type})
NameExplanationData Type
in_features

The input point features.

Feature Layer
remove_features

The polygon features that will be used to determine which features from the in_features value will be deleted.

Feature Layer
operation_type
(Optional)

Specifies whether points inside or outside the remove features will be deleted.

  • INSIDEInput point features inside or on the boundary of the remove features will be deleted.
  • OUTSIDEInput point features outside the remove features will be deleted.
String

Derived Output

NameExplanationData Type
out_feature_class

The updated input features.

Feature Class

Code sample

ErasePoint example 1 (Python window)

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

import arcpy
arcpy.env.workspace = "C:/data"
arcpy.edit.ErasePoint("trees.shp", "park_boundaries", "INSIDE")
ErasePoint example 2 (stand-alone script)

The following stand-alone script demonstrates how to use the ErasePoint function.

# Name: ErasePoint_Example2.py
# Description: Replacing low resolution elevation points inside 
# lake areas by high resolution lidar points.
 
# Import system modules
import arcpy
 
# Set environment settings
arcpy.env.workspace = "C:/data/Portland.gdb/relief"
 
# Set local variables
inElevationFeatures = "elevation_points"
inLidarFeatures = "lidar_points"
inLakeFeatures = "lakes"

# Erase elevation points inside lakes
arcpy.edit.ErasePoint(inElevationFeatures, inLakeFeatures, "INSIDE")

# Clip lidar points inside lakes
arcpy.edit.ErasePoint(inLidarFeatures, inLakeFeatures, "OUTSIDE")

# Append the clipped lidar points to the remaining elevation points
arcpy.management.Append(inElevationFeatures, inLidarFeatures, "NO_TEST")

Environments

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics