[mapserver-users] Problems displaying tiffs and jpegs

Nicole Bömeke bon at ivv-aachen.de
Fri Apr 19 05:07:07 PDT 2002


Just for testing, I now tried to display images in .jpg format instead of
.tif format.
But I got the same result - nothing shows up. I think I'm doing something
really wrong.

I used the jpegs created through mapserver in the /temp/ directory (output
IMAGETYPE JPEG).
After converting them to greyscale images with Paint Shop Pro, I had two
jpeg images
country.jpg and lakes.jpg. In the world files for these jpegs, I used the
minx and the
maxy extend from the shapefiles.

country.wld:
-----------------
0.6
0.0000000000
0.0000000000
-0.6
388107.634400379
5310243.30613897

lakes.wld:
-----------------
0.6
0.0000000000
0.0000000000
-0.6
393234.393701
5303964.87675

To display the jpegs I modified the .map file from the demo like this:

#
# Start of layer definitions
#

LAYER
  NAME ctybdpy2
  TYPE RASTER
  STATUS DEFAULT
  DATA country.jpg
END

LAYER
  NAME lakespy2
  TYPE RASTER
  STATUS OFF
  DATA lakes.jpg
  CLASS
    COLOR 49 117 185
  END
END

It would be gread, if you could help me, because by now I'm really stuck.
Thanks, Nicole.

--------------------------------------------------------------------------
Nicole Bömeke
IVV Aachen
Germany
bon at ivv-aachen.de

-----Original message-----
>>> Nicole Bömeke <bon at ivv-aachen.de> 04/12/02 01:48 AM >>>
>
> 1.) I read about an example called landsat (that uses tiffs), but I
>     can't find a link to it anywhere.
>     Can anybody tell me where I can get it or send a zipped copy of
>     it to my mail adress?
>
> 2.) Are there other examples using tiffs available? I need a tiff and
>     a corresponding word file
>     that is known to work with mapserver.
>
> 3.) I have the problem that my tiff does not show up.
>     It is an 8 Bit uncompressed tiff with size 600 x 600.
>
>     I used a world file like this:
>     0.6
>     0.0000000000
>     0.0000000000
>     -0.6
>     400000.00
>     5255555.00
>
>     To try it, I replaces the background layer of the itasca example
>     by this layer definition:
>     LAYER
> 	  NAME ctybdpy2
> 	  TYPE RASTER
> 	  STATUS DEFAULT
>       DATA test.tif
>     END
>
>     Has anybody an idear what I can do?
>     Thanks, Nicole.
>
> --------------------------------------------------------------------------
--
>     Nicole Bömeke
>     IVV Aachen
>     Germany
>     bon at ivv-aachen.de




More information about the MapServer-users mailing list