[postgis-users] St_within problem
rjpawley at shaw.ca
Mon Oct 19 09:13:27 PDT 2009
I have tried it with the point and geometry reversed with the same result.
Perhaps, I am not looking at this the right way.
According to the manual
st_within Returns TRUE if geometry A (points) is completely inside geometry
B ( geometry).
If it scans the list of 858 points some of those points are within the
geometry - unless Postgis is looking at the 858 points as one entity.
----- Original Message -----
From: "Maxime van Noppen" <maxime at altribe.org>
To: "PostGIS Users Discussion" <postgis-users at postgis.refractions.net>
Sent: Monday, October 19, 2009 8:50 AM
Subject: Re: [postgis-users] St_within problem
> Bob Pawley wrote:
>> select st_astext(graphics.point_grid.the_geom)
>> from graphics.point_grid, library.dgm_process
>> where library.dgm_process.process_number = '1'
>> and st_within(graphics.point_grid.the_geom,
>> Any thoughts would be appreciated.
> From the documentation here :
>> boolean ST_Within(geometry A, geometry B);
>> Returns TRUE if geometry A is completely inside geometry B.
> I suggest that you just swap the arguments of the ST_Within function as
> a geometry will never be "completly inside" a point.
> postgis-users mailing list
> postgis-users at postgis.refractions.net
More information about the postgis-users