Fwd: [UMN_MAPSERVER-USERS] labeling in differents sizes

Xiaonan Zhang xnzhang11 at GMAIL.COM
Tue Feb 14 07:35:30 EST 2006


Yes, you can use  expressions in .map file.

for exmaple,

LAYER
  NAME city
   ...
  CLASSITEM "Capital"
  CLASS
    EXPRESSION "1"
    TEMPLATE "ttt_query.html"
    SYMBOL 2
    SIZE 8

    NAME "Cities"
    LABEL
      COLOR  255 0 0
      FONT sans-italic
      TYPE truetype
      SIZE 8
      POSITION AUTO
      PARTIALS FALSE
      OUTLINECOLOR 255 255 255
    END
    COLOR 0 0 0
  END
  CLASS
    EXPRESSION /2|3/
    TEMPLATE "ttt_query.html"
    SYMBOL 7
    SIZE 6
    NAME "Cities"
    LABEL
     COLOR  0 0 0
     FONT sans
     TYPE truetype
     SIZE 8
     POSITION AUTO
     PARTIALS FALSE
     OUTLINECOLOR 255 255 255
    END
    COLOR 0 0 0
  END
  TOLERANCE 5
END # Layer

On 14/02/06, Marta Fuster Truyol <martafuster at gmail.com> wrote:
>
> Hi list!
>
> I have a question, is it possible to put different kinds of labels for
> items which are in the same shape? I mean, if I have points in a shape
> that represent cities and i want to put labels with names in diferent
> sizes, depending on the city, is that possible?
>
> thanks a lot!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060214/e69e27f3/attachment.html


More information about the mapserver-users mailing list