Hi,
I had the same issue a couple a years ago and made some examples with the help
from this list.
Please find this full example that I brushed up a little today.
https://gist.github.com/LarsSchy/d3a8285f4d06bc47ae358151048ed792
Best regards
Lars Schylberg
15 september 2020 kl. 09:28, "Jörg
Some example urls that makes it easier to test.
Change "/home/lars" to where you placed the files.
http://localhost/cgi-bin/mapserv?
map=/home/lars/style_test/style_test.map
&SERVICE=WMS
&REQUEST=Getmap
&VERSION=1.1.1
&LAYERS=square,circle
&styles=green,grey
&srs=EPSG:4326
&BBOX=0,0,20,15
&FORM
Hi Matt,
this Mapfile
CLASSITEM "POPYTYPE"
CLASSGROUP 'grey'
CLASS
GROUP 'grey'
NAME "Grenze"
EXPRESSION /./
STYLE
OUTLINECOLOR 128 128 128
WIDTH 3
I don't think that is creating the desired behavior. According the the WMS
specification:
Zero or more Styles may be advertised for a Layer or collection of
layers using elements, each of which shall have and
elements.
The style's Name is used in the Map reques
Unfortunately, that’s not the functionality that I’m looking for…
What I want is to support “&STYLES=default” or “&STYLES=blue” query parameters
resulting in different styling of the same underlying data.
Thanks,
Matt
.
Matthew Cech
We’re using 7.0.1… admittedly a bit of an older version. Mapserver balks on
NAME in the STYLE element in that version.
Thanks,
Matt
.
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engi
I guess you are looking für classgroup:
LAYER
...
CLASSGROUP "group1"
...
CLASS
NAME "name1"
GROUP "group1"
...
END
see https://mapserver.org/mapfile/class.html
Jörg
Am 14.09.20 um 16:56 schrieb Cechini, Matthew F. (GSFC-423.0)[Science
Systems & Applications, Inc.]:
> Unfo
etty: maanantai 14. syyskuuta 2020 17.56
Vastaanottaja: Lime, Steve D (MNIT) ;
mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS
Unfortunately, that’s not the functionality that I’m looking for…
What I want is to support “&STYLES=default” or
Names aren’t valid (or useful) at the style-level. If you remove those lines it
should work and you’ll get stacked styles for each feature. --Steve
From: Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
Sent: Monday, September 14, 2020 7:27 AM
To: Lime, Steve D (MNIT) ;
m