YSLD directly mirrors the structure of the SLD standard (using yaml rather than xml). As such I do not feel comfortable adjusting the representation too far from the original.
Can you experiment with YAML define to get the same affect? Rather than repeat "condition 1"? See https://docs.geoserver.org/stable/en/user/styling/ysld/reference/variables.html -- Jody Garnett On Fri, 28 Dec 2018 at 00:54, Eugene Podshivalov <[email protected]> wrote: > Hi all, > It would be nice to have a possibility to group filters in YSLD styles. > > For example, if we have a repeating condition (condition1): > - rules: > - filter: condition1 and condition2 > symbolizers: > - polygon: > - filter: condition1 and condition3 > symbolizers: > - polygon: > > then it could be grouped like this > - rules: > - filter: condition1 > - filter: condition2 > symbolizers: > - polygon: > - filter: condition3 > symbolizers: > - polygon: > > Any number grouping levels should be allowed. > > Best regards, > Eugene > _______________________________________________ > 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 > > > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users >
_______________________________________________ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
