GBase 8c
其他
文章
GBase 8c支持PostGIS
发表于2023-12-07 10:27:0277次浏览2个评论
PostGIS是空间数据库扩展器,它增加了对地理对象的支持,允许在 SQL 中运行位置查询。
WITH city AS (
SELECT 'Gotham' AS name,
ST_Buffer(ST_Point(0,0), 10) AS geom)
, superhero(name,geom) AS (
VALUES
('Bat Boy', ST_Point(0.1,0))
, ('Bat Girl', ST_Point(1,1) ))SELECT superhero.nameFROM city INNER JOIN superhero
ON ST_Contains(city.geom, superhero.geom)WHERE city.name = 'Gotham';
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526