[mapserver-users] Creation of raster layer legend

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Fri Feb 4 07:18:10 PST 2022


Hi,

Named classes appear in the legend and add least with CLASS-KEYIMAGE you can define the icon for the class.
LAYER
TYPE RASTER
…
CLASS
        NAME "TEST"
        KEYIMAGE "c:\ms4w_data\legend.png"
…
END

-Jukka Rahkonen-



Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Ahmet Temiz
Lähetetty: perjantai 4. helmikuuta 2022 15.26
Vastaanottaja: mapserver-users <mapserver-users at lists.osgeo.org>
Aihe: [mapserver-users] Creation of raster layer legend

Hi,
Is creation of raster layer legend posible ?( with or without wms)

Here is the layer part of my mapfile
  LAYER
    NAME deprem

    METADATA
      "wms_srs" "EPSG:3857 EPSG:4326 "
      "wms_name" "deprem"
      "wms_server_version" "1.1.1"
      "wms_format" "image/png"
    END

    TYPE RASTER ### required
    STATUS OFF
    DATA tr_dep2.tif
    PROCESSING   "BANDS=1"
    PROJECTION
      "init=epsg:3857"
    END

    COMPOSITE
      OPACITY 70
    END

  CLASS
    EXPRESSION ([pixel] >= 0 AND [pixel] < 0.85)
    STYLE
      COLORRANGE 255 237 160  189 0 38
      DATARANGE 0.0 0.85
      RANGEITEM "pixel"
    END
  END
END

regards

--
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem  Dairesi Başkanlığı


________________________

Ahmet Temiz
Geological Eng.

Disaster and Emergency Management
of Presidency
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20220204/89dd27cb/attachment.htm>


More information about the MapServer-users mailing list