[mapserver-users] raster layer
   
    Marian Grigoras
     
    marian.grigoras@mchp.siemens.de
       
    Mon, 26 Aug 2002 11:18:51 +0200
    
    
  
I am trying to display a JPG as a raster layer.
What I get is the gray image (128,128,128). No sign of JPG.
Could someone tell me what I do wrong?
MapServer is running on a RedHat 7.3 computer (in case this makes any
difference).
Thank you,
Marian Grigoras
Note: The EXTENT information is just some dummy data. He asked for it,
but it does not have any real meaning. Could this cause my problem?
-------- RASTER.HTML -------
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  <head>
    <title>Raster test page</title>
  </head>
  <body>
    <p>Test: raster image</p>
    <img border="1"
src="http://localhost/cgi-bin/mapserv?map=/var/www/html/raster/raster.map&layer=photo&mode=map">
  </body>
</html>
------- RASTER.MAP --------
NAME RASTER1
EXTENT 74000 4775000 798000 5500000
SIZE 834 627
SHAPEPATH "/var/www/html/raster"
UNITS meters
IMAGECOLOR 128 128 128
IMAGETYPE jpeg
IMAGEQUALITY 100
LAYER
  NAME "map1"
  TYPE RASTER
  STATUS ON
  DATA "map1.jpg"
  CLASS
    NAME "map1"
  END
END # Layer
END # Map File
--------- MAP1.WLD --------
1.0
0.0
0.0
1.0
50.0
50.0