24 bit image problems
Norman Barker
nbarker at RSINC.COM
Wed Nov 16 06:00:11 PST 2005
Hi,
I have a WMS that is reading 32 bit data, I would like to render this as png24 to get all the colours.
An example is currently at
http://217.37.214.210/cgi-bin/mapserv.cgi?map=/tmp/portrayal/test/test.map&REQUEST=GetMap&FORMAT=png24&WIDTH=640&HEIGHT=480&SRS=EPSG:4326&BBOX=-122.242,37.3957,-122.2,37.4162&VERSION=1.1.1&LAYERS=PCA
The 24 bit mode doesn't seem to be working, any help would be appreciated.
MAP
NAME TEST
STATUS ON
IMAGETYPE png24
IMAGECOLOR 240 240 240
SHAPEPATH "/tmp/portrayal/test"
PROJECTION
"init=epsg:4326"
END
# OUTPUTFORMAT
# NAME png24
# DRIVER "GD/PNG"
# MIMETYPE "image/png"
# IMAGEMODE RGB
# EXTENSION "png"
# END
WEB
IMAGEPATH "/var/www/html/tmp"
IMAGEURL "/tmp/"
METADATA
"ows_title" "test"
"ows_srs" "EPSG:4326"
END
END
LAYER
NAME "PCA"
TYPE RASTER
STATUS ON
DATA "jsp99hym_rad_pca_geo.bil"
END
END
Many thanks,
Norman Barker
More information about the MapServer-users
mailing list