Geographic information systems belong the group of applications that process spatial data. Some spatial analyses are operated repetitively in the same way for different area or district. Therefore it is useful when the data processing can be run automatically by program extension designed especially for batch data processing. ArcGIS software offers a possibility to design the steps of data processing by data flow diagram in the graphic editor ModelBuilder. In some cases the data flow diagram which is designed in ModelBuilder component is not sufficient for all require tasks. In such cases, it is possible to automatically convert data flow diagram into the Python language and supplement the program code with other program constructions and commands. Some practical examples are presented in this article. All Python scripts were developed as a part of several research projects at Department of Geinformatics at Palacký University in the Czech Republic. This article is a sum of experience with scripting in Python for ArcGIS geoprocessor.%随着GIS技术的快熟发展,海量空间数据高效、快速处理越来越受到重视。通过程序扩展设计来进行数据自动化处理是非常有用的。尤其是批量数据处理时是非常有用的。ArcGIS中的Model Builder模块为空间数据处理自动化提供了平台,从ArcGIS 9.X之后ESRI开始将Python语言引入供用户可以编程实现空间数据快速处理,文章介绍了如何使用Python语言调用ArcGIS站点包进行空间数据处理。
展开▼