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:
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Step 1: GeoJSON → SHP (arcpy)
|
Step 1: GeoJSON → SHP (arcpy)
|
||||||
从内置 data/ 目录读取 GeoJSON,转为 Shapefile
|
从内置 data/ 目录读取 GeoJSON,转为 Shapefile
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Step 2: 叠加分析 (arcpy)
|
Step 2: 叠加分析 (arcpy)
|
||||||
判断各城市是否在省界内,输出分析结果 JSON
|
判断各城市是否在省界内,输出分析结果 JSON
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ description: |
|
|||||||
- Step 1、2 依赖系统 **ArcGIS 10.x**(arcpy,Python 2.7 环境)
|
- Step 1、2 依赖系统 **ArcGIS 10.x**(arcpy,Python 2.7 环境)
|
||||||
- Step 3 使用系统本机 **Python 3** 运行时(需安装 openpyxl)
|
- Step 3 使用系统本机 **Python 3** 运行时(需安装 openpyxl)
|
||||||
- 建议安装顺序:ArcGIS → Python 3 → `pip install openpyxl`
|
- 建议安装顺序:ArcGIS → Python 3 → `pip install openpyxl`
|
||||||
version: 1.0.3
|
version: 1.0.4
|
||||||
author: Robert
|
author: Robert
|
||||||
platform: windows
|
platform: windows
|
||||||
slug: test-yunnan-overlay-windows
|
slug: test-yunnan-overlay-windows
|
||||||
|
|||||||
Reference in New Issue
Block a user