ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Erase Point

  • Summary
  • Illustration
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Deletes points from the input that are either inside or outside the Remove Features, depending on the Operation Type.

Illustration

Erase Point Illustration

Usage

    Caution:

    This tool modifies the input data. See Tools that do not create output datasets for more information and strategies to avoid undesired data changes.

  • To delete points inside or on the boundary of the Remove Features, use operation type INSIDE. To delete points outside the Remove Features, use operation type OUTSIDE.

  • For multipoint input features, only points inside or outside the Remove Features will be deleted, depending on the Operation Type.

Syntax

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

The input point features.

Feature Layer
remove_features

Input features inside or outside the Remove Features will be deleted, depending on the Operation Type parameter.

Feature Layer
operation_type
(Optional)

Determines if points inside or outside the remove features will be deleted.

  • INSIDE —Input point features inside or on the boundary of the remove features will be deleted.
  • OUTSIDE —Input 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.ErasePoint_edit("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.ErasePoint_edit(inElevationFeatures, inLakeFeatures, "INSIDE")

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

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

Environments

  • Current Workspace

Licensing information

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

Related topics

  • An overview of the Editing toolbox

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal