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

 

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to