WFS: nested DWithin query possible?

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Mon May 9 07:13:44 EDT 2005


Hi list,

can Mapserver handle a nested DWithin query, like the following (simplified) GetFeature request:

<GetFeature>
<Query typename="bisrapvlak">
<ogc:Filter>
<ogc:And>
<ogc:DWithin><ogc:PropertyName>Geometry</ogc:PropertyName><gml:Polygon srsName="EPSG:28992"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>.....</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon><ogc:Distance units="url#m">25</ogc:Distance></ogc:DWithin>
<ogc:Not>
<ogc:DWithin><ogc:PropertyName>Geometry</ogc:PropertyName><gml:Polygon srsName="EPSG:28992"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>.....</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon><ogc:Distance units="url#m">0.01</ogc:Distance></ogc:DWithin>
</ogc:Not>
</ogc:And>
</ogc:Filter></Query></GetFeature>

What I am trying to do is find all features that are within a certain buffer of a polygon (25 meters in the above example), but NOT inside the polygon.

Any thoughts appreciated on how to achieve this. Thanks in advance.

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl



More information about the mapserver-users mailing list