[mapserver-users] Is PropertyIsNull supported by MapServer?

Even Rouault even.rouault at mines-paris.org
Fri May 2 02:39:21 PDT 2014


Le vendredi 02 mai 2014 11:16:48, geographika a écrit :
> 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=Ge
> tFeature&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=Ge
> tFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsNull%3E%3CProperty
> Name%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>

This is expected. demo.mapserver.org is MapServer 5.6.5. PropertyIsNull will 
only be available in Mapserver 7.0

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

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html



More information about the MapServer-users mailing list