[mapserver-users] More Labels on a layer

Andrea Peri aperi2007 at gmail.com
Tue Oct 30 08:00:45 PDT 2012


Hi,
I notice also that the dcumentiation
say of element TEXT on the CLASS section but don't speak anything about the
choice to put the TEXT element in the LABEL section.

Instead it is possible on the mapserver 6.2 and is necessary to have
multiple labels on the same class.

    CLASS
      NAME 'class-name'
      LABEL
        TEXT '[field-1]'
        ..
      END
      LABEL
        TEXT '[field-2]'
        ..
      END
    END


Regards,

2012/10/30 Havard Tveite <havard.tveite at umb.no>

> Dear Steve,
>
> FYI, I have now documented the possibility for multiple labels
> in a class (updated the class document in master).
>
> Håvard
>
>
> On 10/30/2012 3:37 PM, Andrea Peri wrote:
>
>> Hi Steve,
>>
>> It work greatly.
>>
>> I was not understand that on a class can put more than one LABEL.
>>
>> Andrea.
>>
>>
>> 2012/10/30 Lime, Steve D (DNR) <Steve.Lime at state.mn.us <mailto:
>> Steve.Lime at state.mn.us**>>
>>
>>
>>     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><mailto:
>> mapserver-users-**bounces at lists.osgeo.org<mapserver-users-bounces at lists.osgeo.org>>
>> [mapserver-users-bounces@**lists.osgeo.org<mapserver-users-bounces at lists.osgeo.org><mailto:
>> mapserver-users-**bounces at lists.osgeo.org<mapserver-users-bounces at lists.osgeo.org>>]
>> on behalf of Andrea Peri [aperi2007 at gmail.com <mailto:aperi2007 at gmail.com
>> >]
>>
>>     Sent: Tuesday, October 30, 2012 6:20 AM
>>     To: mapserver-users at lists.osgeo.**org<mapserver-users at lists.osgeo.org><mailto:
>> mapserver-users at lists.**osgeo.org <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 àèìòù
>>     -----------------
>>
>>
>>
>>
>>
>> --
>> -----------------
>> Andrea Peri
>> . . . . . . . . .
>> qwerty àèìòù
>> -----------------
>>
>>
>>
>> ______________________________**_________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.**org <mapserver-users at lists.osgeo.org>
>> http://lists.osgeo.org/**mailman/listinfo/mapserver-**users<http://lists.osgeo.org/mailman/listinfo/mapserver-users>
>>
>
> --
> Håvard Tveite
> Department of Mathematical Sciences and Technology, UMB
> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
>



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121030/09f29be6/attachment.html>


More information about the mapserver-users mailing list