Chart positioning
thomas bonfort
thomas.bonfort at GMAIL.COM
Thu Aug 2 09:23:14 EDT 2007
On 8/2/07, Daniel Morissette <dmorissette at mapgears.com> wrote:
>
> Nicol Hermann wrote:
> > Hi Daniel,
> >
> > as promised, i did some further tests with the new charting options.
> > I checked the layer types point and line and could not find any problems
> > so far. One question for my understanding. How do you determine the
> > position of the charts by line and polygon types?
for polygon layers its determined by the mapserver function
msPolygonLabelPoint, which does have a min_dimension parameter but I haven't
been successful when changing this.
for the line layers, the program starts with the middle segment of the line
and draws the chart there if it fits. if not it recursively tests the two
adjacent segments until a place has been found.
On thing i plan to do
> > are some collision tests. Is it possible to control this behaviour like
> > the force keyword in the labelObj?
I have no idea how this is done for labels. if you want to have a go at it
please do ;)
>
> > Many thanks
> > Nicol
> >
>
> Hi Nicol,
>
> I have moved this discussion to the mapserver-dev list since others
> might be interested in it.
>
> I have also CC'd Thomas Bonfort who is the author of the chart rendering
> code, he will be able to comment on the possible options. I think
> treating the charts as labels/symbols and caching them to allow
> collision detection is something he had in mind but that was not part of
> the initial implementation.
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20070802/217aa588/attachment.html
More information about the mapserver-dev
mailing list