querybyshape and contain

Steve Lime steve.lime at DNR.STATE.MN.US
Tue Dec 13 18:30:40 PST 2005


This is not possible with the given code. PostGIS gives you this functionality. It is pretty easy to add though- if using MapScript. All we'd need to do would be to expose a couple of additional GEOS operators (like contains) and you could do something like:

Step 1: query by rect (using the query shape extent)
Step 2: for each result feature actually test using the contains operator

Let me know if you'd like to pursue...

Steve

>>> Fx Gamoy <fx.gamoy at GEOMATIKA.FR> 12/13/05 11:20 AM >>>
Hello everybody
i would like to query a layer with a shape in order to get all the objs
contained in the shape

When i use querybyshape, i get all the objs intersected by the shape.
So some objs are not selected.

Is it a way to get a spatial contain query instead of an intersect one?

thanks for your help
fx

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the MapServer-users mailing list