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 <[email protected]> Puolesta 
Ahmet Temiz
Lähetetty: perjantai 4. helmikuuta 2022 15.26
Vastaanottaja: mapserver-users <[email protected]>
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
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to