[Chameleon] Map output color

Paul Spencer pspencer at dmsolutions.ca
Wed Sep 7 18:38:19 EDT 2005


You need to change the format in chameleon.xml in this version of chameleon

Cheers

Paul
-----Original Message-----
From: "He, Matt Yubin" <mhe at itsc.uah.edu>
Date: Wed, 7 Sep 2005 17:06:36 
To:<chameleon at lists.maptools.org>
Subject: [Chameleon] Map output color


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







_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon

Sent on the TELUS Mobility network with BlackBerry  


More information about the Chameleon mailing list