Hi guys,

Is there a way to create a style in mbstyle format for a layer with
differents rules ?
There is only one paint per layer so i was expecting something like that
could work but it doesn't, "Invalid SLD".
The idea is to have 2 layers with 2 differents filters and paints..

{
  "version": 8,
  "name": "violet polygon",
  "layers": [
      {
          "id": "violet polygon",
          "type": "fill",
          "filter": [">", "IDN3", 710],
          "paint": {
              "fill-color": "#3300ff",
              "fill-outline-color":"#000000"
          }
      }, {
          "id": "red polygon",
          "type": "fill",
          "filter": ["<", "IDN3", 710],
          "paint": {
              "fill-color": "#aa0000",
              "fill-outline-color":"#000000"
          }
      }
  ]
}

Maybe it's not possible with the current implementation ?
Thanks for hints

-- 
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
*Technical Leader - Architect*
+33 4 58 48 20 36
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to