Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Niklas Elelid
Yes yes, that's definitely what I mean. I put that in the original post to the list, but perhaps I wrote it in a convoluted way. No problem getting the conversion "knots->barb", it's just a matter of how the pennant is drawn. Now outlined, should be filled instead. Just a very minor issue, but

Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Daniele Romagnoli
Yep, I'm pretty sure Niklas was referring about that empty outline instead of a filled black triangle. I think that the ranges rounding (i.e. 48-52 -> 50) is already handled here:

Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Richard Duivenvoorde
Did Nikas maybe mean (see attachment, from geo-solutions page), that the 'pennant' (little triangle flag) should be FILLED and not only having an outline? Second 'issue' then is as Russ says: WHEN should you exactly start showing the 'pennant': at 50 or 48 knots... Is

Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Niklas Elelid
Thank you! I'm new to GeoServer, only using it since 2 days so still trying to get my head around everything but so far it's an amazing product that has helped me a lot. This is not so much a bug as a graphical enhancement. The flag (pennant) correctly symbolizes each 50 knots, it's just that

Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Russ Hore
I suspect this is the problem; https://github.com/geotools/geotools/blob/872b44c28bb55f1e301bb607d53d431826ab7e78/modules/library/render/src/main/java/org/geotools/renderer/style/windbarbs/WindBarb.java#L229

Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Daniele Romagnoli
Right, and the piece of code doing the build of the pennant is right there: https://github.com/geotools/geotools/blob/main/modules/library/render/src/main/java/org/geotools/renderer/style/windbarbs/WindBarb.java#L358 Regards, Daniele On Thu, Mar 11, 2021 at 2:37 AM wrote: > The windbarb

Re: [Geoserver-users] Styling of windbarbs

2021-03-11 Thread Ian Turton
If you think there is a bug in the wind barb rendering then please start out by telling us what you think it should be and why you think that. This can then go into a bug report, and finally you can follow that up with a PR containing the code to fix the problem. At present we have no idea if this

Re: [Geoserver-users] Styling of windbarbs

2021-03-10 Thread bradh
The windbarb rendering code is in geotools.https://github.com/geotools/geotools/tree/main/modules/library/render/src/main/java/org/geotools/renderer/style/windbarbsYou may be able to add a custom symbol using normal GeoServer styling, but the code approach is likely easier and better.Brad.On 11

[Geoserver-users] Styling of windbarbs

2021-03-10 Thread Niklas Elelid
Following the instructions in the GeoServer docs I have added the style windbarbs to my layer. https://geoserver.geo-solutions.it/educational/en/multidim/accessing_multidim/rtx/wind_barbs.html