[postgis-users] Contains failing

Tom Glancy Tom.Glancy at dnr.state.mn.us
Wed Oct 15 09:31:03 PDT 2008


Greetings!

I have the same results as Kevin - TRUE in both cases...

Regards,
Tom



On Wed, 2008-10-15 at 17:23 +0100, Fred Lehodey wrote:
> Hi,
> I have the same results as David: (false)
> 
> 
> postgis_full_version():
> 
> "POSTGIS="1.3.3" GEOS="3.0.0-CAPI-1.4.1" PROJ="Rel. 4.6.0, 21 Dec
> 2007" USE_STATS"
> 
> 
> Fred.
> 
> 
> On Wed, Oct 15, 2008 at 5:09 PM, Kevin Neufeld
> <kneufeld at refractions.net> wrote:
>         I don't get your results - I get TRUE in both cases.
>         
>         What version of postgis/geos are you running?
>         -- Kevin
>         
>         David Vaz wrote:
>                 Hi,
>                 
>                 Does anyone have a clue why this fails:
>                 
>                 select contains(geomfromtext('POLYGON((0 0,0 8,8 8,8
>                 0,0 0),(3 3,5 3,5
>                 5,3 5,3 3))'), geomfromtext('POLYGON((0 0,5 0,5 1,0
>                 1,0 0))'))
>                 ;
>                  contains
>                 ----------
>                  f
>                 (1 row)
>                 
>                 
>                 Without the Hole in the polygon
>                 
>                 select contains(geomfromtext('POLYGON((0 0,0 8,8 8,8
>                 0,0 0))'),
>                 
>                 geomfromtext('POLYGON((0 0,5 0,5 1,0 1,0 0))'))
>                 ;
>                  contains
>                 ----------
>                 
>                  t
>                 (1 row)
>                 
>                 
>                 And the Hole does not intersects the other polygon
>                 
>                 select intersects(geomfromtext('POLYGON((3 3,5 3,5 5,3
>                 5,3 3))'),
>                 
>                 geomfromtext('POLYGON((0 0,5 0,5 1,0 1,0 0))'))
>                 ;
>                 
>                  intersects
>                 ------------
>                 
>                  f
>                 (1 row)
>                 _______________________________________________
>                 postgis-users mailing list
>                 postgis-users at postgis.refractions.net
>                 http://postgis.refractions.net/mailman/listinfo/postgis-users
>                 
>         
>         _______________________________________________
>         postgis-users mailing list
>         postgis-users at postgis.refractions.net
>         http://postgis.refractions.net/mailman/listinfo/postgis-users
>         
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users




More information about the postgis-users mailing list