<div dir="ltr">Hi Wolfgang,<div>make sense : ST_Contains <span class="Apple-style-span" style="color: rgb(46, 46, 46); font-family: 'Lucida Grande'; ">Returns TRUE if geometry B is <span class="Apple-style-span" style="font-weight: bold;"><span class="Apple-style-span" style="text-decoration: underline;">completely</span></span> inside geometry A</span></div>
<div><span class="Apple-style-span" style="color: rgb(46, 46, 46); font-family: 'Lucida Grande';"><br></span></div><div><span class="Apple-style-span" style="color: rgb(46, 46, 46); font-family: 'Lucida Grande';">You can use ST_intersects ...</span></div>
<div><span class="Apple-style-span" style="color: rgb(46, 46, 46); font-family: 'Lucida Grande';"><br></span>Fred</div><div><br><div class="gmail_quote">On Wed, Oct 1, 2008 at 3:00 PM,  <span dir="ltr"><<a href="mailto:pleasecontactmee@aim.com">pleasecontactmee@aim.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font face="Arial, Helvetica, sans-serif">Hello,<br>
<br>
Can you please help me, where am I wrong by using the PostGIS Function "Contains(geometry A, geometry B)" (referring to chapter 6.1. OpenGIS Functions of PostGIS manual)<br>
which delivers back only points within a MULTILINESTRING except "start-" and "endpoint" of it?<br>
<br>
Here are some examples<br>
This statement returns "false" even though the first POINT(7.0 50.0) is part of the MultiLineString<br>
SELECT Contains (GeomFromEWKT('SRID=4326;MULTILINESTRING((7.0 50.0,8.0 51.0,9.0 52.0))'), (GeomFromEWKT('SRID=4326;POINT(7.0 50.0)')) );<br>
e.g. the "middle" point delivers what I expect="true"<br>
SELECT Contains (GeomFromEWKT('SRID=4326;MULTILINESTRING((7.0 50.0,8.0 51.0,9.0 52.0))'), (GeomFromEWKT('SRID=4326;POINT(8.0 51.0)')) );<br>
<br>
What I need is a function which is able to find ONE point within a MULTILINESTRING which can be the first, last or a point between them.<br>
I am using pgAdminIII v1.6.3, "PostgreSQL 8.2.5" and PostGIS Version "1.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1"<br>
<br>
Thank you very much,<br>
Wolfgang</font><div>
<hr style="margin-top:10px">
<b>AOL eMail auf Ihrem Handy!</b>Ab sofort können Sie auch unterwegs Ihre AOL email abrufen. <a href="http://www.aol.de/Webmail/" target="_blank">Registrieren</a> Sie sich jetzt kostenlos.<br>
</div>
<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>
<br></blockquote></div><br></div></div>