PostGIS
文章平均质量分 62
南山老沙
GIS架构师,爱生活,爱技术
展开
-
找不到“$libdir/postgis-X.X“问题解决方案
升级了postgresql次要版本,报找不到postgis,针对此问题,通过执行alter extension postgis update 命令解决原创 2023-07-03 11:28:34 · 577 阅读 · 0 评论 -
postgis 求离点最近的线
With inputPoint AS(Select st_geomfromtext('POINT(114.19061431884767 22.543833325111848)', 4326) as pnt )select buffer.* from (select r.* from road as r,inputPoint as p where st_intersects(r.g...原创 2019-11-06 11:16:10 · 3594 阅读 · 2 评论 -
获取线的中间点(postgis)
前言:QGIS没找到对应功能,只有 Mean Coordinate(s) ,但不能满足要求,最后找到了 PostGIS 的相关方法。ST_LineInterpolatePoint函数详情select ST_ASText(ST_LineInterpolatePoint (ST_LineMerge(geom), 0.5)) from line这样就能获取中间点了。ST_LineMerge是...原创 2019-01-21 17:33:36 · 5303 阅读 · 0 评论 -
Failed to import some layers! QGIS数据导入POSTGIS失败
报错:function addgeometrycolumn(unknown, unknown, unknown, integer, unknown, integer) does not exist原因:postgresql 数据库没有安装 postgis 插件如果数据库下已有postgis插件,则执行该sql语句即可create extension postgis...原创 2019-09-23 17:39:30 · 1575 阅读 · 0 评论