[Chameleon] Map output color

He, Matt Yubin mhe at itsc.uah.edu
Wed Sep 7 18:06:36 EDT 2005


I added JPL Blue Marble Image Layer in my Chameleon map file, but my
Chameleon application did not show the true color image. I tried to
change the Image Output Format, but couldn't get it right. 

1. My questions are: is there a png24 format? I googled it and some say
it did not work with new Mapserver.  
2. How to change the map file to display true color raster image?

Thanks.


Following is my map file code:

MAP
  EXTENT -104 4 -57 27
  FONTSET "../etc/fonts.txt"
  IMAGECOLOR 255 255 255
  IMAGETYPE png24
  SYMBOLSET "../etc/symbols.sym"
  SHAPEPATH "../data"
  SIZE 750 375
  STATUS ON
  UNITS DD
  NAME "test"

  OUTPUTFORMAT
    NAME png
    MIMETYPE image/png
    DRIVER GD/PNG
    EXTENSION png
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END

OUTPUTFORMAT
   NAME png24
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE rgb
END

.....
.....
.....

LAYER
    CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
    CONNECTIONTYPE WMS
    DUMP TRUE
    MAXSCALE 2.0044e+007
      METADATA
        "wms_srs"	"EPSG:4326 AUTO:42003"
        "wms_onlineresource"	"http://wms.jpl.nasa.gov/wms.cgi?"
        "wms_latlonboundingbox"	"-180 -90 180 90"
        "layer_index"	"35"
        "wms_name"	"modis"
        "wms_format"	"image/png24"
        "wms_formatlist"	"image/png24,image/jpeg"
        "selected"	"0"
        "LEGEND_ORDER"	"35"
        "wms_server_version"	"1.1.1"
        "wms_title"	"Blue Marble, Global MODIS derived image"
      END
    MINSCALE 1.0022e+006
    NAME "LandSat-modis"
    PROJECTION
      "init=epsg:4326"
    END
    SIZEUNITS PIXELS
    STATUS ON
    TEMPLATE "blank.html"
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TYPE RASTER
    UNITS METERS
  END

 
END









More information about the Chameleon mailing list