我有一个查询,在点图层周围50米的圆(缓冲区)中生成12个部分(饼状楔)。 With buffer as(
SELECT gid as pt_id, (ST_DumpPoints(ST_Buffer(geom,50,3))).geom as geom
FROM my_point_table group by gid, geom
UNION ALL
SELECT gid as pt_id, g
我是PostGIS和SQL的新手,需要学习很多东西。 我想这个SQL查询: Select ST_AsText(Select line from pathway1f)
我的错误。 Select line from pathway1f
该查询工作正常;数千行返回。 我想使用ST_AsText()解码查询结果。 看来我不能使用两个select语句。什么是正确的语法?
我不明白什么是错的。我不能添加新的字段到模型中,每次运行时makemigrations我得到这个错误: django.db.utils.ProgrammingError: column "..." does not exist
是列不存在。这就是为什么我想运行迁移。 'ENGINE': 'django.contrib.gis.db.backends.postgis',