[mapserver-dev] MapServer pie chart enhancements

Tamas Szekeres szekerest at gmail.com
Wed Apr 11 15:11:39 EDT 2012


Hi Thomas,

I would just use 3 specific functions (linear, sqrt, log) as the possible
values of   CHART_SIZE_FUNCTION

Best regards,

Tamas



2012/4/11 thomas bonfort <thomas.bonfort at gmail.com>

> Hi Tamas,
> How would you express this in a pseudo-generic way inside the
> processing keys? Are there any other functions that would make sense
> here?
>
> --
> thomas
>
> On Wed, Apr 11, 2012 at 20:14, Tamas Szekeres <szekerest at gmail.com> wrote:
> >
> > Hi Devs,
> >
> > One of our client requires an addition which could provide nonlinear
> > function to visualize the size of the pies depending on the source
> > attribute. Currently we can specify the chart size as follows:
> >
> > PROCESSING "CHART_SIZE_RANGE = itemname minsize maxsize minval maxval"
> >
> > This can provide the size as linear function of the item value. As an
> > enhancement we would like to add further kind of functions (like square
> root
> > or logarithm) to enhance the visual appearance (see the images attached).
> >
> > This addition could be implemented by introducing a new processing option
> > (like: CHART_SIZE_FUNCTION ) and by adding a switch to the size
> calculation
> > in mapchart.c.
> >
> > For example with the square root function we could use:
> >
> > diameter=MS_NINT(
> > mindiameter+
> > (sqrt((diameter-minvalue))/sqrt((maxvalue-minvalue)))*
> > (maxdiameter-mindiameter));
> >
> >
> > What do you think about this change?
> >
> >
> > Best regards,
> >
> > Tamas
> >
> >
> >
> > _______________________________________________
> > mapserver-dev mailing list
> > mapserver-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20120411/bcb13714/attachment.html


More information about the mapserver-dev mailing list