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

Lime, Steve D (MNIT) steve.lime at state.mn.us
Mon Sep 14 07:48:49 PDT 2020


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.] <matthew.f.cechini at nasa.gov>
Sent: Monday, September 14, 2020 7:27 AM
To: Lime, Steve D (MNIT) <steve.lime at state.mn.us>; mapserver-users at lists.osgeo.org
Subject: Re: [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

________________________________
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 Engineer
410.205.6272

From: "Lime, Steve D (MNIT)" <steve.lime at state.mn.us<mailto:steve.lime at state.mn.us>>
Date: Friday, September 11, 2020 at 5:17 PM
To: Matthew Cechini <matthew.f.cechini at nasa.gov<mailto:matthew.f.cechini at nasa.gov>>, "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: [EXTERNAL] RE: Multiple Styles for a LAYER/CLASS

Hi Matt: Actually that syntax is supported (except for the style NAME attribute) and you can have multiple styles inside a class. What version are you using? --Steve

From: mapserver-users <mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>> On Behalf Of Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
Sent: Friday, September 11, 2020 2:37 PM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: [mapserver-users] Multiple Styles for a LAYER/CLASS

________________________________
Greetings,
   I would like to provide multiple styles for the same LAYER/CLASS in our mapserver configuration.  Ideally that looks something like this, though of course this syntax isn’t currently supported.


    CLASS

  NAME "Thermal Anomalies"

         STYLE

             NAME   'default'

             SYMBOL 'circle'

             COLOR  240 40 40

             OUTLINECOLOR  240 40 40

             SIZE 3

         END



         STYLE

             NAME   'blue'

             SYMBOL 'circle'

             COLOR  0 0 255

             OUTLINECOLOR  0 0 255

             SIZE 3

         END

    END

   How would I accomplish this given existing functionality?

Thanks,
Matt
.................................................................
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200914/03cd7e37/attachment-0001.html>


More information about the mapserver-users mailing list