Hi Marco,<br><dl><dt><span class="term">ST_DWithin(geometry, geometry, float)</span></dt><dd><p>Returns true if geometries are within the specified distance
of one another. Uses indexes if available.</p></dd></dl><br>HTH,<br>Fred<br><br><br><br><br><div class="gmail_quote">On Mon, Jun 29, 2009 at 4:46 PM, Marco Lechner - FOSSGIS e.V. <span dir="ltr"><<a href="mailto:marco.lechner@fossgis.de">marco.lechner@fossgis.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi list,<br>
<br>
we are using within(geometry, geometry) to test if some (~1200) points<br>
are within a polygon. the polygon is defined as buffer(linegeometry,<br>
dist). the problem is, that the line is always the same and therefore<br>
the result of buffer(linegeometry, dist) is always the same. while<br>
iterating through the points the within() calculates the<br>
buffer(linegeometry) each time again. the function takes 40s. instead of<br>
0.04s if i calculate the buffergeometry first and use it as "fixed<br>
geometry" at within() - is this somehow improvable (within() recognizing<br>
such a behaviour?, ...)?<br>
<br>
Marco<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" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>