Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ability to read chart size from an attribute #2136
This would be a nice to have but will not be included in the initial RFC implementation. Instead I propose that we keep this as a future enhancement. Here is the approach that I proposed on the mapserver-dev list:
I've thought about this some more. It is probably not sufficient to provide the ability to lookup the chart size in an attribute, since this attribute may not be a value in pixels but would be an actual value (e.g. total amount of sales) so you really need to be able to define a range of sizes for the chart which is driven by an attribute.
We could be to keep PROCESSING CHART_SIZE as is, and define a second mechanism to specify the chart size:
If the attribute value is smaller than 'minval' then the chart size will be minsize pixels, and if the attribute value is larger than maxval, the chart size will be maxsize pixels.
this commit also supports setting
without the minsize,maxsize,minval,maxval values for when the diameter can be read directly from an attribute without need for rescaling