Thanks for your replies. Unfortunately white space does not make a
difference.
I also tried following the same tests as outlined at:
http://mapserver.org/ogc/filter_encoding.html#tests
I used the following URL:
http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=<Filter><PropertyIsNull><PropertyName>NAME</PropertyName></PropertyIsNull></Filter>
With the filter encoded this is as follows (this can be tested directly):
http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsNull%3E%3CPropertyName%3ENAME%3C%2FPropertyName%3E%3C%2FPropertyIsNull%3E%3C%2FFilter%3E
However I still get the following error:
msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in
GetFeature :
<Filter><PropertyIsNull><PropertyName>NAME</PropertyName></PropertyIsNull>
I get the same when using VERSION=1.1.0.
On 02/05/2014 08:43, Eichner, Andreas - SID wrote:
Whitespace might be significant, can you try
<ogc:PropertyIsNull>
<ogc:PropertyName>YEAR</ogc:PropertyName>
</ogc:PropertyIsNull>
-----Ursprüngliche Nachricht-----
OpenLayers has a OpenLayers.Filter.Comparison.IS_NULL filter that produces
XML such as:
<ogc:PropertyIsNull>
<ogc:PropertyName>
YEAR
</ogc:PropertyName>
</ogc:PropertyIsNull>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users