I have try dpi:96, also 90, and also another value, with the same result.
I have put my log to verbose. With or without format_option, I have an 
interesting Exception :

java.lang.NumberFormatException: empty String
        at 
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
        at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
        at java.lang.Float.parseFloat(Float.java:451)
        at 
org.jfree.eastwood.DataUtilities.parseSingleNumber(DataUtilities.java:204)
        at 
org.jfree.eastwood.DataUtilities.parseTextData(DataUtilities.java:171)
        at 
org.jfree.eastwood.DataUtilities.parsePieDataset(DataUtilities.java:343)
        at org.jfree.eastwood.ChartEngine.buildChart(ChartEngine.java:520)
        at org.jfree.eastwood.ChartEngine.buildChart(ChartEngine.java:155)
        at 
org.geotools.renderer.chart.ChartGraphicFactory.getIcon(ChartGraphicFactory.java:71)
        at 
org.geotools.renderer.style.SLDStyleFactory.getIcon(SLDStyleFactory.java:1319)
        at 
org.geotools.renderer.style.SLDStyleFactory.getGraphicStyle(SLDStyleFactory.java:1238)
        at 
org.geotools.renderer.style.SLDStyleFactory.createPointStyle(SLDStyleFactory.java:571)
(The full trace is long of 180 lignes, but we can see the call of ChartEngine 
here).

Without format_option I have this trace just once.
With format_option, twice.

Thank for all.

De : Jody Garnett <jody.garn...@gmail.com>
Envoyé : vendredi 24 septembre 2021 20:41
À : Jonathan DURAND <jonathan.dur...@anteagroup.fr>
Cc : geoserver-devel@lists.sourceforge.net
Objet : [Ext] Re: [Geoserver-devel] charts extension and dpi fomart

First up, 35 dpi is … very low!

I am not so familiar with the chart code, do you have any kind of stack trace 
or other information beyond not showing the charts? Can you try with dpi:96 
(matching the usual WMS default) so we can see if it is the format_option being 
applied at all, or just such an unusual number which is breaking the chart 
support.

Jody

On Fri, Sep 24, 2021 at 9:43 AM Jonathan DURAND 
<jonathan.dur...@anteagroup.fr<mailto:jonathan.dur...@anteagroup.fr>> wrote:
Hi,

I use the charts extension in my geoserver instance.
https://docs.geoserver.geo-solutions.it/edu/en/pretty_maps/charting.html

I use some variables substitutions in my OnlineResource.
If I make a GetMap request, no problem.
But if I make a GetMap request with the DPI format argument 
(format_options=dpi:35), the result is broken. Not show the charts.

If there are no variables substitutions, no problem ; but I need my variables 
substitutions.

Do you know any solution ?
Thank you
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net<mailto:Geoserver-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
--
Jody Garnett
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to