[postgis-users] difference between contains and within

Martin Davis mbdavis at refractions.net
Tue Nov 6 11:02:50 PST 2007


They are inverses of one another.    contains(A, B) = within(B, A)

Dave Potts wrote:
> I trying to work out the number of points that spaitially inside a 
> polygon, looking at the manual there are two functions that seem to do 
> the right thing, contains and within.
>
> Q. Whats the difference between the two functions?
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>   

-- 
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022




More information about the postgis-users mailing list