[mapserver-users] SIZEUNITS meters and LABEL size

Geo-6 support at geo6.be
Tue Feb 2 07:41:55 PST 2016


Hi everyone,

 

I'm struggling with SIZEUNITS meters and LABEL size on a "line" layer.

 

Here is a copy of the LAYER :

 

LAYER

  NAME "MajHwys"

  TYPE LINE

  STATUS ON

  DATA "./MajHwys"

  PROJECTION

    "init=epsg:4326"

  END

  SIZEUNITS meters

  LABELITEM "HIGHWAY_NM"

  CLASSITEM "FUNC_CLASS"

  CLASS

    EXPRESSION "1"

    MINSCALEDENOM 35000.0

    STYLE

      COLOR 224 224 224

      WIDTH 30.0

    END # STYLE

    LABEL

      TYPE truetype

      FONT "sc"

      ENCODING UTF-8

      COLOR 128 128 128

      OUTLINECOLOR 255 255 255

      SIZE 36.0

      PARTIALS FALSE

    END # LABEL

  END # CLASS

END # LAYER

 

The line is drawn correctly in meters but, although the documentation
specify that the LABEL SIZE is defined in pixels for TrueType
(http://mapserver.org/mapfile/label.html#size), I can’t change the size of
my LABEL’s. The LABEL SIZE seems to « follow » the WIDTH of my line.

 

I tried MINSIZE, MAXSIZE, MINWIDTH, and MAXWIDTH but can’t figure out what’s
wrong in my mapfile.

 

Does anyone have any idea that can fix my problem ?

Thanks a lot.

 

PS : I use MapServer 7.0.0

 

Jonathan Beliën

GEO-6

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160202/70dbeacf/attachment.html>


More information about the mapserver-users mailing list