[mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR

thomas bonfort thomas.bonfort at gmail.com
Fri Jan 28 03:32:13 EST 2011


Stephan,

I'm sorry, this isn't documented yet (to my knowledge), but should be
rather soon (see http://trac.osgeo.org/mapserver/ticket/3609)

the other GEOMTRANSFORM option you can use is LABELPNT, which will
apply the current STYLE to a point feature centered on the label
point. This should allow to completely remove the need for ANNOTATION
layers.

regards,

thomas

On Fri, Jan 28, 2011 at 09:22, Stephan Holl <stephan.holl at intevation.de> wrote:
> Hello thomas,
>
> thomas bonfort <thomas.bonfort at gmail.com>, [20110128 - 08:23:31]
>
>> Before starting to implement something extensive around label
>> BACKGROUNDCOLOR, you should be aware that this keyword will not be
>> supported anymore starting from version 6.0.
>>
>> it is replaced with a
>>
>> STYLE
>>   GEOMTRANSFORM LABELPOLY
>>   COLOR r g b
>> END
>>
>> which greatly extends the possibilities of styling the label
>> background (e.g. outlinecolor, symbol, offset, opacity, etc...), as
>> all the keywords relating to STYLE are applicable.
>
> Interesting, could you point me to the documentation of the
> GEOMTRANSFORM-stuff? I could not find anything on the net.
>
> TIA
>
>        Stephan
>
>
>> On Thu, Jan 27, 2011 at 22:55, Jean-François Gigand
>> <jean-francois at gigand.fr> wrote:
>> > Use one CLASS for each colour used, set them to depend on your
>> > attribute and repeat the LABEL definition for each of them.
>> > If you the number of colours is limited, this would probably be a
>> > solution.
>> >
>> > Jeff
>> >
>> > 2011/1/27 tommaso <tommasodb at googlemail.com>:
>> >>
>> >>
>> >> On Thu, 2011-01-27 at 16:47 +0100, Julien Cigar wrote:
>> >>
>> >> use SLD ?
>> >>
>> >> Thanks, this were a solution but I should radically change my
>> >> project. I will try it if there is not other ways.
>> >> Other ideas?
>> >>
>> >> Tommaso
>> >>
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> mapserver-users mailing list
>> >> mapserver-users at lists.osgeo.org
>> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >>
>> >>
>> > _______________________________________________
>> > mapserver-users mailing list
>> > mapserver-users at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
> Stephan Holl <stephan.holl at intevation.de> | Tel.: +49 (0)541-33 508 3663
> Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998
> Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
>


More information about the mapserver-users mailing list