当前位置:网站首页>ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
2022-07-03 10:59:00 【空中旋转篮球】
针对Arcmap删除矢量图层指定条件要素的问题,对于一个GISer来说,首先想到的应该就是使用Arcmap中编辑工具进行处理。即启动编辑工具之后,采用属性选择工具,选择要删除的要素,然后直接Delete之后保存数据即可,这是最直接和便捷的方法。当然还有很多其他的方法,比如采用AE编程实现要素删除,可以定制自己需要的各种功能,也可以是使用Python库-Gdal编程实现要素删除,比如这篇:python批量删除shapefile文件中某字段的指定属性值_空中旋转篮球的博客-CSDN博客
https://soderayer.blog.csdn.net/article/details/123087405。当然,也有不少其他软件可以实现这个目标。
虽然Arcmap中编辑工具是最简单的办法,这对于少量数据来说也问题不大,但是对于大量数据处理就有些难以处理了。以我自己处理的一个数据为例,一个点图层矢量数据,有大几十万个点,启动编辑工具之后,长时间处于加载状态,Arcmap对于这种大批量数据处理效率十分低下,长时间无法进入编辑状态,后期即使进入编辑状态后处理数据速度也比较慢。因此针对大数据,这种方法不太可可取,效率太低下了。
而编程的方法对于一些新手来说光是配置环境就很麻烦,而且如果数据不是很多,不需要业务化运行需求的话,也没有必要去进行编程。
这对以上问题,我们可以使用Arcmap中其他工具来实现图层指定要素的删除:
方法1:使用Arcgis自带工具箱中的Delete Features工具来实现快速删除。
工具路径:Data Management Tools->Featurs->Delete Features

从右侧的帮助说明来看,我们知道这个工具可以删除图层中的所有要素或者选择的要素。我们来测试一下效果:
打开一个矢量数据如下,图层中具有大量的点图层:

如果直接使用该工具,就删除了图层中所有的要素。我们选择一些指定条件的要素,如下图:
这里使用Select工具中的Select By Attribute……菜单选择特定条件的要素。

然后我们使用该工具删除要素选中操作图层,点击OK,再看看效结果:



从结果来看,选中的要素删除了,速度也很快。
方法2:使用Arcgis中选择工具保存为新数据的方法获得删除后的图层数据。
具体过程如下:
1.使用Select工具中的Select By Attribute……菜单选择特定条件的待删除要素。

2.右键图层,Open Attribute Table菜单打开属性表。

使用Switch Select工具反选,这些选择的要素就是需要保存的要素。


3.将选择要素创建为新的图层,即使用右键菜单Selection中的Create Layer From Seleted Features

新创建的图层是临时存储的,我们需要将数据重新保存为新的图层,如下图中的Data菜单中的Export Data工具保存为新的矢量数据。这样也实现了数据指定要素的删除。效率也比Editor编辑工具更快。

至此,本文完毕,希望对大家有所帮助!
边栏推荐
- 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
- ASP.NET-酒店管理系统
- GCC compilation process and dynamic link library and static link library
- Hongmeng third training (project training)
- Xml的(DTD,xml解析,xml建模)
- Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable
- R language uses grid of gridextra package The array function combines multiple visual images of the ggplot2 package horizontally, and the ncol parameter defines the number of columns of the combined g
- Arctangent entropy: the latest SCI paper in July 2022
- Viewing binary bin files with notepad++ editor
- P3250 [HNOI2016] 网络 + [NECPC2022] F.Tree Path 树剖+线段树维护堆
猜你喜欢

Excel快速跨表复制粘贴

GCC compilation process and dynamic link library and static link library

After watching the video, AI model learned to play my world: cutting trees, making boxes, making stone picks, everything is good

金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~

一文搞懂Go语言Context

Cuiyusong, CTO of youzan: the core goal of Jarvis is to make products smarter and more reliable

DS90UB949

软件测试周刊(第78期):你对未来越有信心,你对现在越有耐心。

FL Studio 20 unlimited trial fruit arranger Download

Abandon the Internet after 00: don't want to enter a big factory after graduation, but go to the most fashionable Web3
随机推荐
Linear table sequence table comprehensive application problem p18
软考中级软件设计师该怎么备考
C language log base zlog basic use
Encapsulate a koa distributed locking middleware to solve the problem of idempotent or repeated requests
Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)
活动预告 | 直播行业“内卷”,以产品力拉动新的数据增长点
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
R语言ggplot2可视化:gganimate包创建动态折线图动画(gif)、使用transition_reveal函数在动画中沿给定维度逐步显示数据、在折线移动方向添加数据点
并发编程-单例
Cadence background color setting
Excel quick cross table copy and paste
STL教程10-容器共性和使用场景
836. 合并集合(DAY 63)并查集
ftp登录时,报错“530 Login incorrect.Login failed”
Numpy np.max和np.maximum实现relu函数
MATLAB extrait les données numériques d'un fichier txt irrégulier (simple et pratique)
00后抛弃互联网: 毕业不想进大厂,要去搞最潮Web3
动态规划(区间dp)
ASP. Net hotel management system
uniapp实现点击加载更多