Thanks. But the two behave differently.
I tried both with the same data (see below) , Within returned more records.
select * into dupage from maj where Contains((select the_geom from city
where area_id=21002891), the_geom)
select * into dupage from maj where Within(the_geom, (select the_geom from
city where area_id=21002891) )
----- Original Message -----
From: "Paul Ramsey" <[EMAIL PROTECTED]>
To: "PostGIS Users Discussion" <[email protected]>
Sent: Thursday, September 04, 2008 5:59 PM
Subject: Re: [postgis-users] ST_Contains vs. ST_Within
They in inverses.
ST_Contains(A,B) <=> ST_Within(B,A)
P.
On Thu, Sep 4, 2008 at 3:49 PM, <[EMAIL PROTECTED]> wrote:
What are the difeerences between these two functions?
Thanks.
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users