首页|基于Python和ArcPy的ArcGIS工具开发与打包方法研究

基于Python和ArcPy的ArcGIS工具开发与打包方法研究

扫码查看
本文针对目前ArcGIS脚本工具开发对ArcGIS桌面端的依赖性问题,研究一种基于Python语言和ArcPy库的ArcGIS工具开发与打包方法。该方法利用Python内置的Tkinter库构建工具界面,通过调用ArcPy等库实现工具功能,最后使用Py2exe库将工具打包为独立的可执行程序。本文以一个根据属性批量分离要素的工具为例详细阐述了工具开发的总体思路、关键技术和实现步骤,实现了ArcGIS工具无须在ArcGIS中加载即可独立使用的需求。
Research on the development and packaging methods of ArcGIS tools based on Python and ArcPy
This paper addresses the current dependency of ArcGIS script tool development on the ArcGIS desktop environment and explores an ArcGIS tool development and packaging method based on the Python language and ArcPy library.This method utilizes Python's built-in Tkinter library to construct the tool interface and achieves tool functionality by invoking libraries such as ArcPy.Finally,the tool is packaged into an independent executable program using the Py2exe library.The article takes a tool that batch separates features according to attributes as an example to elaborate on the overall development idea,key technologies,and implementation steps,realizing the requirement of using ArcGIS tools independently without the need to load them in ArcGIS.

GISArcPyArcGISbraphical user interfacetool developmentpackaging

谭攀攀

展开 >

贵州省第一测绘院,贵州 贵阳 550025

GIS ArcPy ArcGIS 图形界面 工具开发 打包

2024

中国高新科技
中华预防医学会,国家食品安全风险评估中心

中国高新科技

ISSN:
年,卷(期):2024.(13)