Skip to content

Commit a75f164

Browse files
authoredDec 13, 2024
Update 20190803_03.md
1 parent ade4d6f commit a75f164

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
 

‎201908/20190803_03.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
## PostgreSQL PostGIS 3 - 从min(x) 到 z-order 到 Hilbert Geometry Sorting - PostGIS空间排序算法优化
2-
3-
### 作者
4-
digoal
5-
6-
### 日期
7-
2019-08-03
8-
9-
### 标签
10-
PostgreSQL , PostGIS , 空间排序 , 算法 , minx , Morton curve , Hilbert curve , 空间紧凑排序
11-
12-
----
13-
1+
## PostgreSQL PostGIS 3 - 从min(x) 到 z-order 到 Hilbert Geometry Sorting - PostGIS空间排序算法优化
2+
3+
### 作者
4+
digoal
5+
6+
### 日期
7+
2019-08-03
8+
9+
### 标签
10+
PostgreSQL , PostGIS , 空间排序 , 算法 , minx , Morton curve , Hilbert curve , 空间紧凑排序
11+
12+
----
13+
1414
## 背景
1515
PostGIS 是专业的空间插件,空间数据最常见的空间排序是怎么做的呢?
1616

@@ -56,7 +56,7 @@ FROM points;
5656

5757
![pic](20190803_03_pic_005.png)
5858

59-
3、使用Z-order_curve算法排序(使用PostGIS 2.5的版本排序即可),聚合成线段,如图,可以看到Z象限的顺序
59+
3、使用Z-order_curve算法排序(使用PostGIS 2.5的版本, 直接对geom字段排序即可),聚合成线段,如图,可以看到Z象限的顺序
6060

6161
```
6262
SELECT ST_MakeLine(geom ORDER BY geom) AS geom
@@ -65,7 +65,7 @@ FROM points;
6565

6666
![pic](20190803_03_pic_006.png)
6767

68-
4、使用Hilbert_curve(使用PostGIS 3排序),聚合成线段,如图,可以看到顺序和hilbert wiki描述一致
68+
4、使用Hilbert_curve(使用PostGIS 3+版本, 对geom字段排序),聚合成线段,如图,可以看到顺序和hilbert wiki描述一致
6969

7070
```
7171
SELECT ST_MakeLine(geom ORDER BY geom) AS geom

0 commit comments

Comments
 (0)
Please sign in to comment.