操作步骤
在用arcgis进行建立规划数据库操作时,入库的标准要求数字保留2位小数,可以如下操作:1、在任一要素类或者表上右击【打开属性表】,再找到要计算的字段上右击【字段计算器】,即可打开字段计算器。
2、选择脚本语言。默认是【VB】,需要手动改成【Python】。
3、然后把下面的代码粘贴到代码框内,确定就行。
round(!Shape_Area!,2)
注意事项
注意,在代码框里输入的符号都必须是在英文状态下输入。
2024-07-13
176
0
1、在任一要素类或者表上右击【打开属性表】,再找到要计算的字段上右击【字段计算器】,即可打开字段计算器。
2、选择脚本语言。默认是【VB】,需要手动改成【Python】。
3、然后把下面的代码粘贴到代码框内,确定就行。
round(!Shape_Area!,2)
注意,在代码框里输入的符号都必须是在英文状态下输入。
本文作者: 小超笔记
原文链接: arcgis属性表字段保留2位小数
版权声明: 本站所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
免责声明: 文中如涉及第三方资源,均来自互联网,仅供学习研究,禁止商业使用,如有侵权,联系我们24小时内删除!
评论0
暂时没有评论