[mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ?

Oliver Christen oliver.christen at camptocamp.com
Fri Feb 22 01:23:51 PST 2013


Hello Steve
I have created a test case and opened a issue:
https://github.com/mapserver/mapserver/issues/4595

as stated in the issue, it is possible the problem is caused by the 
TRUETYPE font itself, but I dont have the knowledge to debug the 
processing inside mapserver to find out.

best regards
Oliver

> Oliver: Any chance you can create a test case and a ticket?
>
> Steve
>
> _______________________________________
>
> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Oliver Christen [oliver.christen at camptocamp.com]
> Sent: Thursday, February 21, 2013 8:40 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] problem with TRUETYPE and GEOMTRANSFORM 'labelpoly': wrong calculation by mapserver ?
>
> hello dear mailinglist
>
> Im having a strange result when using a TRUETYPE symbol used as LABEL,
> with a GEOMTRANSFORM 'labelpoly' to give some background color of my symbol,
>
> the background polygon created by the GEOMTRANSFORM 'labelpoly' is
> smaller than my symbol, ending in a not so great result, as seen on this
> example:
>
> http://dev.camptocamp.com/files/mapserver/test_train_symbol.png
>
> also, the OUTLINECOLOR show some color inside the symbol, something I
> dont understand at all.
>
> if someone could possibly tell me how to adjust the labelpoly size and
> explain me the OUTLINECOLOR behavior in this case, I would be very grateful.
>
> here is the CLASS used to render that layer:
>
>     CLASS
>       LABEL
>         TYPE TRUETYPE
>         FONT HPMDRG
>         SIZE 20
>         ANTIALIAS TRUE
>         COLOR  0 51 153 # dark blue
>         OUTLINECOLOR 255 0 0 # red, just for testing, I dont understand
> why there is an outline inside the symbol
>         STYLE
>           GEOMTRANSFORM 'labelpoly'
>           COLOR 0 255 255 # background cyan rectangle, not the correct size
>         END
>         POSITION cc
>       END
>       TEXT "1"
>     END
>
> Im using mapserver 6.3.0 on debian
>
> thank you for reading this,
> best regards
> Oliver
>
> --
> Camptocamp SA
> Oliver Christen
> PSE A
> CH-1015 Lausanne
>
> www.camptocamp.com
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>


-- 
Camptocamp SA
Oliver Christen
PSE A
CH-1015 Lausanne

www.camptocamp.com

+41 21 619 10 23 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)



More information about the mapserver-users mailing list