"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
geoinf16:sqlcartodb [2016/11/26 13:33] oertz [Partie 1] |
geoinf16:sqlcartodb [2018/05/16 10:05] (current) |
||
---|---|---|---|
Line 43: | Line 43: | ||
ST_GeometryFromText('POINT(141.0357 37.4217)',4326)::geography | ST_GeometryFromText('POINT(141.0357 37.4217)',4326)::geography | ||
) / 1000 as d FROM earthquakes WHERE mag > 6 ORDER BY d LIMIT 1 | ) / 1000 as d FROM earthquakes WHERE mag > 6 ORDER BY d LIMIT 1 | ||
+ | </code> | ||
+ | * Il serait souhaitable d'opter pour une autre approche que ce gourmand ORDER BY. Comment ? | ||
+ | <code> | ||
+ | ... | ||
</code> | </code> | ||
Line 64: | Line 68: | ||
</code> | </code> | ||
* Comme on sait comment cette zone est configurée, on peut aussi utiliser simplement ST_Distance, voire ST_DWithin http://postgis.net/docs/manual-2.3/ST_DWithin.html | * Comme on sait comment cette zone est configurée, on peut aussi utiliser simplement ST_Distance, voire ST_DWithin http://postgis.net/docs/manual-2.3/ST_DWithin.html | ||
+ | <code> | ||
+ | ... | ||
+ | </code> | ||
+ | |||