[postgis-users] spheroid bounding box calculation
Jeff Davis
pgsql at j-davis.com
Wed Jul 22 23:19:46 PDT 2009
I would like to query my latitude/longitude points for distance in a
way that uses the index. The points are in lat/lon, so st_dwithin(g1,
g2, [meters]) makes no sense.
What is the recommended way to do this? I think what I need is a
function that takes a point in lat/lon, and a distance in meters, and
returns a bounding box in lat/lon.
Basically, I think it would be a variant of ST_Expand, but it could take
an argument in meters rather than degrees. It may need a 'SPHEROID[]'
argument, too, perhaps.
Thanks.
Regards,
Jeff Davis
More information about the postgis-users
mailing list