当前位置:网站首页>ArcGIS application (XXI) ArcMap method of deleting layer specified features
ArcGIS application (XXI) ArcMap method of deleting layer specified features
2022-07-03 11:51:00 【Air spinning basketball】
in the light of Arcmap Delete the problem of specifying conditional elements in vector layers , For one GISer Come on , The first thought should be to use Arcmap Edit tool in . That is, after starting the editing tool , Using the attribute selection tool , Select the element to delete , And then directly Delete Then save the data , This is the most direct and convenient method . Of course, there are many other ways , For example, using AE Program to delete elements , You can customize various functions you need , It can also be used Python library -Gdal Program to delete elements , Such as this one :python Batch deletion shapefile The specified attribute value of a field in the file _ Air spin basketball blog -CSDN Blog
https://soderayer.blog.csdn.net/article/details/123087405. Of course , There are many other software that can achieve this goal .
although Arcmap The editing tool in is the easiest way , This is not a big problem for a small amount of data , But it is a little difficult to deal with a large amount of data . Take a data processed by myself as an example , A point layer vector data , There are hundreds of thousands of points , After starting the editing tool , Being loaded for a long time ,Arcmap For this kind of mass data processing efficiency is very low , Unable to enter the editing state for a long time , Even after entering the editing state, the data processing speed is relatively slow . So for big data , This method is not very desirable , It's too inefficient .
The programming method is very troublesome for some novices just to configure the environment , And if the data is not many , If there is no need for business operation , There is no need to program .
This is for the above problems , We can use Arcmap Use other tools in to delete the specified elements of the layer :
Method 1: Use Arcgis In your own toolbox Delete Features Tools to achieve rapid deletion .
Tool path :Data Management Tools->Featurs->Delete Features

From the help description on the right , We know that this tool can delete all elements in the layer or selected elements . Let's test the effect :
Open a vector data as follows , There are a large number of point layers in the layer :

If you use this tool directly , All the elements in the layer are deleted . We choose some elements that specify conditions , Here's the picture :
Use here Select Tools Select By Attribute…… The menu selects elements of specific conditions .

Then we use this tool to delete the feature selection operation layer , Click on OK, Look at the results :



From the results , The selected element is deleted , It's also very fast .
Method 2: Use Arcgis Select the method that the tool saves as new data to obtain the deleted layer data .
The specific process is as follows :
1. Use Select Tools Select By Attribute…… Menu select the element to be deleted under specific conditions .

2. Right click layer ,Open Attribute Table The menu opens the property sheet .

Use Switch Select Reverse selection of tools , These selected elements are the elements that need to be saved .


3. Create the selected feature as a new layer , That is, use the right-click menu Selection Medium Create Layer From Seleted Features

The newly created layer is temporarily stored , We need to save the data as a new layer , As shown in the figure below Data Menu Export Data The tool is saved as new vector data . This also enables the deletion of data specified elements . It's more efficient than Editor Editing tools are faster .

thus , End of this article , I hope that's helpful !
边栏推荐
猜你喜欢

Groovy test class and JUnit test

Event preview | the live broadcast industry "rolled in" to drive new data growth points with product power
![Capturing and sorting out external Fiddler -- Conversation bar and filter [2]](/img/04/e9cc027d753e7049f273d866eefdce.png)
Capturing and sorting out external Fiddler -- Conversation bar and filter [2]

Excel quick cross table copy and paste

基于turtlebot3实现SLAM建图及自主导航仿真

How to get started embedded future development direction of embedded

鸿蒙第三次培训(项目实训)

Vulnhub's presidential

Machine learning 3.2 decision tree model learning notes (to be supplemented)

Hongmeng third training (project training)
随机推荐
MCDF实验1
银泰百货点燃城市“夜经济”
PHP server interacts with redis with a large number of close_ Wait analysis
同事写了一个责任链模式,bug无数...
Phpcms prompt message page Jump showmessage
836. Merge sets (day 63) and search sets
Vulnhub's presidential
Groovy测试类 和 Junit测试
R language uses grid of gridextra package The array function combines multiple visual images of the lattice package horizontally, and the ncol parameter defines the number of columns of the combined g
Using onvif protocol to operate the device
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
《剑指offer 04》二维数组查找
C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
PHP Basics
typeScript
机器学习 3.2 决策树模型 学习笔记(待补)
R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
Web security summary
Viewing binary bin files with notepad++ editor
量化计算调研