fix: arcpy scripts 添加 encoding 声明 (#2)

根据 Mercator 用户交流平台话题 #2 的要求:
- arcpy_convert.py: 添加 # -*- coding: utf-8 -*-
- arcpy_overlay.py: 添加 # -*- coding: utf-8 -*-
- workflow.yaml: version 1.0.3 → 1.0.4

原因:arcpy 运行在 Python 2.7 环境,默认 ASCII 编码,
含中文注释/字符串的脚本需要显式声明 UTF-8 编码。
This commit is contained in:
SuiteForge
2026-07-22 21:28:10 +08:00
parent b768d2d271
commit 52858c151b
3 changed files with 3 additions and 1 deletions
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Step 1: GeoJSON → SHP (arcpy)
从内置 data/ 目录读取 GeoJSON,转为 Shapefile
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Step 2: 叠加分析 (arcpy)
判断各城市是否在省界内,输出分析结果 JSON
+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.3
version: 1.0.4
author: Robert
platform: windows
slug: test-yunnan-overlay-windows