[mapserver-users] More Labels on a layer

Havard Tveite havard.tveite at umb.no
Wed Oct 31 01:24:32 PDT 2012


I have now tried to update the mapfile documentation according
to RFC77.  LABEL EXPRESSION and LABEL TEXT have been added.
Se https://github.com/mapserver/mapserver/issues/4127

Håvard

On 10/30/2012 4:00 PM, Andrea Peri wrote:
> 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 <mailto: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> <mailto: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 <mailto:mapserver-users-bounces at lists.osgeo.org> <mailto:mapserver-users-__bounces at lists.osgeo.org <mailto:mapserver-users-bounces at lists.osgeo.org>> [mapserver-users-bounces at __lists.osgeo.org <mailto:mapserver-users-bounces at lists.osgeo.org> <mailto:mapserver-users-__bounces at lists.osgeo.org <mailto:mapserver-users-bounces at lists.osgeo.org>>] on behalf of Andrea Peri [aperi2007 at gmail.com <mailto:aperi2007 at gmail.com> <mailto:aperi2007 at gmail.com <mailto:aperi2007 at gmail.com>>]
>
>         Sent: Tuesday, October 30, 2012 6:20 AM
>         To: mapserver-users at lists.osgeo.__org <mailto:mapserver-users at lists.osgeo.org> <mailto:mapserver-users at lists.__osgeo.org <mailto: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 <mailto: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 <tel:%2B47%2064965483> Fax: +47 64965401 <tel:%2B47%2064965401> http://www.umb.no/imt/
>
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
>

-- 
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/


More information about the mapserver-users mailing list