postgis-knowledge-patch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePostGIS 3.5+ Knowledge Patch
PostGIS 3.5+ 知识补丁
Claude's baseline knowledge covers PostGIS through 3.4. This skill provides features from 3.5 (Sep 2024) onwards.
Source: PostGIS news at https://postgis.net/news/
Claude的基础知识涵盖PostGIS 3.4及以前版本。本技能提供3.5版本(2024年9月)及之后的功能内容。
来源:PostGIS新闻网站 https://postgis.net/news/
Additional Resources
额外资源
Reference Files
参考文件
For detailed descriptions, code examples, and full context on each change, consult:
- — Detailed changelog organized by topic (breaking changes, new vector/raster/topology/SFCGAL functions)
references/postgis-3.5-3.6-details.md
如需了解每项变更的详细说明、代码示例和完整上下文,请查阅:
- — 按主题分类的详细更新日志(包含破坏性变更、新的矢量/栅格/拓扑/SFCGAL函数)
references/postgis-3.5-3.6-details.md
3.5.0 (2024-09-25)
3.5.0(2024-09-25)
Requires: PostgreSQL 12-17, GEOS 3.8+, Proj 6.1+. SFCGAL 1.5 for all SFCGAL features.
系统要求:PostgreSQL 12-17、GEOS 3.8及以上、Proj 6.1及以上。使用所有SFCGAL功能需要SFCGAL 1.5。
Breaking Changes
破坏性变更
| Change | Impact |
|---|---|
SFCGAL | All SFCGAL functions renamed. Old |
| Now |
| Can promote column as Feature |
| Seeded random points produce different results. Regenerate if needed. |
| New |
| 变更内容 | 影响 |
|---|---|
SFCGAL | 所有SFCGAL函数重命名,旧的 |
| 现在等价于 |
| 可将列提升为Feature的 |
| 带种子的随机点生成结果不同,如有需要请重新生成。 |
| 新增 |
New Functions
新函数
| Function | Purpose |
|---|---|
| Boolean Z/M dimension checks |
| CompoundCurve accessors |
| Viewport-based simplification |
| Remove small polygon parts (slivers) |
| Load geometry into topology |
| Visibility polygon (SFCGAL) |
| Polygon partitioning algorithms (SFCGAL) |
| Extrude along straight skeleton (SFCGAL) |
| 函数 | 用途 |
|---|---|
| 检查几何对象是否包含Z/M维度的布尔函数 |
| 复合曲线访问器函数 |
| 基于视口的几何简化函数 |
| 移除多边形中的小部件(狭长碎片) |
| 将几何对象加载到拓扑中 |
| 可见性多边形(SFCGAL) |
| 多边形分区算法(SFCGAL) |
| 沿直骨架拉伸几何对象(SFCGAL) |
ST_Clip touched
(Raster)
touchedST_Clip 新增touched
参数(栅格)
touchedsql
-- Include pixels touched by geometry, not just centers-inside
SELECT ST_Clip(rast, geom, touched => true) FROM raster_table;sql
-- 包含与几何对象接触的像素,而不仅仅是中心在几何内的像素
SELECT ST_Clip(rast, geom, touched => true) FROM raster_table;3.5.1 (2024-12-22)
3.5.1(2024-12-22)
Breaking: now clips envelopes to tile plane extent. Edge tiles return smaller geometries than before.
ST_TileEnvelope破坏性变更:现在会将包络线裁剪到瓦片平面范围。边缘瓦片返回的几何对象比之前更小。
ST_TileEnvelope3.6.0 (2025-09-01)
3.6.0(2025-09-01)
Requires: PostgreSQL 12-18, GEOS 3.8+, Proj 6.1+. GEOS 3.14+ for full features. SFCGAL 2.2+ for all SFCGAL features.
系统要求:PostgreSQL 12-18、GEOS 3.8及以上、Proj 6.1及以上。使用全部功能需要GEOS 3.14及以上。使用所有SFCGAL功能需要SFCGAL 2.2及以上。
Breaking Changes
破坏性变更
| Change | Impact |
|---|---|
| TIN/PolyhedralSurface accessors | |
| Topology bigint | Topology IDs now |
| Removed (ambiguous). Use variant with additional params. |
| 变更内容 | 影响 |
|---|---|
| TIN/多面体表面访问器变更 | |
| 拓扑ID改为bigint类型 | 拓扑ID现在为 |
| 该函数存在歧义,需使用带额外参数的变体。 |
New Functions
新函数
| Function | Purpose |
|---|---|
| Clean polygonal coverage — edge match + gap removal (GEOS 3.14) |
| Aggregate: create raster from geometries |
| Remap exact values in raster |
| Raster pixel/geometry intersection fractions (GEOS 3.14) |
| Topology precision validation and repair |
| 函数 | 用途 |
|---|---|
| 清理多边形覆盖层——边缘匹配+间隙移除(需GEOS 3.14) |
| 聚合函数:从几何对象创建栅格 |
| 精确重映射栅格中的值 |
| 栅格像素与几何对象的相交比例(需GEOS 3.14) |
| 拓扑精度验证与修复 |
New SFCGAL Functions (SFCGAL 2.2)
新SFCGAL函数(需SFCGAL 2.2)
| Function | Purpose |
|---|---|
| 3D geometry simplification |
| Tight 3D surface around point set |
| 3D affine transformations |
| 3D buffering |
| Partition polygon via straight skeleton |
SFCGAL now supports M coordinates (SFCGAL >= 1.5.0).
| 函数 | 用途 |
|---|---|
| 3D几何简化 |
| 为点集生成紧凑的3D表面 |
| 3D仿射变换 |
| 3D缓冲 |
| 通过直骨架对多边形进行分区 |
SFCGAL现在支持M坐标(需SFCGAL >= 1.5.0)。