GIF Raster Image Process Problem

Akio Neuchi neuchi at TCI-COM.BIZ
Thu Apr 28 22:59:08 EDT 2005


-----Original Message-----
From: Akio Neuchi [mailto:neuchi at tci-com.biz]
Sent: Friday, April 29, 2005 11:55 AM
To: 'UMN MapServer Users List'
Cc: 'Daniel Morissette'
Subject: GIF Raster Image Process Problem

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. My Vector Layers work
fine on MAP file.
I tried the following definition with every combination of parametres, and
the result was Null, just a shade appeared without image.
I have PostGre, Proj, GD, etc. and GDAL(v1.1.9) enabled on ./config, and the
world file is created with proper coordinate.
Am I doing something basically wrong? Is this a question of ./config,
missing something else?
Please let me have your advices. 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-users mailing list