当前位置:网站首页>Arcpy 利用updatelayer函数改变图层的符号系统
Arcpy 利用updatelayer函数改变图层的符号系统
2022-07-04 06:09:00 【YuanYWRS】
【介绍】:
arcpy.mapping 里的updatelayer函数具有更新图层符号系统的功能,也可以用来更新各种图层属性,它作为一个多功能的函数,需要掌握其各个参数的使用情况。
【处理前】:
【代码示例】:
【代码分析】:
[第一行]:导入arcpy.mapping模块;
[第二行]:引用当前的地图文档,并赋值给变量;
[第三行]:获取对数据框的引用;
[第四行]:定义将要更新的图层;如果更新图层的符号系统,必须保证更新图层和源图层具有相同的几何图形(点、线、面),还要检查属性定义是否相同,分级颜色和分级符号都要基于一个特定的属性。
[第五行]:定义用于更新符号系统的源图层;
[第六行]:调用updatelayer函数来更新符号系统;True表示的是仅仅更新图层的符号系统,不更新属性信息。
【处理后】:
【结果分析】:由分级颜色变为分级符号。
【声明】:代码和数据均来源于牟乃夏老师的书籍。
边栏推荐
- Configure cross compilation tool chain and environment variables
- BeanFactoryPostProcessor 与 BeanPostProcessor 相关子类概述
- 卸载Google Drive 硬盘-必须退出程序才能卸载
- Impact relay jc-7/11/dc110v
- Learn about the Internet of things protocol WiFi ZigBee Bluetooth, etc. --- WiFi and WiFi protocols start from WiFi. What do we need to know about WiFi protocol itself?
- Kubernets first meeting
- How to expand all collapse panels
- JS how to convert seconds into hours, minutes and seconds display
- Layoutmanager layout manager: flowlayout, borderlayout, GridLayout, gridbaglayout, CardLayout, BoxLayout
- el-select如何实现懒加载(带搜索功能)
猜你喜欢

JS flattened array of number shape structure

509. Fibonacci number, all paths of climbing stairs, minimum cost of climbing stairs

JSON Web Token----JWT和传统session登录认证对比

C réaliser des jeux de serpents gourmands

4G wireless all network solar hydrological equipment power monitoring system bms110

gslb(global server load balance)技术的一点理解

Json Web token - jwt vs. Traditional session login Authentication

LayoutManager布局管理器:FlowLayout、BorderLayout、GridLayout、GridBagLayout、CardLayout、BoxLayout

One click filtering to select Baidu online disk files

复合非线性反馈控制(二)
随机推荐
如何判断数组中是否含有某个元素
【无标题】
如何展开Collapse 的所有折叠面板
Halcon image calibration enables subsequent image processing to become the same as the template image
复合非线性反馈控制(二)
Sword finger offer II 038 Daily temperature
MySQL的information_schema数据库
How does apscheduler set tasks not to be concurrent (that is, execute the next task after the first one)?
Arc135 C (the proof is not very clear)
How to choose the middle-aged crisis of the testing post? Stick to it or find another way out? See below
报错cvc-complex-type.2.4.a: 发现了以元素 ‘base-extension‘ 开头的无效内容。应以 ‘{layoutlib}‘ 之一开头。
Wechat applet +php realizes authorized login
【微服务】Nacos集群搭建以及加载文件配置
分布式CAP理论
Qt发布多语言国际化翻译
70000 words of detailed explanation of the whole process of pad openvino [CPU] - from environment configuration to model deployment
Upper computer software development - log information is stored in the database based on log4net
Input displays the currently selected picture
gslb(global server load balance)技术的一点理解
C實現貪吃蛇小遊戲