[mapserver-users] AGG vs. GD: Label placement problems

Doyon, Jean-Francois jdoyon at NRCan.gc.ca
Tue Mar 18 05:05:45 PDT 2008


Thanks Thomas, that'd be great ... is there a ticket open for this, or
should I open one? (I'd like to track progress on this issue ...)

J.F. 

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of thomas
bonfort
Sent: March 18, 2008 03:42
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] AGG vs. GD: Label placement problems

Yes, that's exactly the problem, as there's a difference of a few pixels
between the size of the label calculated by gd and the size it actually
takes when rendered with agg. I realize now that it can cause some quite
visible problems in the case you show here (labels to the left), as in
that case the few pixels difference can cause the label to overlap the
point symbol. I'll see if I can fix this in the days/weeks to come so
this can be included in 5.2

cheers,
thomas

On Mon, Mar 17, 2008 at 8:25 PM, Daniel Morissette
<dmorissette at mapgears.com> wrote:
> Doyon, Jean-Francois wrote:
>  >
>  > Labels that are to the left of the point seem to be placed
differently ... Look top-right ("Les Escoumins", "Saint Anne de Port
Neuf", etc ...) for an example, though it happens all over the place I
think.  Labels to the right of the point however seem ok.
>  >
>  > Is this a bug? A design change?  Can anything be done from the
mapfiel to mitigate this?
>  >
>
>  A few days ago, ThomasB wrote on mapserver-dev that in AGG mode, "gd 
> is  still used [...] for the calculation of label sizes (thus some 
> subtle  discreptancies in label placement, mostly visible if using a 
> label
>  backgroundcolor)":
>
>  http://lists.osgeo.org/pipermail/mapserver-dev/2008-March/006868.html
>
>  Maybe that's what your running into? Hopefully Thomas will see this 
> and  comment.
>
>  Daniel
>  --
>  Daniel Morissette
>  http://www.mapgears.com/
>
>
> _______________________________________________
>  mapserver-users mailing list
>  mapserver-users at lists.osgeo.org
>  http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list