@dsh-gis/dsh-opengis-skill 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -1
- package/README.md +51 -25
- package/adaptations/brutile.md +6 -6
- package/adaptations/cesiumjs.md +6 -6
- package/adaptations/common.md +20 -13
- package/adaptations/deck-gl.md +6 -6
- package/adaptations/duckdb-spatial.md +6 -6
- package/adaptations/gdal-api.md +6 -6
- package/adaptations/gdal.md +6 -6
- package/adaptations/geolibre.md +6 -6
- package/adaptations/geometry-api-java.md +6 -6
- package/adaptations/geometry-api-net.md +6 -6
- package/adaptations/geonode.md +6 -6
- package/adaptations/geopandas.md +6 -6
- package/adaptations/geopipe-agent.md +6 -6
- package/adaptations/geos.md +8 -0
- package/adaptations/geoserver-cloud.md +6 -6
- package/adaptations/geoserver-rest-api.md +6 -6
- package/adaptations/geoserver.md +6 -6
- package/adaptations/geotools.md +6 -6
- package/adaptations/grass-gis.md +6 -6
- package/adaptations/jts.md +6 -6
- package/adaptations/kepler-gl.md +6 -6
- package/adaptations/leaflet.md +6 -6
- package/adaptations/mapbox-gl-js.md +6 -6
- package/adaptations/maplibre-gl-js.md +8 -0
- package/adaptations/maplibre-native.md +8 -0
- package/adaptations/mapserver.md +6 -6
- package/adaptations/mapsui.md +6 -6
- package/adaptations/nettopologysuite.md +6 -6
- package/adaptations/opendronemap.md +8 -0
- package/adaptations/opengis-all.md +7 -6
- package/adaptations/opengis-daf.md +7 -6
- package/adaptations/opengis-utils-for-java.md +6 -6
- package/adaptations/opengis-utils-for-net.md +6 -6
- package/adaptations/openlayers.md +6 -6
- package/adaptations/pdal.md +6 -6
- package/adaptations/postgis.md +6 -6
- package/adaptations/proj.md +6 -6
- package/adaptations/projnet4geoapi.md +6 -6
- package/adaptations/pyqgis.md +6 -6
- package/adaptations/qgis-process.md +6 -6
- package/adaptations/qgis-server.md +6 -6
- package/adaptations/shapely.md +6 -6
- package/adaptations/sharpmap.md +6 -6
- package/adaptations/spatialite.md +6 -6
- package/adaptations/stac-cog-titiler.md +8 -0
- package/adaptations/whitebox-tools.md +6 -6
- package/assets/brutile/SKILL.md +6 -12
- package/assets/cesiumjs/SKILL.md +14 -18
- package/assets/deck-gl/SKILL.md +9 -15
- package/assets/duckdb-spatial/SKILL.md +41 -25
- package/assets/gdal/SKILL.md +11 -18
- package/assets/gdal/reference/raster-tools.md +14 -0
- package/assets/gdal/reference/vector-tools.md +5 -0
- package/assets/gdal-api/SKILL.md +8 -16
- package/assets/gdal-api/reference/raster-api.md +7 -0
- package/assets/gdal-api/reference/vector-api.md +9 -0
- package/assets/geolibre/SKILL.md +11 -17
- package/assets/geometry-api-java/SKILL.md +5 -10
- package/assets/geometry-api-net/SKILL.md +5 -11
- package/assets/geometry-api-net/reference/geometry-types.md +5 -0
- package/assets/geonode/SKILL.md +8 -15
- package/assets/geopandas/SKILL.md +46 -17
- package/assets/geopandas/reference/core-api.md +55 -0
- package/assets/geopipe-agent/SKILL.md +7 -14
- package/assets/geopipe-agent/reference/steps-reference.md +12 -0
- package/assets/geopipe-agent/reference/workflows.md +8 -0
- package/assets/geos/SKILL.md +372 -0
- package/assets/geoserver/SKILL.md +6 -13
- package/assets/geoserver-cloud/SKILL.md +12 -21
- package/assets/geoserver-rest-api/SKILL.md +5 -12
- package/assets/geoserver-rest-api/reference/endpoints.md +16 -0
- package/assets/geotools/SKILL.md +5 -12
- package/assets/geotools/reference/raster-rendering.md +5 -0
- package/assets/geotools/reference/vector-io.md +7 -0
- package/assets/grass-gis/SKILL.md +36 -18
- package/assets/jts/SKILL.md +5 -12
- package/assets/jts/reference/geometry-operations.md +13 -0
- package/assets/kepler-gl/SKILL.md +10 -16
- package/assets/leaflet/SKILL.md +19 -23
- package/assets/mapbox-gl-js/SKILL.md +11 -16
- package/assets/maplibre-gl-js/SKILL.md +478 -0
- package/assets/maplibre-native/SKILL.md +383 -0
- package/assets/mapserver/SKILL.md +12 -16
- package/assets/mapsui/SKILL.md +29 -18
- package/assets/nettopologysuite/SKILL.md +5 -11
- package/assets/opendronemap/SKILL.md +309 -0
- package/assets/opengis-all/SKILL.md +14 -19
- package/assets/opengis-all/reference/data-stages.md +7 -0
- package/assets/opengis-all/reference/workflow-cheatsheets.md +7 -0
- package/assets/opengis-daf/SKILL.md +5 -13
- package/assets/opengis-utils-for-java/SKILL.md +7 -11
- package/assets/opengis-utils-for-java/reference/common-tasks.md +4 -0
- package/assets/opengis-utils-for-net/SKILL.md +5 -10
- package/assets/opengis-utils-for-net/reference/code-patterns.md +4 -0
- package/assets/opengis-utils-for-net/reference/util-classes.md +10 -0
- package/assets/openlayers/SKILL.md +16 -20
- package/assets/pdal/SKILL.md +15 -13
- package/assets/postgis/SKILL.md +21 -26
- package/assets/proj/SKILL.md +5 -12
- package/assets/projnet4geoapi/SKILL.md +6 -12
- package/assets/pyqgis/SKILL.md +5 -10
- package/assets/pyqgis/reference/processing-rendering.md +6 -0
- package/assets/pyqgis/reference/vector-raster-layers.md +6 -0
- package/assets/qgis-process/SKILL.md +5 -12
- package/assets/qgis-process/reference/algorithm-cheatsheet.md +6 -0
- package/assets/qgis-server/SKILL.md +7 -13
- package/assets/shapely/SKILL.md +29 -14
- package/assets/shapely/reference/operations-reference.md +42 -0
- package/assets/sharpmap/SKILL.md +5 -11
- package/assets/spatialite/SKILL.md +15 -16
- package/assets/stac-cog-titiler/SKILL.md +420 -0
- package/assets/whitebox-tools/SKILL.md +28 -19
- package/lib/adaptations.d.ts +18 -0
- package/lib/adaptations.js +164 -7
- package/lib/catalog.d.ts +7 -1
- package/lib/catalog.js +9 -1
- package/lib/index.d.ts +9 -0
- package/lib/index.js +48 -3
- package/lib/skill-file.d.ts +12 -0
- package/lib/skill-file.js +107 -16
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +8 -3
- package/upstream.json +74 -64
package/assets/geonode/SKILL.md
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: geonode
|
|
3
3
|
description: "Use when deploying or automating GeoNode 5.1.1 — docker compose with create-envfile.py, geonode/geonode:5.1.1 image, django4geonode logs, /api/v2/resources and /api/v2/uploads/upload (action=upload|replace|upsert|create), OGC WMS/WFS links from resource.links[], geonode-project customization; also for 502 after compose up, 'GeoNode has no attribute' after upgrade, and upload 401/403 with Basic vs Bearer auth."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
- python
|
|
9
|
-
- docker
|
|
10
|
-
- postgis
|
|
11
|
-
- geoserver
|
|
12
|
-
- rest-api
|
|
13
|
-
- metadata
|
|
14
|
-
- webgis
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "geonode, gis, django, python, docker, postgis, geoserver, rest-api, metadata, webgis"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://github.com/GeoNode/geonode>
|
|
@@ -20,7 +13,7 @@ tags:
|
|
|
20
13
|
>
|
|
21
14
|
> **演示站:** <https://development.demo.geonode.org>
|
|
22
15
|
>
|
|
23
|
-
> **最新版本:** 5.1.1(GitHub Release 与 PyPI 均为 5.1.1,截至 2026-
|
|
16
|
+
> **最新版本:** 5.1.1(GitHub Release 与 PyPI 均为 5.1.1,截至 2026-11);官方镜像 `geonode/geonode:5.1.1`
|
|
24
17
|
>
|
|
25
18
|
> **运行环境:** Python >= 3.10(PyPI 元数据),依赖 Django 5.2.18、psycopg2 2.9.13、Celery 5.6.3
|
|
26
19
|
>
|
|
@@ -136,8 +129,8 @@ python manage.py runserver 0.0.0.0:8000
|
|
|
136
129
|
### 验证
|
|
137
130
|
|
|
138
131
|
```bash
|
|
139
|
-
#
|
|
140
|
-
|
|
132
|
+
# 版本:容器内读 Django 应用版本(Docker 部署最可靠)
|
|
133
|
+
docker compose exec django python -c "import geonode; print(geonode.get_version())"
|
|
141
134
|
|
|
142
135
|
# API 是否可用(公开资源无需认证)
|
|
143
136
|
curl -s "http://localhost/api/v2/resources?page_size=1" | head -c 300
|
|
@@ -325,7 +318,7 @@ print(requests.get(wms, params={
|
|
|
325
318
|
|
|
326
319
|
## AI 使用建议
|
|
327
320
|
|
|
328
|
-
-
|
|
321
|
+
- **先确认版本与入口**:Docker 部署用 `docker compose exec django python -c "import geonode; print(geonode.get_version())"` 确认 5.1.1;优先用 `docker compose exec` 而不是宿主机的 `manage.py`,避免环境错位。
|
|
329
322
|
- **API 用 `/api/v2/`**:旧 Tastypie 的 `/api/*` 仍在,但新代码一律用 `/api/v2/resources` 与 `/api/v2/uploads/upload`;两者返回结构不同,不要混用。
|
|
330
323
|
- **认证信息不要进日志**:用环境变量传 `Authorization`,示例里出现的 `<base64>` 必须替换,不要把真实凭据写进脚本或报告。
|
|
331
324
|
- **验证产物**:上传后回读资源详情,核对 `subtype`、`alternate`、`links[]` 与 `download_url`,再对 WMS 发一次 `GetMap`;只看 201 响应不构成"发布成功"。
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: geopandas
|
|
3
|
-
description: "Use when doing vector spatial analysis in Python — gpd.read_file/to_file via pyogrio (GPKG, Shapefile, GeoParquet), sjoin/sjoin_nearest, overlay, clip, dissolve, to_crs vs set_crs, gdf.plot choropleth; also for CRSError from a missing PROJ data dir, area/distance computed in degrees, or GeoDataFrame geometry-column conflicts. GeoPandas 1.2.0 extends pandas DataFrames with geometry columns."
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
- geometry
|
|
9
|
-
- geodataframe
|
|
10
|
-
- spatial-analysis
|
|
11
|
-
- io
|
|
12
|
-
- visualization
|
|
3
|
+
description: "Use when doing vector spatial analysis in Python — gpd.read_file/to_file via pyogrio (GPKG, Shapefile, GeoParquet 2.0), sjoin/sjoin_nearest, overlay, clip, dissolve, make_grid, to_crs vs set_crs, gdf.plot choropleth; also for CRSError from a missing PROJ data dir, area/distance computed in degrees, or GeoDataFrame geometry-column conflicts. GeoPandas 1.2.0 extends pandas DataFrames with geometry columns."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "python, pandas, vector, geometry, geodataframe, spatial-analysis, io, visualization"
|
|
13
8
|
---
|
|
14
9
|
|
|
15
10
|
> **项目地址:** <https://github.com/geopandas/geopandas>
|
|
@@ -18,7 +13,7 @@ tags:
|
|
|
18
13
|
>
|
|
19
14
|
> **官网:** <https://geopandas.org>
|
|
20
15
|
>
|
|
21
|
-
> **最新版本:** 1.2.0(截至 2026-
|
|
16
|
+
> **最新版本:** 1.2.0(截至 2026-11,[PyPI](https://pypi.org/project/geopandas/) / [Release notes](https://geopandas.org/en/stable/docs/changelog.html))
|
|
22
17
|
>
|
|
23
18
|
> **许可证:** BSD-3-Clause
|
|
24
19
|
|
|
@@ -39,7 +34,8 @@ pip install geopandas
|
|
|
39
34
|
# 可选依赖(绘图/交互地图/分类/Parquet 等)
|
|
40
35
|
pip install "geopandas[all]"
|
|
41
36
|
|
|
42
|
-
#
|
|
37
|
+
# 验证(版本 + 默认 IO 引擎)
|
|
38
|
+
python -c "import geopandas as gpd; print(gpd.__version__, gpd.options.io_engine)"
|
|
43
39
|
python -c "import geopandas as gpd; gpd.show_versions()"
|
|
44
40
|
```
|
|
45
41
|
|
|
@@ -49,11 +45,14 @@ python -c "import geopandas as gpd; gpd.show_versions()"
|
|
|
49
45
|
|
|
50
46
|
| 核心依赖 | 最低版本 | 用途 |
|
|
51
47
|
|----------|---------|------|
|
|
52
|
-
| `pandas` | >= 2.2.0 | DataFrame
|
|
48
|
+
| `pandas` | >= 2.2.0 | DataFrame 基类(1.2) |
|
|
53
49
|
| `shapely` | >= 2.1.0 | 几何对象与运算 (GEOS) |
|
|
54
50
|
| `pyproj` | >= 3.7.0 | CRS 处理与坐标变换 |
|
|
55
|
-
| `pyogrio` | >= 0.8 | 默认文件 IO 引擎 (GDAL/OGR) |
|
|
51
|
+
| `pyogrio` | >= 0.8 | 默认文件 IO 引擎 (GDAL/OGR);`read_file_info` 与 `fid_as_index` 也由它提供 |
|
|
56
52
|
| `numpy` | >= 2 | 数组运算 |
|
|
53
|
+
| `packaging` | — | 版本解析 |
|
|
54
|
+
|
|
55
|
+
以上为 1.2.0 `pyproject.toml` 的实测下限。
|
|
57
56
|
|
|
58
57
|
| 可选依赖 | 用途 |
|
|
59
58
|
|----------|------|
|
|
@@ -65,6 +64,7 @@ python -c "import geopandas as gpd; gpd.show_versions()"
|
|
|
65
64
|
| `geopy` | 地理编码 |
|
|
66
65
|
| `SQLAlchemy` >= 2.0 + `GeoAlchemy2` | PostGIS 读写 |
|
|
67
66
|
| `xyzservices` | 瓦片底图服务 |
|
|
67
|
+
| `contextily` | `plot(tiles=...)` 叠加在线底图(1.2 新增用法) |
|
|
68
68
|
|
|
69
69
|
## 全局配置
|
|
70
70
|
|
|
@@ -85,9 +85,14 @@ gpd.options.io_engine # None|"pyogrio"|"fiona"
|
|
|
85
85
|
```python
|
|
86
86
|
gpd.read_file(filename, bbox=None, mask=None, columns=None, rows=None, engine=None, **kwargs)
|
|
87
87
|
gdf.to_file(filename, driver=None, schema=None, index=None, **kwargs)
|
|
88
|
-
gpd.list_layers(filename)
|
|
88
|
+
gpd.list_layers(filename) # → DataFrame (layer_name, geometry_type)
|
|
89
|
+
gpd.read_file_info(filename, layer=None) # → dict(1.2 新增,pyogrio.read_info 的别名)
|
|
89
90
|
```
|
|
90
91
|
|
|
92
|
+
- `engine="pyogrio"`(默认,装了就用)或 `"fiona"`;可用 `gpd.options.io_engine` 全局指定
|
|
93
|
+
- `read_file(..., fid_as_index=True)`(pyogrio)把文件内的 feature id 用作索引 —— GeoPackage 的 fid 默认不在列里
|
|
94
|
+
- `read_file(..., use_arrow=True)`(pyogrio + pyarrow)走 Arrow 通道,官方称读速可提升 2–4 倍
|
|
95
|
+
|
|
91
96
|
**支持的文件格式(扩展名 → 驱动):**
|
|
92
97
|
|
|
93
98
|
| 扩展名 | 驱动 |
|
|
@@ -115,7 +120,9 @@ gdf.to_parquet(path, compression="snappy", geometry_encoding="WKB",
|
|
|
115
120
|
gdf.to_feather(path, compression=None, schema_version=None, **kwargs)
|
|
116
121
|
```
|
|
117
122
|
|
|
118
|
-
GeoParquet 规范版本:`"1.0.0"
|
|
123
|
+
GeoParquet 规范版本:`schema_version` 可取 `"0.1.0"`、`"0.4.0"`、`"1.0.0"`、`"1.1.0"`、`"2.0.0"`,不传时默认写最新的稳定版 1.1.0。几何编码:`"WKB"`(默认)、`"geoarrow"`(GeoParquet 1.1 起,实验性)。
|
|
124
|
+
|
|
125
|
+
1.2 的变化:`read_parquet` / `to_parquet` 支持(当时定义中的)GeoParquet 2.0 规范;`read_parquet` 可直接读 HTTP/HTTPS 上的文件(`storage_options` 透传给 urllib);`to_parquet` 写入的 `attrs` 会在 `read_parquet` 时读回;`write_covering_bbox=True` 写出的 `bbox` 列可让后续 `read_parquet(bbox=...)` 做过滤读取。
|
|
119
126
|
|
|
120
127
|
### Arrow (GeoArrow)
|
|
121
128
|
|
|
@@ -180,7 +187,7 @@ gpd.overlay(df1, df2, how="intersection", keep_geom_type=None, make_valid=True)
|
|
|
180
187
|
gpd.clip(gdf, mask, keep_geom_type=False, sort=False)
|
|
181
188
|
```
|
|
182
189
|
|
|
183
|
-
- `mask`: GeoDataFrame、GeoSeries、(Multi)Polygon 或 `(minx, miny, maxx, maxy)`
|
|
190
|
+
- `mask`: GeoDataFrame、GeoSeries、(Multi)Polygon 或 `(minx, miny, maxx, maxy)` 元组;传入四元素列表时走更快的矩形裁剪(`clip_by_rect()`),结果不保证拓扑有效,边角情形可能与多边形裁剪略有差异
|
|
184
191
|
|
|
185
192
|
### 地理编码
|
|
186
193
|
|
|
@@ -191,6 +198,25 @@ gpd.tools.reverse_geocode(points, provider=None, **kwargs) # → GeoDataFrame
|
|
|
191
198
|
|
|
192
199
|
需要 `geopy`。默认 provider: `"photon"`。返回含 `geometry` 和 `address` 列的 GeoDataFrame。
|
|
193
200
|
|
|
201
|
+
### 网格与聚合
|
|
202
|
+
|
|
203
|
+
```python
|
|
204
|
+
# 1.2 新增:按输入范围生成正方形或蜂窝网格(返回 GeoSeries)
|
|
205
|
+
gpd.make_grid(input_geometry, cell_size=1000, grid_type="square",
|
|
206
|
+
feature_type="polygons", offset=None, intersect=True, flat_topped=False)
|
|
207
|
+
gs.make_grid(...) # GeoSeries 上的同名方法
|
|
208
|
+
|
|
209
|
+
# 1.2 起 GeoSeries 的二元集合运算新增 grid_size(精度栅格,顶点吸附到该格网)
|
|
210
|
+
gs_left.union(gs_right, grid_size=1e-6)
|
|
211
|
+
gs_left.intersection(gs_right, grid_size=1e-6)
|
|
212
|
+
gs_left.difference(gs_right, grid_size=1e-6)
|
|
213
|
+
gs_left.symmetric_difference(gs_right, grid_size=1e-6)
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
- `grid_type`:`"square"` 或 `"hexagon"`
|
|
217
|
+
- `feature_type`:`"polygons"`(面)、`"centers"`(点)、`"corners"`(顶点)
|
|
218
|
+
- `intersect=True` 只保留与输入几何相交的网格单元;要整块外接矩形填满网格传 `False`
|
|
219
|
+
|
|
194
220
|
### 其他工具
|
|
195
221
|
|
|
196
222
|
```python
|
|
@@ -367,6 +393,9 @@ m = gdf.explore(column="population", cmap="viridis",
|
|
|
367
393
|
| `buffer(resolution=...)` 出现弃用警告 | 1.2 起 `resolution` 被弃用,向 shapely 命名惯例对齐 | 改用 `quad_segs` 参数 |
|
|
368
394
|
| `DriverError` 无法写入 | 驱动不支持或文件被占用 | 检查驱动名拼写、关闭已打开的文件 |
|
|
369
395
|
| `align=True` 导致意外 NaN | 二元操作默认按索引对齐 | 传入 `align=False` 或重置索引 |
|
|
396
|
+
| `AttributeError: module 'geopandas' has no attribute 'make_grid'` / `read_file_info` | 装的是 1.2 之前的版本(`make_grid`、`read_file_info` 均为 1.2 新增) | `python -c "import geopandas; print(geopandas.__version__)"` 确认,升级到 1.2.0+ |
|
|
397
|
+
| `CRSError: Invalid projection` / PROJ 数据目录缺失 | pyproj 自带 PROJ data 未生效,或混用了 conda/pip 两套环境 | `pyproj.datadir.get_data_dir()` 查目录;重装 pyproj/pyogrio 或统一用 conda-forge 环境 |
|
|
398
|
+
| `to_parquet` 写了 `schema_version="2.0.0"` 但下游读不了 | GeoParquet 2.0 仍新,部分读者只认 1.0/1.1 | 不传 `schema_version` 用默认 1.1.0,或显式写 `"1.0.0"` 兼容老读者 |
|
|
370
399
|
|
|
371
400
|
## AI 使用建议
|
|
372
401
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# GeoPandas Core API Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- 核心类 API
|
|
6
|
+
- 1.2 新增接口(make_grid、read_file_info、grid_size)
|
|
7
|
+
|
|
3
8
|
GeoSeries and GeoDataFrame core API details split from SKILL.md.
|
|
4
9
|
|
|
5
10
|
---
|
|
@@ -219,3 +224,53 @@ sindex.is_empty # 是否为空
|
|
|
219
224
|
|
|
220
225
|
---
|
|
221
226
|
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## 1.2 新增接口(make_grid、read_file_info、grid_size)
|
|
230
|
+
|
|
231
|
+
以上内容以 GeoPandas 1.2.0 为基准。1.2 新增或变更的接口如下。
|
|
232
|
+
|
|
233
|
+
### gpd.read_file_info()
|
|
234
|
+
|
|
235
|
+
```python
|
|
236
|
+
gpd.read_file_info(filename, layer=None) # -> dict,1.2 新增
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
返回单个图层的元数据字典(pyogrio.read_info 的别名,需装 pyogrio)。与 `gpd.list_layers()` 的分工:`list_layers()` 列出所有图层(name/geometry_type),`read_file_info()` 给某一层的完整信息(CRS、字段、要素数等)。
|
|
240
|
+
|
|
241
|
+
### gpd.make_grid()
|
|
242
|
+
|
|
243
|
+
```python
|
|
244
|
+
gpd.make_grid(input_geometry, /, cell_size, grid_type="square",
|
|
245
|
+
feature_type="polygons", offset=None, intersect=True, flat_topped=False)
|
|
246
|
+
GeoSeries.make_grid(...) # 同名方法
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
| 参数 | 取值 | 说明 |
|
|
250
|
+
|------|------|------|
|
|
251
|
+
| `cell_size` | float | 正方形边长;六边形时为对边距离(边长 = cell_size / sqrt(3)) |
|
|
252
|
+
| `grid_type` | `"square"` / `"hexagon"` | 平面网格,不是 H3/S2 那种球面网格 |
|
|
253
|
+
| `feature_type` | `"polygons"` / `"centers"` / `"corners"` | 返回面、中心点或顶点 |
|
|
254
|
+
| `offset` | (x, y) | 网格左下角,默认取输入范围左下角 |
|
|
255
|
+
| `intersect` | bool | True 只保留与输入几何相交的单元;False 返回覆盖外接矩形的完整网格 |
|
|
256
|
+
| `flat_topped` | bool | 六边形是否平顶(默认尖顶朝上) |
|
|
257
|
+
|
|
258
|
+
返回 GeoSeries(1.2 新增)。
|
|
259
|
+
|
|
260
|
+
### 集合运算的 grid_size
|
|
261
|
+
|
|
262
|
+
1.2 起以下 GeoSeries 方法新增 `grid_size` 参数,用于固定精度栅格(顶点吸附到指定格网,可改善拓扑鲁棒性):
|
|
263
|
+
|
|
264
|
+
```text
|
|
265
|
+
union(other, align=None, grid_size=None)
|
|
266
|
+
intersection(other, align=None, grid_size=None)
|
|
267
|
+
difference(other, align=None, grid_size=None)
|
|
268
|
+
symmetric_difference(other, align=None, grid_size=None)
|
|
269
|
+
union_all(method="unary", grid_size=None)
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
`gpd.overlay()` 没有 `grid_size` 参数,需要固定精度时先对各 GeoSeries 做 `set_precision()` 或用上述方法。
|
|
273
|
+
|
|
274
|
+
### GeoParquet 规范版本
|
|
275
|
+
|
|
276
|
+
`to_parquet(schema_version=...)` 支持 `"0.1.0"`、`"0.4.0"`、`"1.0.0"`、`"1.1.0"`、`"2.0.0"`;不传时默认写 1.1.0。1.2 起 GeoParquet 2.0 可读写。
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: geopipe-agent
|
|
3
|
-
description: "Use when building YAML GIS pipelines with GeoPipeAgent — geopipe-agent validate/run, io.read_vector
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
- yaml
|
|
9
|
-
- qc
|
|
10
|
-
- spatial-analysis
|
|
11
|
-
- vector
|
|
12
|
-
- raster
|
|
13
|
-
- geoprocessing
|
|
14
|
-
- python
|
|
3
|
+
description: "Use when building YAML GIS pipelines with GeoPipeAgent — geopipe-agent validate/run, io.read_vector to vector.buffer to io.write_vector chains, 36 built-in steps (33 analysis + 3 passthrough), qc.geometry_validity/attribute_completeness/topology, native_python|qgis_process|gdal_cli backends, $step.output refs; also for validate not-registered errors, silent when-condition skips, and resolve/knowledge gaps. 0.1.0, source install only (not on PyPI)."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
category: gis
|
|
7
|
+
tags: "gis, agent, pipeline, yaml, qc, spatial-analysis, vector, raster, geoprocessing, python"
|
|
15
8
|
---
|
|
16
9
|
|
|
17
10
|
> **项目地址:** <https://github.com/znlgis/GeoPipeAgent>
|
|
18
11
|
>
|
|
19
12
|
> **文档:** <https://github.com/znlgis/GeoPipeAgent#readme>(README + `cookbook/` 示例 + `docs/`)
|
|
20
13
|
>
|
|
21
|
-
>
|
|
14
|
+
> **最新版本:** 0.1.0(截至 2026-11,实测仓库 `pyproject.toml`;`geopipe-agent` 未发布到 PyPI,只能源码安装)
|
|
22
15
|
>
|
|
23
16
|
> **许可证:** MIT
|
|
24
17
|
|
|
@@ -277,7 +270,7 @@ QC 步骤遵循 **「检查即透传」** 模式:输入数据原样通过为 `
|
|
|
277
270
|
|
|
278
271
|
## AI 使用建议
|
|
279
272
|
|
|
280
|
-
- **本技能的组织**:主文件给高频用法,完整参数表与高级示例在
|
|
273
|
+
- **本技能的组织**:主文件给高频用法,完整参数表与高级示例在 [reference/backends.md](reference/backends.md)、[reference/knowledge.md](reference/knowledge.md)、[reference/pipeline-schema.md](reference/pipeline-schema.md)、[reference/self-extension.md](reference/self-extension.md)、[reference/steps-reference.md](reference/steps-reference.md)、[reference/workflows.md](reference/workflows.md),需要时再展开;示例工程与生成的数据写到工作目录,不要改动技能目录本身。
|
|
281
274
|
- **执行环境**:命令在终端 / shell 中执行(Windows 用 PowerShell);`python` 可能指向 QGIS/GDAL 自带解释器,建议在工作区建独立 venv 后 `pip install -e .`,避免污染系统环境。
|
|
282
275
|
- **源码安装(未上 PyPI)**:`git clone https://github.com/znlgis/GeoPipeAgent.git && pip install -e ".[analysis,network]"`;验证 `geopipe-agent --help`、`geopipe-agent list-steps --category qc`、`pip show geopipe-agent | Select-String Version`。不要写 `pip install geopipe-agent`——PyPI 上还没有这个包。
|
|
283
276
|
- **先探测能力**:`geopipe-agent backends` 看当前环境可用后端(默认 `native_python`),`geopipe-agent list-steps --format json` 拿真实步骤 ID;`validate` 报 `not registered` 时先用 `geopipe-agent resolve "<需求>"` 与 `knowledge search`,不要猜参数。
|