[postgis-users] Problem with ST_WITHIN

Luigi Castro Cardeles luigi.cardeles at gmail.com
Thu Sep 17 20:29:11 PDT 2009


Hi list,

If i run that query,

select ST_Within
    (
        geomfromtext('POINT(10 18)',4326),
        geomfromtext('MULTIPOLYGON (((10 18,30 18,30 12,10 12,10
18)))',4326)
    )

or

select ST_Within
    (
        geomfromtext('MULTIPOLYGON (((10 18,30 18,30 12,10 12,10
18)))',4326),
        geomfromtext('POINT(10 18)',4326)
    )

this query return false.

If i try

select ST_Within
    (
        geomfromtext('POINT(10 18)',4326),
        geomfromtext('POINT(10 18)',4326)
    )

this query return true.

Is this right?

I think that the first query should return true. Am i wrong?

best regards,

Luigi Castro Cardeles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090918/c841193d/attachment.html>


More information about the postgis-users mailing list