GIF Raster Data Problem
Akio Neuchi
neuchi at TCI-COM.BIZ
Wed Apr 27 07:15:57 EDT 2005
Hello to all,
I am still quite new working with MapServer, and this is my first time to
process a Raster Image, especially with GIF files. (Besides, my Vector
Layers work fine on MAP file).
I tried the following definition, and the result was null, just an OFFSITE
color.
Am I doing something basically wrong? Do I need to set GDAL on ./config for
accessing simple GIF files?
Please send me your advice. Thanks in advance for your help.
Akio Neuchi
----------------------------
MAP
NAME rastest
STATUS ON
SIZE 600 700
EXTENT 121.938889 23.442222 149.500001 46.466666
UNITS dd
SHAPEPATH "data"
FONTSET "./fonts/fonts.lst"
#SYMBOLSET "/var/www/html/zoom2it_mapserver/map_symbols/symbols.sym"
IMAGECOLOR 225 240 200
DEBUG ON
IMAGETYPE GIF
#IMAGETYPE PNG
#IMAGETYPE JPEG
#IMAGEQUALITY 400
WEB
EMPTY "/gistest/empty.html"
HEADER decide_route_header.html
TEMPLATE decide_route.html
FOOTER decide_route_footer.html
MINSCALE 0
MAXSCALE 1500000000
IMAGEPATH
/var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/tmp
IMAGEURL /gistest/tmp
LOG
/var/opt/SUNWappserver7/domains/domain1/server1/docroot/gistest/rastest.log
# TEMPLATE "decide_route.html"
METADATA
WMS_TITLE "Raster Map Display Demo"
WMS_ABSTRACT "Created by TCI"
WMS_ACCESSCONSTRAINTS none
END
END
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
OUTPUTFORMAT
NAME gif
MIMETYPE "image/gif"
DRIVER "GD/GIF"
EXTENSION "gif"
IMAGEMODE PC256
# TRANSPARENT FALSE
# FORMATOPTION "INTERLACE=OFF"
END
OUTPUTFORMAT
NAME png
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE PC256
# TRANSPARENT FALSE
END
OUTPUTFORMAT
NAME jpeg
MIMETYPE "image/jpeg"
DRIVER "GD/JPEG"
EXTENSION "jpg"
IMAGEMODE RGB
# TRANSPARENT FALSE
END
# RASTER Layer
LAYER
NAME "RAS365313"
GROUP "B_RASTER"
TYPE RASTER
STATUS ON
# STATUS DEFAULT
# TOLERANCE 5
# TOLERANCEUNITS PIXELS
# OFFSITE 0 0 0
OFFSITE 169 109 154
DATA MS12000DEF365313.gif
# DATA "MS12000DEF365313.png"
# DATA "MS12000DEF365313.jpeg"
CLASS
COLOR 225 200 100
END
DUMP TRUE
DEBUG ON
END
END # Map File
More information about the mapserver-dev
mailing list