[mapserver-users] More Labels on a layer

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Tue Oct 30 05:52:28 PDT 2012


A feature can only match 1 class... 6.2 supports multiple labels per class though.

Steve

________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Andrea Peri [aperi2007 at gmail.com]
Sent: Tuesday, October 30, 2012 6:20 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] More Labels on a layer

Hi,
I'm trying to have more distinct label on a single layer,.
To do this I try to set

a classgroup and three class in that group every class use a distinct label.

LAYER
...
 CLASSGROUP "aaa"
..
CLASS
 GROUP "aaa"
 LABEL
  ..
  TEXT "[FIELD1]"
  ..
 END
END
CLASS
 GROUP "aaa"
 LABEL
  ..
  TEXT "[FIELD2]"
  ..
 END
END

But seem that mapserver only apply the first class. I see only the FIELD1 label.

Perhaps mapserver allow only a label for layer ?

Thx,


--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------




More information about the mapserver-users mailing list