Thanks Seth!

Yeah, that explains it. Unfortunately implementing this is beyond the scope of my project for now.

Trygve

Den 2025-05-08 15:29, skrev Seth G:
Hi,

GetSyles is unfortunately not supported for raster layers. See the msSLDGenerateSLDLayer function at https://github.com/MapServer/MapServer/blob/25ef061bec310773511eb84ef03f4a91e0f5a081/src/mapogcsld.cpp#L4601
Code would need to be written to create a ColorMap SLD file similar to:

<se:Rule>
<se:RasterSymbolizer>
<se:Opacity>1.0</se:Opacity>
<ColorMap>
<ColorMapEntry color='#00FF00' quantity='3'/>
</ColorMap>
</se:RasterSymbolizer>
</se:Rule>

SLD can however be applied to a RASTER LAYER.

Seth

--
web:https://geographika.net & https://mapserverstudio.net
mastodon: @geographika@mastodon.social

On Thu, May 8, 2025, at 2:59 PM, Trygve Aspenes via MapServer-users wrote:
Thanks Jukka!

It at least shows me it is possible. Is there a way for me to see how
the Layer Mapfile is looking for this continents layer? It might help me
tracking down what I'm doing wrong.

Trygve Aspenes

Den 2025-05-08 13:46, skrev Rahkonen Jukka:
Hi,

I cannot say what makes trouble for you, but like this it should work:

https://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetStyles&layers=continents

-Jukka Rahkonen-

_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to