querybyshape and contain

Bob Bray robert.bray at AUTODESK.COM
Wed Dec 14 02:28:30 EST 2005


FYI - MapServer Enterprise can support these types of queries in one of
two ways.

If the FDO Provider supports the contains operator then you can use the
AwFeatureServices::Select operation to execute the contains query
directly. This will work against data providers like Oracle Spatial,
MySQL, and in theory PostGIS (if we had a PostGIS provider). FDO providers
have the option of supporting any of the 10 Open GeoSpatial Simple
Features geometric operations: Contains, CoveredBy, Crosses, Disjoint,
Equals, Inside, Intersects, Overlaps, Touches, and Within.

If the FDO Provider does not support the contains operation, then you can
use an intersection query, walk the result set, and use the
AwGeometry::Contains method. Internally this uses GEOS to do the work. MSE
currently exposes all of the GEOS operations.

Bob



More information about the mapserver-users mailing list