indeed, you could even pregenerate the correct ellipse geometry then use that with ST_DWithin.&nbsp; At least if you have an ellipse instead of a true circle.<br><br>Shane<br><br><div><span class="gmail_quote">On 9/9/07, <b class="gmail_sendername">
Paul Ramsey</b> &lt;<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Indeed:<br><br>SELECT *<br>FROM mytable<br>WHERE<br>&nbsp;&nbsp; ST_DWithin(mytable.the_geom, ST_SetSRID(MakePoint($x, $y), $srid),<br>$distance);<br><br>P.<br><br>On 9-Sep-07, at 11:25 AM, Shane Spencer wrote:<br><br>&gt; I don&#39;t understand how the Distance() and Intersects() and Contains
<br>&gt; () function wouldn&#39;t work for this?<br>&gt;<br>&gt; Are X and Y radius the same?<br>&gt;<br>&gt; On 9/9/07, <a href="mailto:postgis@jochem.name">postgis@jochem.name</a> &lt;<a href="mailto:postgis@jochem.name">
postgis@jochem.name</a> &gt; wrote:Hi,<br>&gt;<br>&gt; what I want to do is finding certain features in some distance<br>&gt; around a<br>&gt; certain point. Those features should be located in some corridor<br>&gt; between X
<br>&gt; and Y km around this point. Currently I&#39;ve solved this problem by<br>&gt; computing two bounding boxes of X and Y km around the point and<br>&gt; taking the<br>&gt; difference of those. So far so good.<br>&gt;
<br>&gt; But I don&#39;t want to have some quadratic box but a real circle - is<br>&gt; there<br>&gt; any way to achieve this?<br>&gt;<br>&gt; Best regards,<br>&gt; Rainer<br>&gt; _______________________________________________
<br>&gt; postgis-users mailing list<br>&gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">
http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; postgis-users mailing list<br>&gt; <a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a><br>&gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br><br>_______________________________________________
<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users
</a><br></blockquote></div><br>