[mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Hallo everybody, the background color of labels cannot be changed dynamically via attribute binding or CGI parameters, is right? Is there a workaround for this? Regards, Tommaso ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
use SLD ? On 01/27/2011 16:42, tommaso wrote: Hallo everybody, the background color of labels cannot be changed dynamically via attribute binding or CGI parameters, is right? Is there a workaround for this? Regards, Tommaso ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. <>___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
tommaso wrote: 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? use SLD_BODY? -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
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 : > > > 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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
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. regards, thomas On Thu, Jan 27, 2011 at 22:55, Jean-François Gigand 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 : >> >> >> 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@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Hello thomas, thomas bonfort , [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 > 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 : > >> > >> > >> 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@lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > ___ > > mapserver-users mailing list > > mapserver-users@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Stephan Holl | 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 signature.asc Description: PGP signature ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
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 wrote: > Hello thomas, > > thomas bonfort , [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 >> 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 : >> >> >> >> >> >> 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@lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > ___ >> > mapserver-users mailing list >> > mapserver-users@lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> ___ >> mapserver-users mailing list >> mapserver-users@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Stephan Holl | 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 > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Been on a short holiday, where did this get left? If you can hack the source it's a very simple change (I think) to maplexer.l to allow the updates you need. I can provide more direction if necessary. - Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommaso [tommas...@googlemail.com] Sent: Thursday, January 27, 2011 11:55 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Hallo Steve, I can try to hack the source (or rather I'll ask a workmate). More details were welcome, thanks. Regards, Tommaso On Mon, 2011-01-31 at 10:08 -0600, Lime, Steve D (DNR) wrote: > Been on a short holiday, where did this get left? If you can hack the source > it's a very simple change (I think) to maplexer.l to allow the updates you > need. I can provide more direction if necessary. - Steve > > > From: mapserver-users-boun...@lists.osgeo.org > [mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommaso > [tommas...@googlemail.com] > Sent: Thursday, January 27, 2011 11:55 AM > To: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR > > 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
Actually I just ran a test against 5.6 and found I could change a labels background color via URL. Syntax is: map.layer[some_layer].class[0]=LABEL+BACKGROUNDCOLOR+255+0+0+END Steve From: tommaso [tommas...@googlemail.com] Sent: Monday, January 31, 2011 11:36 AM To: Lime, Steve D (DNR) Cc: mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR Hallo Steve, I can try to hack the source (or rather I'll ask a workmate). More details were welcome, thanks. Regards, Tommaso On Mon, 2011-01-31 at 10:08 -0600, Lime, Steve D (DNR) wrote: Been on a short holiday, where did this get left? If you can hack the source it's a very simple change (I think) to maplexer.l to allow the updates you need. I can provide more direction if necessary. - Steve From: mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org> [mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>] On Behalf Of tommaso [tommas...@googlemail.com<mailto:tommas...@googlemail.com>] Sent: Thursday, January 27, 2011 11:55 AM To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> Subject: Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR
thanks Steven this was the right solution. greetings, Tommaso On Tue, 2011-02-01 at 09:07 -0600, Lime, Steve D (DNR) wrote: > Actually I just ran a test against 5.6 and found I could change a labels > background color via URL. Syntax is: > > map.layer[some_layer].class[0]=LABEL+BACKGROUNDCOLOR+255+0+0+END > > Steve > > From: tommaso [tommas...@googlemail.com] > Sent: Monday, January 31, 2011 11:36 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users@lists.osgeo.org > Subject: RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR > > Hallo Steve, > > I can try to hack the source (or rather I'll ask a workmate). More details > were welcome, thanks. > > Regards, > Tommaso > > > On Mon, 2011-01-31 at 10:08 -0600, Lime, Steve D (DNR) wrote: > > > Been on a short holiday, where did this get left? If you can hack the source > it's a very simple change (I think) to maplexer.l to allow the updates you > need. I can provide more direction if necessary. - Steve > > > From: > mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org> > > [mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>] > On Behalf Of tommaso > [tommas...@googlemail.com<mailto:tommas...@googlemail.com>] > Sent: Thursday, January 27, 2011 11:55 AM > To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> > Subject: Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR > > 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users