Hi there.

I created an YSLD style for Polygons, LineStrings and Points

feature-styles:
> - name: name
>   x-ruleEvaluation: first
>   rules:
>   - filter: ${dimension(geometry()) = 2}
>     symbolizers:
>     - polygon:
>         fill-color: 'yellow'
>         stroke-color: 'red'
>
>   - filter: ${dimension(geometry()) = 1}
>     symbolizers:
>     - line:
>         stroke-color: 'blue'
>
>   - else: true
>     symbolizers:
>     - point:
>         symbols:
>         - mark:
>             shape: circle
>             stroke-width: 1


It works fine with Polygon and Linestring geometries.

But when geometry is a GeometryCollection with Polygon and LineString
inside then all child geometries have style of polygone (dimension of
Collection is 2). If only Linestrings and Points are
indise GeometryCollection then all children have style of lineString
(dimension of Collection is 1).

How to apply different styles for geometries of different types inside
GeometryCollection?
_______________________________________________
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