当前位置:网站首页>Arcpy uses the updatelayer function to change the symbol system of the layer
Arcpy uses the updatelayer function to change the symbol system of the layer
2022-07-04 06:14:00 【YuanYWRS】
【 Introduce 】:
arcpy.mapping Inside updatelayer Function has the function of updating the layer symbol system , It can also be used to update various layer attributes , As a multifunctional function , You need to master the use of its parameters .
【 Before processing 】:
【 Code example 】:
【 The code analysis 】:
[ first line ]: Import arcpy.mapping modular ;
[ The second line ]: Reference the current map document , And assign to variable ;
[ The third line ]: Get a reference to the data frame ;
[ In the fourth row ]: Define the layer to be updated ; If you update the symbol system of the layer , It must be ensured that the updated layer and the source layer have the same geometry ( spot 、 Line 、 Noodles ), Also check whether the attribute definitions are the same , Grading colors and grading symbols are based on a specific attribute .
[ The fifth row ]: Define the source layer used to update the symbology ;
[ Sixth elements ]: call updatelayer Function to update the symbology ;True It means that only the symbol system of the layer is updated , Do not update attribute information .
【 After processing 】:
【 Result analysis 】: Change from grading color to grading symbol .
【 Statement 】: The code and data are from the books of teacher mu Naixia .
边栏推荐
- 4G wireless all network solar hydrological equipment power monitoring system bms110
- Accidentally deleted the data file of Clickhouse, can it be restored?
- How to determine whether an array contains an element
- 如何展开Collapse 的所有折叠面板
- High performance parallel programming and optimization | lesson 02 homework at home
- C realize Snake games
- JS flattened array of number shape structure
- 微信小程序使用rich-text中图片宽度超出问题
- QT 获取随机颜色值设置label背景色 代码
- Internet of things protocol ZigBee ZigBee module uses the concept of protocol stack
猜你喜欢
Error CVC complex type 2.4. a: Invalid content beginning with element 'base extension' was found. Should start with one of '{layoutlib}'.
ES6 modularization
C realize Snake games
如何展开Collapse 的所有折叠面板
Yiwen unlocks Huawei's new cloud skills - the whole process of aiot development [device access - ESP end-to-side data collection [mqtt]- real time data analysis] (step-by-step screenshot is more detai
buuctf-pwn write-ups (8)
Learning multi-level structural information for small organ segmentation
Component、Container容器常用API详解:Frame、Panel、ScrollPane
High performance parallel programming and optimization | lesson 02 homework at home
Kubernets first meeting
随机推荐
Invalid bound statement (not found): com. example. mapper. TblUserRecordMapper. login
left_ and_ right_ Net normal version
【无标题】
Tutle clock improved version
如何避免 JVM 内存泄漏?
JS扁平化数形结构的数组
Input displays the currently selected picture
[excel] PivotChart
Kubernets first meeting
C语言中的函数(详解)
js如何将秒转换成时分秒显示
How to implement lazy loading in El select (with search function)
C language exercises (recursion)
Luogu deep foundation part 1 Introduction to language Chapter 5 array and data batch storage
Sword finger offer II 038 Daily temperature
JS flattened array of number shape structure
安装 Pytorch geometric
746. Climb stairs with minimum cost
"In simple language programming competition (basic)" part 1 Introduction to language Chapter 3 branch structure programming
js获取对象中嵌套的属性值