Problem with NotEqualTo filters in SLD and CSS

المشرف العام

Administrator
طاقم الإدارة
I am having a bit of a problem with using a '' attribute filter in CSS for GeoServer. I have parred my CSS down to the absolute minimum for a buildings layer as follows:

[aeroway 'terminal']{ fill: #aa1111;}The auto-generated SLD is as follows:

Default Styler Default Styler aeroway terminal #aa1111 first According to the documentation both for CSS and PropertyIsNotEqualTo for SLD are perfectly valid. The layer contains data and shows fine if I remove the filter, so the problem does not lie with the data.

Interestingly, PostGIS does not return data whose aeroway data is Null if you send it an SQL as follows:

select * from buildings where aeroway 'terminal'In PostGIS, the above query returns only buildings whose aeroway attribute is both NOT NULL and NOT 'terminal'. That was a surprise because I was expecting to get absolutely everything that did not have a value of 'terminal' (including the null values). So, potentially the problem might lie with my expectations of PostGIS's approach to SQL.

Is this normal behaviour and can anybody suggest a work-around please (aeroway = '' does not work)?



أكثر...
 
أعلى