python-快速入门
2014-11-28 17:17
197 查看
ref: Calculate Field examples
Entering values with the keyboard is not the only way you can edit values in a table. In some cases, you might want to perform a mathematical calculation to set a field value for a single record or even all records. You can perform simple as well as advanced calculations on all or selected records. In addition, you can calculate area, length, perimeter, and other geometric properties on fields in attribute tables. The sections below include examples of using the field calculator. Calculations can be performed using either Python or VBScript.
Python is the recommended scripting language for ArcGIS. Use Python if you want access to geoprocessing functionality, including feature geometry. The adoption of Python as the scripting language for ArcGIS 10.0 provides many opportunities for performing calculations.
View Code
Entering values with the keyboard is not the only way you can edit values in a table. In some cases, you might want to perform a mathematical calculation to set a field value for a single record or even all records. You can perform simple as well as advanced calculations on all or selected records. In addition, you can calculate area, length, perimeter, and other geometric properties on fields in attribute tables. The sections below include examples of using the field calculator. Calculations can be performed using either Python or VBScript.
Python is the recommended scripting language for ArcGIS. Use Python if you want access to geoprocessing functionality, including feature geometry. The adoption of Python as the scripting language for ArcGIS 10.0 provides many opportunities for performing calculations.
import numpy.random as R def getRandomValue(): return R.random()
View Code
相关文章推荐
- Python 学习(二)【快速入门】
- python html parser库lxml的介绍和使用(快速入门)
- Python学习笔记 01 快速入门
- Python 快速入门
- Python快速入门教程
- Python快速入门
- Python--快速入门
- Python 快速入门
- python 3 快速入门
- python快速入门视频教程
- [转] Python快速入门
- python快速入门教程
- Thinking In Python(Bruce Eckel) 程序员的Python快速入门
- Python快速入门
- Python学习笔记 01 快速入门
- Python快速入门
- Python3.x快速入门学习
- python学习总结一(快速入门)
- python学习系列一:python快速入门
- python 入门快速学习整理