Raster image issue

Hooi wchoonhooi at GMAIL.COM
Tue Jun 27 21:17:44 EDT 2006


Hi, all. I am new here.
I access to
http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map
but JPEG was displayed. FYI, I able to see vector image. Need help on this,
thanks.

Below is my mapserver version output:-
MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

I'm using GDAL 1.3.0

Below is output of #gdalinfo /var/www/cgi-bin/data/map.jpg
Driver: JPEG/JPEG JFIF
Size is 2524, 1738
Coordinate System is `'
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 1738.0)
Upper Right ( 2524.0,    0.0)
Lower Right ( 2524.0, 1738.0)
Center      ( 1262.0,  869.0)
Band 1 Block=2524x1 Type=Byte, ColorInterp=Red
Band 2 Block=2524x1 Type=Byte, ColorInterp=Green
Band 3 Block=2524x1 Type=Byte, ColorInterp=Blue

Below is my mapfile :-
MAP
  NAME ITASCA
  STATUS ON
  SIZE 600 600
  EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897
  UNITS METERS
  SHAPEPATH "data"
  IMAGECOLOR 255 255 255
  TEMPLATEPATTERN "itasca"

  IMAGETYPE JPEG

  # Layer objects are defined beneath the map object.  You need at least one
  # layer defined in your map file before you can display a map...  You can
  # define as many layers as you'd like although a limit is typically
hard-coded
  # in map.h in the MapServer source.  The default limit is set at 100.
You'd
  # have to have a very specialized application to need more than 100 layers
in
  # your application.

  # Start of LAYER DEFINITIONS ---------------------------------------------

WEB
    HEADER templates/header.html
    TEMPLATE "set in index.html"
    FOOTER templates/footer.html
    MINSCALE 1000
    MAXSCALE 1550000
    IMAGEPATH "set in index.html"
    IMAGEURL "set in index.html"
    METADATA
      WMS_TITLE "UMN MapServer Itasca Demo"
      WMS_ABSTRACT "This is a UMN MapServer application for Itasca County
located in north central Minnesota."
      WMS_ACCESSCONSTRAINTS "none"

      # change this value to match your setup
      WMS_ONLINERESOURCE "http://localhost/index.html"

      WMS_SRS "EPSG:26915"
    END
  END

LAYER
    NAME lakespy2
    TYPE RASTER
    STATUS ON
    DATA map.tif

    CLASS
      NAME 'Lakes & Rivers'
      TEMPLATE "templates/lakespy2.html"
      STYLE
        COLOR 49 117 185
      END
    END

    HEADER "templates/lakespy2_header.html"
    FOOTER "templates/lakespy2_footer.html"

    TOLERANCE 3

    DUMP TRUE # allow GML export

    METADATA
      WMS_TITLE "Lakes and Rivers"
      WMS_ABSTRACT "DLG lake and river polygons for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html for more
information."
      WMS_SRS "EPSG:26915"
    END
  END # lakes

  LAYER
    NAME dlgstln2
    TYPE LINE
    STATUS OFF
    DATA dlgstln2

    CLASS
      NAME "Streams"
      TEMPLATE "templates/dlgstln2.html"
      STYLE
        COLOR 49 117 185
      END
    END

    HEADER "templates/dlgstln2_header.html"
    FOOTER "templates/dlgstln2_footer.html"

    TOLERANCE 5

    DUMP TRUE # allow GML export

    METADATA
      WMS_TITLE "Streams"
      WMS_ABSTRACT "DLG streams for Itasca County. See
http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html for more
information."
      WMS_SRS "EPSG:26915"
    END
  END # streams
END # All map files must come to an end just as all other things must come
to...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060628/6e5c1fc3/attachment.html


More information about the mapserver-users mailing list