Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

2020-09-15 Thread lars . schylberg
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,

Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

2020-09-15 Thread lars . schylberg
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 =WMS =Getmap =1.1.1 =square,circle =green,grey =EPSG:4326 =0,0,20,15 =image/png =200 =150

Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

2020-09-15 Thread WhereGroup
Hi Matt, this Mapfile CLASSITEM "POPYTYPE" CLASSGROUP 'grey' CLASS GROUP 'grey' NAME "Grenze" EXPRESSION /./ STYLE OUTLINECOLOR 128 128 128 WIDTH 3

Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

2020-09-14 Thread Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
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 </span> </blockquote><br> <h3><span class=subject><a href="/mapserver-users@lists.osgeo.org/msg27214.html">Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=mapserver-users%40lists.osgeo.org&q=date:20200914&o=newest">2020-09-14</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject:%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for+a%09LAYER%5C%2FCLASS%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=mapserver-users%40lists.osgeo.org&q=from:%22Cechini%2C+Matthew+F.+%5C%28GSFC%5C-423.0%5C%29%5C%5BScience+Systems+%5C%26+Applications%2C+Inc.%5C%5D%22&o=newest">Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]</a></span> </div> <blockquote><span class="msgFragment"> Unfortunately, that’s not the functionality that I’m looking for… What I want is to support “=default” or “=blue” query parameters resulting in different styling of the same underlying data. Thanks, Matt . Matthew Cechini </span> </blockquote><br> <h3><span class=subject><a href="/mapserver-users@lists.osgeo.org/msg27213.html">Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=mapserver-users%40lists.osgeo.org&q=date:20200914&o=newest">2020-09-14</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject:%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for+a%09LAYER%5C%2FCLASS%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=mapserver-users%40lists.osgeo.org&q=from:%22Cechini%2C+Matthew+F.+%5C%28GSFC%5C-423.0%5C%29%5C%5BScience+Systems+%5C%26+Applications%2C+Inc.%5C%5D%22&o=newest">Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]</a></span> </div> <blockquote><span class="msgFragment"> 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 </span> </blockquote><br> <h3><span class=subject><a href="/mapserver-users@lists.osgeo.org/msg27212.html">Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=mapserver-users%40lists.osgeo.org&q=date:20200914&o=newest">2020-09-14</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject:%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for+a+LAYER%5C%2FCLASS%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=mapserver-users%40lists.osgeo.org&q=from:%22WhereGroup%22&o=newest">WhereGroup</a></span> </div> <blockquote><span class="msgFragment"> 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.]: > </span> </blockquote><br> <h3><span class=subject><a href="/mapserver-users@lists.osgeo.org/msg27211.html">Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=mapserver-users%40lists.osgeo.org&q=date:20200914&o=newest">2020-09-14</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject:%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for%09a%09LAYER%5C%2FCLASS%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=mapserver-users%40lists.osgeo.org&q=from:%22Rahkonen+Jukka+%5C%28MML%5C%29%22&o=newest">Rahkonen Jukka (MML)</a></span> </div> <blockquote><span class="msgFragment">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 “=default” or “=blue” q</span> </blockquote><br> <h3><span class=subject><a href="/mapserver-users@lists.osgeo.org/msg27210.html">Re: [mapserver-users] [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS</a></span></h3> <div class="darkgray font13"> <span class="sender pipe"> <span class=date><a href="/search?l=mapserver-users%40lists.osgeo.org&q=date:20200914&o=newest">2020-09-14</a></span></span> <span class="sender pipe"> <span class=thead><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject:%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for+a%09LAYER%5C%2FCLASS%22&o=newest">Thread</a></span></span> <span class=name><a href="/search?l=mapserver-users%40lists.osgeo.org&q=from:%22Lime%2C+Steve+D+%5C%28MNIT%5C%29%22&o=newest">Lime, Steve D (MNIT)</a></span> </div> <blockquote><span class="msgFragment"> 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) ; </span> </blockquote><br> <h2></h2> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <h2>9 matches</h2> <br> <ul><li><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject%3A%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for+a%09LAYER%5C%2FCLASS%22&a=1&o=newest">Advanced search</a></li></ul> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="mapserver-users@lists.osgeo.org"> <label class="hidden" for="q">Search the list</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search mapserver-users" value="subject:"\[mapserver\-users\] \[EXTERNAL\] RE\: Multiple Styles for a LAYER\/CLASS""> <input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <h2 class="hidden"> Site Navigation </h2> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"> <a href="/mapserver-users@lists.osgeo.org" title="c" id="c">mapserver-users - all messages</a></li> <li class="icons-about"> <a href="/mapserver-users@lists.osgeo.org/info.html">mapserver-users - about the list</a></li> <li class="icons-expand"><a href="/search?l=mapserver-users%40lists.osgeo.org&q=subject%3A%22%5C%5Bmapserver%5C-users%5C%5D+%5C%5BEXTERNAL%5C%5D+RE%5C%3A+Multiple+Styles+for+a%09LAYER%5C%2FCLASS%22&o=newest&f=1" title="e" id="e">Expand</a></li> </ul> </div> <div class="listlogo margintopdouble"> <h2 class="hidden"> Mail list logo </h2> </div> </div> <div class="footer" role="contentinfo"> <h2 class="hidden"> Footer information </h2> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> </ul> </div> <script language="javascript" type="text/javascript"> document.onkeydown = NavigateThrough; function NavigateThrough (event) { if (!document.getElementById) return; if (window.event) event = window.event; if (event.target.tagName == 'INPUT') return; if (event.ctrlKey || event.metaKey) return; var link = null; switch (event.keyCode ? event.keyCode : event.which ? event.which : null) { case 69: link = document.getElementById ('e'); break; } if (link && link.href) document.location = link.href; } </script> </body> </html>