fix: Step 1 手动解析 GeoJSON,兼容 ArcGIS 10.8 (#3)

arcpy.JSONToFeatures_conversion 仅支持 ArcGIS 内部 JSON 格式,
不兼容标准 GeoJSON(RFC 7946),ArcGIS 10.8 报 ERROR 001558。

重写 arcpy_convert.py:
- 自行读取 GeoJSON 文件,解析 coordinates
- 使用 arcpy.Polygon + InsertCursor 手动构建面要素
- 支持 Polygon 和 MultiPolygon 两种几何类型
- 保留原有字段(name, code, population)
- 保持 # -*- coding: utf-8 -*- 声明

workflow.yaml: version 1.0.4 → 1.0.5
This commit is contained in:
SuiteForge
2026-07-22 21:43:54 +08:00
parent 52858c151b
commit 75a8fcf114
2 changed files with 107 additions and 10 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ description: |
- Step 1、2 依赖系统 **ArcGIS 10.x**arcpyPython 2.7 环境)
- Step 3 使用系统本机 **Python 3** 运行时(需安装 openpyxl
- 建议安装顺序:ArcGIS → Python 3 → `pip install openpyxl`
version: 1.0.4
version: 1.0.5
author: Robert
platform: windows
slug: test-yunnan-overlay-windows