24-bit image is rendered in greyscale when using CLASS in LAYER

Julien, Heryk hjulien at NRCAN.GC.CA
Mon Feb 27 13:15:51 EST 2006


Hi,

When I add a class item to my raster layer my 24bit RGB tif is rendered in
greyscale. I need the class item in order to generate a legend item in my
ogc wms capabilities. In the following bugzilla report a similar problem is
flagged as fixed however I am using mapserver 4.5 and 4.8.1 and both
versions have the same bug. 

 

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270
<http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270> 

 

Anyone has an idea of what is going on?

 

 

Example:

 

LAYER

  NAME "d1_1960_et_ws"

  DEBUG ON

  STATUS ON

  GROUP "Evapotranspiration"

  DATA "d1_1960_et_ws.tif"

  TYPE RASTER

  PROJECTION

   "init=epsg:42304"

  END

  DUMP TRUE

  TEMPLATE "tmpl"

  MINSCALE 1000000

  MAXSCALE 1000000000

  TOLERANCE 30

  METADATA

   "ows_title" "Annual land evapotranspiration estimate for Canada 1960"

   "ows_group_title" "Annual land evapotranspiration estimate for Canada"

   "ows_group_abstract" "Annual land evapotranspiration estimate for Canada"

   "ows_abstract" "to do..."

   "ows_keywordlist"  "water, evaporation, evapotranspiration,
transpiration"

   "wms_opaque" "1"

#   "ows_extent" "-101.0542 18.4369 -80.5434 31.5619"

   "ows_metadataurl_type" "FGDC"

   "wms_metadataurl_format" "text/html"

   "ows_metadataurl_href" "http://adaptation.nrcan.gc.ca/"

   "wms_dataurl_format" "text/plain"

   "wms_dataurl_href" "http://adaptation.nrcan.gc.ca/"

   "gml_include_items" "all"

  END

  CLASS

   NAME "Scale"

   KEYIMAGE "../geo/ResEau/d1_1960_et_wsleg.tif"

  END

 END

 

 

Cheers 

Héryk

 

 

_____________________________

Héryk Julien

Professionel de recherche / Research Officer

Ressources naturelles Canada / Natural Resources Canada

490 rue de la Couronne

Québec, Qc, G1K 9A9

Canada

Tél./Phone (418) 654-2655 

Télécopieur/Fax (418) 654-2615 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060227/90d3dd21/attachment.html


More information about the mapserver-users mailing list