<div dir="ltr"><div>Hi Bob, </div><div><br></div><div>Something like this:</div><div><br></div><div><br></div>SELECT <a href="http://a.id">a.id</a>,<div>              <a href="http://b.id">b.id</a></div><div>FROM A AS a, B AS b</div><div>WHERE ST_WITHIN(a.geom, b.geom) -- or ST_CONTAINS(b.geom, a.geom)<br><div><br></div><div><br></div><div>Cheers<br><div><br><div class="gmail_extra"><br><div class="gmail_quote">2015-11-09 14:50 GMT-02:00 Bistrais, Bob <span dir="ltr"><<a href="mailto:Bob.Bistrais@maine.gov" target="_blank">Bob.Bistrais@maine.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Spatial functions such as ST_Within and ST_Boundary return a Boolean.  Instead, I would like to be able to return the feature id’s of the features used in these functions.  Example, instead of ST_Within(A,B) being true or false, I’d like
 to get the feature ids of A that are within B.  So if A contains points, B contains polygons, which point features of A are within B.  How do I do this?<u></u><u></u></p>
</div>
</div>

<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div></div></div></div></div>