FW: [UMN_MAPSERVER-USERS] dynamic colors in mapfile
Matthew Perry
perrygeo at GMAIL.COM
Thu Sep 15 02:08:03 PDT 2005
Gerjan,
A simple alternative to SLD would be to append the following to your map
request :
&map_road_Roads_color=255+255+0
where "road" is the LAYER NAME, "Roads" is the CLASS NAME, and 255+255+0 are
the RGB values respectively.
just for reference, the mapfile entry would look like:
LAYER
NAME road
TYPE LINE
STATUS OFF
DATA road.shp
CLASS
NAME "Roads"
SYMBOL 0
COLOR 220 0 0
END
END # Layer
Of course this does not have the power of SLD but it gets the job done.
matt
On 9/15/05, Gerjan Walrecht <WalrechtG at vertis.nl> wrote:
>
> Bart,
>
> To be honest we hadn't looked at this before, looks useful, but at the
> moment we do not want to use an extra XML file only to pass a parameter.
> (Where do were put the file, etc). Would you also happen to know how to file
> a RFC?
>
> Gerjan
>
> -----Oorspronkelijk bericht-----
> Van: bartvde at xs4all.nl [mailto:bartvde at xs4all.nl <bartvde at xs4all.nl>]
> Verzonden: donderdag 15 september 2005 9:41
> Aan: Gerjan Walrecht
> CC: mapserver-users at lists.umn.edu
> Onderwerp: Re: [UMN_MAPSERVER-USERS] dynamic colors in mapfile
>
> Why not use the WMS SLD (Styled Layer Descriptor) interface of Mapserver
> for that?
>
> http://mapserver.gis.umn.edu/doc46/sld-howto.html
>
> Best regards,
> Bart
>
> > Hello List,
> >
> >
> >
> > Currently we are developing an Mapserver web application which demands
> > that
> > users can change the colors of the generated map (after refreshing the
> map
> > of course). We therefore wanted to use variables in the mapfile:
> >
> >
> >
> > ...
> >
> > COLOR '%color1%'
> >
> > ...
> >
> >
> >
> > But unfortunately this is impossible, or are we overlooking something?
> If
> > not, I would like to make a RFC for this, but I haven't figured out how
> to
> > do this, is there a procedure/documents to make a Request for change
> > (RFC)?
> >
> >
> >
> > Thanks in advance!
> >
> > Gerjan
> >
> >
> >
> >
>
>
--
Matt Perry
perrygeo at gmail.com
http://www.perrygeo.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050915/b4a1c38f/attachment.htm>
More information about the MapServer-users
mailing list