APP下载

基于ArcPy的GIS数据批处理程序教学实验设计

2021-08-18谷正楠张震

电脑知识与技术 2021年18期
关键词:开发

谷正楠 张震

摘要:针对以往GIS设计与开发课程教学中,学生对于编程语言畏难的问题,本文设计一个基于ArcPy的GIS数据批处理程序教学实验,以批量裁剪栅格数据为例,详细阐述了程序设计的具体思路及过程,旨在为学生自主设计实用的批处理程序提供参考,同时提高学生对GIS开发的自信,培养学生对GIS开发的兴趣,加深学生对GIS开发的认识,强化学生的GIS开发能力,为以后的编程学习奠定基础。

关键词:ArcPy;GIS数据;批处理;程序设计;开发

中图分类号:G642        文献标识码:A

文章编号:1009-3044(2021)18-0114-03

开放科学(资源服务)标识码(OSID):

Teaching Experimental Design of GIS Data Batch Processing Program Based on ArcPy

GU Zheng-nan, ZHANG Zhen

(School of Geomatics, Anhui University of Science and Technology, Huainan 232001, China)

Abstract:For the current problem that students were afraid of programming language in the past teaching of GIS design and development courses, this article designs a teaching experiment of GIS data batch processing program based on ArcPy. Taking batch cropping of raster data as an example, the specific ideas of program design are explained in detail. The purpose of this process is to provide a reference for students to design practical batch processing programs independently, and at the same time improve students confidence in GIS development, cultivate students interest in GIS development, deepen students understanding of GIS development, and strengthen students GIS development capabilities. Lay the foundation for future programming learning.

Key words:ArcPy; GIS data; batch processing; program design; development

1 引言

GIS開发是地理信息科学专业重要的专业基础课程[1-2],以往的授课多以ArcGIS Engine教学为主,学生编程基础薄弱,会对开发产生畏难情绪[3],而Python语言简单易学且编程灵活[4],有助于学生轻松上手。ArcPy是基于ArcGIS的Python站点包,通过调用ArcPy,可以开发出大量的用于处理GIS数据的实用程序[5],既可以解决传统的ArcMap软件处理GIS数据效率低、处理速度慢且容易出错等问题[6-7],又可以培养学生对于GIS开发的积极性,加深学生对开发的认识,锻炼学生的开发能力。因此,在传统ArcGIS Engine教学前,引入基于ArcPy的GIS数据批处理实验,有助于提高学生对开发的自信,拓宽学生对开发的视野,为以后的编程学习奠定基础。

本文设计基于ArcPy的GIS数据批处理程序教学实验,旨在让学生学习和掌握Python和ArcPy程序设计的基础知识与GIS二次开发技术相关的理论知识,并引导学生在以后的学习中自主开发实用的批处理程序。

2 ArcPy简介

ArcPy是继承ArcGIS 9中arcgisscripting模块的基础上,在ArcGIS 10中引入Python站点包发展而成[8-9]。……

登录APP查看全文

猜你喜欢

开发
软件开发信息管理系统的设计与实现
浅谈动力总成骡子车开发方法
高中历史教学中对历史图片的开发及实际应用
在线投稿与编辑系统的设计与开发
河南方言文化资源的保护及其开发利用的研究
基于J2EE和Ionic的ITer学习APP设计与开发
单片机在电子技术中的应用和开发