Hi,

we use GeoServer CSS for styling layers based on CQL based selectors.

E.G. we have the following 3 classes:

* {
  mark: symbol(circle);
}

/* @title < 1,5 m³/h */
[MY_ATTRIBUTE > 0][MY_ATTRIBUTE < 1.5]:mark {
  fill: #aaff00;
  stroke: black;
}

/* @title 1,5 - 10 m³/h */
[MY_ATTRIBUTE >= 1.5][MY_ATTRIBUTE <= 10.0]:mark {
  fill: #ffaa00;
  stroke: black;
}

/* @title > 10 m³/h */
[MY_ATTRIBUTE > 10]:mark {
  fill: #e60000;
  stroke: black;
}


Sometimes the attribute MY_ATTRIBUTE is null in the database. How can I match 
null with GeoServer css selectors?

Or - in case this is not possible - can I have a default (fallback) class for 
the case when the other three selectors do not match?

Best,
Jens

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to