当前位置:网站首页>Arcpy 利用updatelayer函数改变图层的符号系统
Arcpy 利用updatelayer函数改变图层的符号系统
2022-07-04 06:09:00 【YuanYWRS】
【介绍】:
arcpy.mapping 里的updatelayer函数具有更新图层符号系统的功能,也可以用来更新各种图层属性,它作为一个多功能的函数,需要掌握其各个参数的使用情况。
【处理前】:
【代码示例】:
【代码分析】:
[第一行]:导入arcpy.mapping模块;
[第二行]:引用当前的地图文档,并赋值给变量;
[第三行]:获取对数据框的引用;
[第四行]:定义将要更新的图层;如果更新图层的符号系统,必须保证更新图层和源图层具有相同的几何图形(点、线、面),还要检查属性定义是否相同,分级颜色和分级符号都要基于一个特定的属性。
[第五行]:定义用于更新符号系统的源图层;
[第六行]:调用updatelayer函数来更新符号系统;True表示的是仅仅更新图层的符号系统,不更新属性信息。
【处理后】:
【结果分析】:由分级颜色变为分级符号。
【声明】:代码和数据均来源于牟乃夏老师的书籍。
边栏推荐
- Nexus 6p从8.0降级6.0+root
- 2022.7.2-----leetcode. eight hundred and seventy-one
- Manually page the list (parameter list, current page, page size)
- 如何实现视频平台会员多账号登录
- HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)
- "In simple language programming competition (basic)" part 1 Introduction to language Chapter 3 branch structure programming
- [openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx
- 剑指 Offer II 038. 每日温度
- Functions in C language (detailed explanation)
- Design and implementation of redis 7.0 multi part AOF
猜你喜欢
复合非线性反馈控制(二)
HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
70000 words of detailed explanation of the whole process of pad openvino [CPU] - from environment configuration to model deployment
Detectron: train your own data set -- convert your own data format to coco format
每周小结(*63):关于正能量
After the festival, a large number of people change careers. Is it still time to be 30? Listen to the experience of the past people
JSON Web Token----JWT和傳統session登錄認證對比
Practical gadget instructions
AWT common components, FileDialog file selection box
分布式CAP理论
随机推荐
ES6 modularization
Invalid revision: 3.18.1-g262b901-dirty
C language exercises (recursion)
[Chongqing Guangdong education] electronic circuit homework question bank of RTVU secondary school
740. Delete and get points
Sword finger offer II 038 Daily temperature
卸载Google Drive 硬盘-必须退出程序才能卸载
Webrtc quickly set up video call and video conference
AWT介绍
C realize Snake games
How to avoid JVM memory leakage?
Tutle clock improved version
Use of hutool Pinyin tool
js获取对象中嵌套的属性值
My NVIDIA developer journey - optimizing graphics card performance
[openvino+paddle] paddle detection / OCR / SEG export based on paddle2onnx
Sort list tool class, which can sort strings
Detectron: train your own data set -- convert your own data format to coco format
安装 Pytorch geometric
HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)