[mapserver-users] Is PropertyIsNull supported by MapServer?

geographika geographika at gmail.com
Fri May 2 02:16:48 PDT 2014


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>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140502/3a632cd9/attachment.html>


More information about the mapserver-users mailing list