[mapserver-users] raster layer

Stepan Kafka stepan.kafka at centrum.cz
Mon Aug 26 09:40:09 EDT 2002


I am not sure where is the mistake, but I see different map extent in your
map file and WLD file. Also I would reccomend to use TIFF 256 color file
instead of JPEG format (there are the problems with color depth in the MS)
uin the start. Then you may experimet with true color JPEG pictures.

Stepan Kafka

> -----Pùvodní zpráva-----
> Od: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]za uživatele Marian
> Grigoras
> Odesláno: 26. srpna 2002 11:19
> Komu: mapserver-users at lists.gis.umn.edu
> Pøedmìt: [mapserver-users] raster layer
>
>
> 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/ras
> ter.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
>
>
>




More information about the mapserver-users mailing list