<br><br><div class="gmail_quote">On 11 May 2010 07:34, Malm Paul <span dir="ltr"><<a href="mailto:paul.malm@saabgroup.com">paul.malm@saabgroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">







<div>
<font face="Arial" size="2"><span style="font-size: 10pt;">
<div>Hi,</div>
<div>I have a database stored in WGS84 EPSG:4326</div>
<div>I would like ti find objects within a distance from a lat/lon point. </div>
<div>1) If i use 1 degree as the distance, will I then get an eliptic search area?</div>
<div>2) Will i find objects on the other side of the Datum shift border if I enter a point like lat=60°, lon= -179,5° with a distance of 1°?</div>
<div>3) Hov do I enter a lat/lon point and a distance in meters?</div>
<div> <br></div></span></font></div></blockquote></div><br>If you want to do something that works but is relatively inefficient for 3, you can do the following:<br><br>ST_DWithin() AND ST_DistanceSphere() < distance in meters<br>
<br>Of course, you would have to make sure that the search radius is big enough to correspond to your search in meters. Of course, it works only for points due to ST_DistanceSphere.<br>If you want to perform something with any geometry, look at postgis 1.5 and the new geography type.<br>
<br>Emilie Laffray<br>