Changes between Version 5 and Version 6 of UsersWikiplpgsqlfunctionsDistance
- Timestamp:
- 09/29/09 21:24:16 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiplpgsqlfunctionsDistance
v5 v6 3 3 * '''An ST_Dwithin like function that uses indexes for degree point data''' 4 4 [http://www.postgis.org/pipermail/postgis-users/2009-June/023711.html] 5 6 Caveat from newsgroup: Here's a simple 80/20 solution for people with lon/lat tables of 7 points wanting to do distance searches. It only works for places less 8 than 60degrees north or south, and only for points. If you know your 9 data is all more southerly than 60d, adjust the constant factor to 10 make the index portion of the search more selective (and hence, 11 efficient (faster)). 12 5 13 {{{ 6 14 #!sql