This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
postgis [2016/10/06 14:55] mantis |
postgis [2020/02/12 12:03] mantis [Select all geometries in an area] |
||
---|---|---|---|
Line 99: | Line 99: | ||
===== Update gis table registry ===== | ===== Update gis table registry ===== | ||
- | In table spatial_ref_sys all tables containing PostGIS types are listed. | + | In table spatial_ref_sys, all tables containing PostGIS types are listed. |
To refresh this cache: | To refresh this cache: | ||
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> |