[mapguide-users] how to set "OR SpatialFilter"??

Champin champingfor at 163.com
Wed Sep 26 10:08:25 EDT 2007



There are three geomertys ,they are geom1 ,geom2 and geom3

Now, I want to select the features in them, in other word, select the
features inside of geom1 or inside of geom2 or inside of geom3.


Then,how do I write the SetSpatialFilter ?? Just like the following ?

     queryOp.SetSpatialFilter("Geometry", geom1,
MgFeatureSpatialOperations.Inside);
     queryOp.SetSpatialFilter("Geometry", geom2,
MgFeatureSpatialOperations.Inside);
     queryOp.SetSpatialFilter("Geometry", geom3,
MgFeatureSpatialOperations.Inside);

Or I have to combine all the three geoms into a big one and then

   queryOp.SetSpatialFilter("Geometry", TotalGeom,
MgFeatureSpatialOperations.Inside);

If I have to combine them, and how? how to combine?


Thanks in advance~

-- 
View this message in context: http://www.nabble.com/how-to-set-%22OR-SpatialFilter%22---tf4522610s16610.html#a12901771
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list