当前位置:网站首页>Arcpy 利用updatelayer函数改变图层的符号系统
Arcpy 利用updatelayer函数改变图层的符号系统
2022-07-04 06:09:00 【YuanYWRS】
【介绍】:
arcpy.mapping 里的updatelayer函数具有更新图层符号系统的功能,也可以用来更新各种图层属性,它作为一个多功能的函数,需要掌握其各个参数的使用情况。
【处理前】:
【代码示例】:
【代码分析】:
[第一行]:导入arcpy.mapping模块;
[第二行]:引用当前的地图文档,并赋值给变量;
[第三行]:获取对数据框的引用;
[第四行]:定义将要更新的图层;如果更新图层的符号系统,必须保证更新图层和源图层具有相同的几何图形(点、线、面),还要检查属性定义是否相同,分级颜色和分级符号都要基于一个特定的属性。
[第五行]:定义用于更新符号系统的源图层;
[第六行]:调用updatelayer函数来更新符号系统;True表示的是仅仅更新图层的符号系统,不更新属性信息。
【处理后】:
【结果分析】:由分级颜色变为分级符号。
【声明】:代码和数据均来源于牟乃夏老师的书籍。
边栏推荐
- Uninstall Google drive hard drive - you must exit the program to uninstall
- 2022.7.3-----leetcode.556
- Functions in C language (detailed explanation)
- fastjson
- 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
- APScheduler如何设置任务不并发(即第一个任务执行完再执行下一个)?
- [Chongqing Guangdong education] electronic circuit homework question bank of RTVU secondary school
- (4) Canal multi instance use
- How much computing power does transformer have
- Kubernets first meeting
猜你喜欢

JS execution mechanism

JS扁平化数形结构的数组

每周小结(*63):关于正能量

复合非线性反馈控制(二)

Tf/pytorch/cafe-cv/nlp/ audio - practical demonstration of full ecosystem CPU deployment - Intel openvino tool suite course summary (Part 2)

win10清除快速访问-不留下痕迹

Uninstall Google drive hard drive - you must exit the program to uninstall

HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)

Detectron:训练自己的数据集——将自己的数据格式转换成COCO格式

The end of the Internet is rural revitalization
随机推荐
How to implement lazy loading in El select (with search function)
配置交叉编译工具链和环境变量
Kubernets first meeting
Learning multi-level structural information for small organ segmentation
el-select如何实现懒加载(带搜索功能)
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
JS execution mechanism
How to realize multi account login of video platform members
Internet of things protocol ZigBee ZigBee module uses the concept of protocol stack
[untitled]
[Chongqing Guangdong education] electronic circuit homework question bank of RTVU secondary school
Webrtc quickly set up video call and video conference
Layoutmanager layout manager: flowlayout, borderlayout, GridLayout, gridbaglayout, CardLayout, BoxLayout
JS how to convert seconds into hours, minutes and seconds display
Gridview出现滚动条,组件冲突,如何解决
One click filtering to select Baidu online disk files
JSON web token -- comparison between JWT and traditional session login authentication
Nexus 6p downgraded from 8.0 to 6.0+root
Wechat applet +php realizes authorized login
【微服务】Nacos集群搭建以及加载文件配置