Jody, thanks for your reply, to use the GeoTools Brewer module in GeoServer a custom build would be necessary, right? From a quick look in the github geoserver repo I haven’t seen any imports (other than this src/community/ncwms/src/main/java/org/geoserver/wms/style/PaletteParser.java <https://github.com/geoserver/geoserver/blob/05ac24747f86deb1529fff3ead76ab9d4ae7d86f/src/community/ncwms/src/main/java/org/geoserver/wms/style/PaletteParser.java>)
For the time being I’ll probably continue with adding some extra settings in the SLD from the REST service and by having a parametric SQL view to do the math (mostly divisions) Chris P.S. On a side note, while experimenting with WPS, I spotted the vec:FeatureClassStats which offers similar classification functionality (Jenks, Quantiles etc) but with some issues, for which I’ll submit a bug report. > 7 Μαρ 2020, 09:30, ο χρήστης «Jody Garnett <jody.garn...@gmail.com>» έγραψε: > > A lot of this is built on the geotools library, for example you could add > colour brewer 2.0 color schemes there and everyone would enjoy them in > geotools and other libraries: > https://github.com/geotools/geotools/tree/master/modules/extension/brewer > <https://github.com/geotools/geotools/tree/master/modules/extension/brewer> > > For many of your “could”’questions I would you to dig into what is possible > with expressions, and then look at adding the capability to the style > generation. Many of the classification functions (known as aggregate > functions in the geotools codebase) support expressions. So it is possible to > calculate a value from two attributes and classify the result. > > The same goes for functions used for styling, using exponential functions to > generate symbol size for example. > > Have fun, and good ideas :) > > > > On Fri, Mar 6, 2020 at 9:45 AM Christoforos Vradis <cvra...@hua.gr > <mailto:cvra...@hua.gr>> wrote: > Hi, we have been developing a mapping platform for the greek census data and > we need to create customizable choropleth and proportional symbol web maps. > > In that context, I have given the (very useful indeed) SLD REST Service > extension a try, and I would like to ask a few questions regarding some extra > functionality we’d like to see: > > a) can it support ColorBrewer 2.0 colour schemes? (other than sending the > actual individual colours via the color parameter) > > b) could there be an extra classification method with the standard deviation > and mean value? That would require to define the middle of a (possibly > diverging) custom colour ramp and assign it to the middle class. It would > also require to define the fraction of the standard deviation to be used when > creating classes (e.g. 1, 1/2, 1/3, 1/4 and possibly 1/5) > > c) can it perform classification based on some arithmetic of two colums (such > as division like "column a / column b" etc)? Are similar functions supported? > (that would be usefull for computing e.g. percentages, density and various > similar statistical indexes) > > d) are geometry transformations supported? Could I use a polygon’s centroid > to create a proportional point symbol map without creating point geometries? > > Currently, I have started to develop part of the above functionality partly > in JavaScript, on the client side and partly on the server, via some PHP > scripts. It would be really nice and elegant, useful and time saving though > if the SLD Service could support those. > > Thanks very much in advance for any help. > > Christoforos Vradis > —— > PhD student, Geography Department, Harokopio University > > _______________________________________________ > 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#/ > <http://www.ianturton.com/talks/foss4g.html#/> > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > <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 > > <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer> > > > Geoserver-users@lists.sourceforge.net > <mailto:Geoserver-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/geoserver-users > <https://lists.sourceforge.net/lists/listinfo/geoserver-users> > -- > -- > Jody Garnett
_______________________________________________ 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