This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
postgis [2020/02/12 11:58] mantis [Update gis table registry] |
postgis [2020/02/12 12:03] mantis [Select all geometries in an area] |
||
---|---|---|---|
Line 116: | Line 116: | ||
UPDATE mytable SET the_geom = ST_SetSRID(ST_MakePoint(longitude,latitude),4326); | UPDATE mytable SET the_geom = ST_SetSRID(ST_MakePoint(longitude,latitude),4326); | ||
</code> | </code> | ||
+ | ===== Export table to geojson ===== | ||
+ | |||
+ | Building a FeatureCollection ([[https://postgis.net/docs/ST_AsGeoJSON.html|docs]]) | ||
+ | |||
+ | |||
===== Select all geometries in an area ===== | ===== Select all geometries in an area ===== | ||
<code sql> | <code sql> |