It has always dropped default values e.g. square marks, black strokes and grey fills etc. It avoids cluttering up the SLD with unnecessary elements. The simplest answer would seem to be for you to leave such defaults out of your SLD files (or ignore them when looking for differences).
Ian On Fri, 15 Mar 2024 at 10:49, Alexandre Gacon <alexandre.ga...@gmail.com> wrote: > Hello, > > When I send a style with a WellKnowName of type square to GeoServer with a > REST API, the WellKnownName is removed from the SLD definition, because > square is the default value. > > As a consequence, when I retrieve the SLD with a GET on the REST API and I > compare it to my definition, it is detected as a difference. > > Shouldn't the REST API respect the original content sent? > > -- > Alexandre Gacon > _______________________________________________ > 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 > -- Ian Turton
_______________________________________________ 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