APP下载

基于arcpy的土地规划分类统计脚本工具设计

2023-06-07王露卢骏

河南科技 2023年9期

王露 卢骏

摘 要:【目的】梳理现有土地利用现状及规划分类统计相关研究成果,从而优化和完美传统人工分类方式。【方法】结合土地利用现状及规划分类要求,以python通用编程语言为基础,基于arcpy站点包及openpyxl模块设计一套脚本工具,引入“四舍六入五看齐、奇进偶不进”的进位规则,确保成果精度。【结果】解决excel数据统计结果不准确问题,实现建设项目土地利用现状及规划分类自动统计,通过试验对比验证工具的可靠性和稳定性。【结论】提高用地预审与规划选址、土地利用规划修改、用地报批等的工作效率。

关键词:土地利用;脚本工具;奇进偶舍;用地预审

中图分类号:P963     文献标志码:A      文章编号:1003-5168(2023)09-0023-04

Abstract:[Purposes] To sort out the existing problems in the statistical research on land use status and planning classification, and improve the cumbersome and error-prone status of traditional manual classification methods. [Methods] Based on the current situation of land use and the requirements of planning and classification, a set of scripting tools was designed based on the Python general programming language, the Arcpy site package, and the openpyxl module. The rounding rule of "round to six, keep to five, and odd to even" was introduced to ensure the accuracy of the results. [Findings] The problem of unbalanced statistical results from Excel data was solved, and automatic statistics of land use status and planning classification for construction projects were realized. The reliability and stability of the tool were verified through experimental comparison. [Conclusions] The tool effectively promote the efficiency of land use preliminary review and planning site selection, land use planning modification, and land use approval.

Keywords: land use; script tools; banker's rounding; preliminary review of land use

0 引言

用地預审与规划选址、土地利用规划修改、用地报批等前期工作是国土空间用途管制十分重要的环节,是落实国土空间规划的主要调控措施,也是建设项目立项阶段的重要工作之一[1]。土地规划是国土资源管理的重要依据,对发挥国土宏观调控作用和国土资源合理利用等具有重要意义,而土地利用现状和规划分类统计数据又是国土资源管理的基础资料。

目前,对土地利用现状及规划分类自动化统计的研究相对较少。传统的人工统计法是先在ArcGIS中对数据进行处理,再将处理结果图层导入到excel[2]或ACCESS表格[3]中,利用excel公式或SQL函数完成相关统计工作。数据量较小时,该方法具有一定优势,但随着项目地块面积的增加,地类数据量和复杂度增加,该方法会出现效率低、易出错等弊端。……

登录APP查看全文