[mapserver-users] Force labels uppercase

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Oct 12 05:32:47 PDT 2017


Hi,

By trial and error and with a little help from http://www.mapserver.org/mapfile/expressions.html#expressions this line gives me a lowercase label

TEXT (lower("[ATTRIBUTE]"))

Looks rather similar to your request despite that I have TEXT and  I counted the brackets to match.

-Jukka Rahkonen-


-----Alkuperäinen viesti-----
Lähettäjä: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Anton Bakker
Lähetetty: 12. lokakuuta 2017 14:59
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Force labels uppercase

Hi list,

I am trying to set a label to uppercase in my mapfile (example https://i.imgur.com/ExRZhia.png). Seems it is already implemented (https://github.com/mapserver/mapserver/issues/4255), but I cannot figure out how use it.

The comments in the issue seem to hint at an expression element in the label element:

LABEL
  TYPE TRUETYPE
  ALIGN LEFT
  ANGLE AUTO
  ANTIALIAS TRUE
  BUFFER 2
  COLOR 107 107 108
  FONT arial
  MINDISTANCE 200
  MINFEATURESIZE AUTO
  PARTIALS FALSE
  POSITION AUTO
  PRIORITY 10
  SIZE 14
  EXPRESSION (upper("[NAME]")
END

But this did not work for me. Anybody knows how to force labels to appear in uppercase? 

Thanks!

Kind regards,
Anton

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the MapServer-users mailing list