<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="Helvetica, Arial, sans-serif">Dear All, <br>
<br>
I am trying to use a spacial filter that would be passed to
mapserver via url. The use case is a cascaded WFS. The source WFS
server has been validated to correctly process the following
request:<br>
"""<br>
<a class="moz-txt-link-freetext" href="https://source-server?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=5&REQUEST=GetFeature&typename=type_name&Filter=">https://source-server?SERVICE=WFS&VERSION=1.1.0&MAXFEATURES=5&REQUEST=GetFeature&typename=type_name&Filter=</a><ogc:Filter><ogc:Contains><ogc:PropertyName>Shape</ogc:PropertyName><gml:Point><gml:pos
srsName='urn:x-ogc:def:crs:EPSG:25832'>785757.57
5855457.34</gml:pos></gml:Point></ogc:Contains></ogc:Filter><br>
"""<br>
<br>
However if I send the same request to Mapserver, I get nothing
back. From the log it seems there is a problem with the filter <br>
"""<br>
[warn] [pid 25] mod_fcgid: stderr: Filter could not be translated
to OGR filter<br>
[warn] [pid 25] mod_fcgid: stderr: msOGRFileWhichShapes: Setting
spatial filter to -5056<br>
"""<br>
In the mapfile the layer (has been tested to work fine without
filter) is defined like this:<br>
"""<br>
LAYER<br>
NAME "TEST_DE"<br>
UNITS METERS<br>
TYPE POLYGON<br>
CONNECTION "test_german_wfs.xml"<br>
CONNECTIONTYPE OGR<br>
STATUS ON<br>
DATA "</font><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">type_name</font>"<br>
METADATA<br>
"wfs_srs" "EPSG:25833"<br>
"wfs_version" "1.1.0"<br>
"wfs_title" "TEST_DE"<br>
"wfs_connectiontimeout" "30"<br>
"wfs_typename" "</font><font face="Helvetica, Arial,
sans-serif"><font face="Helvetica, Arial, sans-serif">type_name</font>"<br>
"wfs_maxfeatures" "700"<br>
"gml_include_items" "all"<br>
"gml_exclude_items" "gml_id"<br>
"wfs_enable_request" "*"<br>
END # METADATA<br>
PROJECTION<br>
"init=epsg:25832"<br>
END # PROJECTION<br>
CLASS<br>
NAME "</font><font face="Helvetica, Arial, sans-serif"><font
face="Helvetica, Arial, sans-serif">TEST</font>"<br>
STYLE<br>
OUTLINECOLOR 255 0 0<br>
WIDTH 0.7<br>
END # STYLE<br>
END # CLASS<br>
END # LAYER<br>
"""<br>
<br>
I am on Mapserver</font><span style="color: #000000;"><font
face="Helvetica, Arial, sans-serif"> </font>7.6.4-1 <br>
<br>
</span><span style="color: #000000;"></span>
<div><span style="color: #000000;">running with Apache under a
current Ubuntu<br>
<br>
</span></div>
<font face="Helvetica, Arial, sans-serif">So far I have tried to set
a validation for the "filter" tag but no change. I also looked at
<br>
<a class="moz-txt-link-freetext" href="https://mapserver.gis.umn.edu/nl_NL/ogc/filter_encoding.html#use-of-filter-encoding-in-mapserver">https://mapserver.gis.umn.edu/nl_NL/ogc/filter_encoding.html#use-of-filter-encoding-in-mapserver</a><br>
but with no luck.<br>
<br>
Any help will be appreciated. <br>
<br>
Best<br>
<br>
Lars<br>
</font>
<div class="moz-signature">
<meta charset="utf-8">
<title>SkenData Email Signa</title>
</div>
</body>
</html>