<p dir="ltr">Why not use ST_DWithin with the original triangle, it is the best option regarding speed and precision.<br>
Cheers<br>
Remi-C</p>
<div class="gmail_quote">Le 10 juin 2015 01:30, "Andy Colson" <<a href="mailto:andy@squeakycode.net">andy@squeakycode.net</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">At first I thought no, because it creates a circle around a point:<br>
<br>
"Returns a geometry that represents all points whose distance from this Geometry is less than or equal to distance"<br>
<br>
But now that I read it again, maybe it does do what I'd like.  If I pass a rectangle, it'll return all points <= radius.<br>
<br>
I'll give it a shot and try it out.  Thanks for the help.<br>
<br>
-Andy<br>
<br>
<br>
On 06/09/2015 04:48 PM, Basques, Bob (CI-StPaul) wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you use ST_Buffer??<br>
<br>
bobb<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Jun 9, 2015, at 4:34 PM, Andy Colson <<a href="mailto:andy@squeakycode.net" target="_blank">andy@squeakycode.net</a>> wrote:<br>
<br>
Hi all.<br>
<br>
I have buffer selection problem.  My site can drop a point, then find all the parcels within 100 feet of that point.  No problem.<br>
<br>
One client however would like to select a parcel (maybe its a square, maybe its a triangle, or any other odd shape), and find all other parcels within 100 feet of any point within the source parcel.<br>
<br>
100 is optional.  They could choose 50, or 150.<br>
<br>
I'm not sure how to do something like this.  I found ST_Expand, but that'll create a bounding box around the triangle.<br>
<br>
ST_TransScale could scale it, but I'm not sure what the scale is.  The user might type in 50 feet or 150 feet, I'm not sure how to calculate a deltaX and deltaY scale for that.<br>
<br>
Any hints on how I might go about this?  I'm a bit stuck.<br>
<br>
Thanks,<br>
<br>
-Andy<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div>