Ik wil graag kunnen filteren op lege of NULL waarden voor b.v. gebruiksdoel.
Bij WFS werkt dat prima maar niet bij de WMS.
Deze request filtert niets uit en laat alles zien:
https://geodata.nationaalgeoregister.nl/bag/wms/v1_1?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=pand&TILED=false&STYLES=bag%3Apand_gefilterd&tilesorigin=134096.51153754673%2C443558.49233636656&FILTER=<Filter><Or><PropertyIsNull><PropertyName>gebruiksdoel</PropertyName></PropertyIsNull><PropertyIsEqualTo><PropertyName>gebruiksdoel</PropertyName><Literal></Literal></PropertyIsEqualTo></Or></Filter>&WIDTH=256&HEIGHT=256&CRS=EPSG%3A28992&BBOX=134073.92000000004%2C443552.32%2C134087.36000000004%2C443565.76
Deze request filter wel:
https://geodata.nationaalgeoregister.nl/bag/wms/v1_1?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&TRANSPARENT=true&LAYERS=pand&TILED=false&STYLES=bag%3Apand_gefilterd&tilesorigin=134096.51153754673%2C443558.49233636656&FILTER=<Filter><PropertyIsEqualTo><PropertyName>gebruiksdoel</PropertyName><Literal></Literal></PropertyIsEqualTo></Filter>&WIDTH=256&HEIGHT=256&CRS=EPSG%3A28992&BBOX=134073.92000000004%2C443552.32%2C134087.36000000004%2C443565.76
M.a.w. dit filter werkt niet:
<Filter>
<Or>
<PropertyIsNull>
<PropertyName>gebruiksdoel</PropertyName>
</PropertyIsNull>
<PropertyIsEqualTo>
<PropertyName>gebruiksdoel</PropertyName>
<Literal></Literal>
</PropertyIsEqualTo>
</Or>
</Filter>
En deze wel:
<Filter>
<PropertyIsEqualTo>
<PropertyName>gebruiksdoel</PropertyName>
<Literal></Literal>
</PropertyIsEqualTo>
</Filter>