[Mapserver-users] Raster layers are all gray

Dan Harris coronadh at coronasolutions.com
Tue Nov 11 11:59:52 EST 2003


I have no idea what I'm doing wrong here or if this is a bug.  But, I'm 
trying to display a raster on my map and I've tried it as 8-bit png, 
jpeg, and tiff and it won't render properly.

It is the only layer in the map, so I don't think it's exhausting the 
color palette.  I've tried reducing to 16 colors and it makes the output 
image black instead of gray (is this a clue?).  So I can tell that 
mapserver is rendering the entire output as the "median" color of the 
raster image, but none of the details in the photo actually show up.

I would upgrade to 4.0, but it seems to not mesh with my older GD 
libraries in Debian/stable.

Please help!


Here's the relevant layer in my map file:

LAYER
     NAME "ORTHO"
     DATA "ortho_gray.tiff"
     TYPE RASTER
     STATUS ON
END

..contents of the .wld file:

16.000000
0.000000
0.000000
-16.000000
-79.91460
32.82132


.. a link to the raster file: http://drivefaster.net/images/ortho_gray.tiff

.. a link to what mapserver generates:
http://drivefaster.net/images/output.png


.. my mapserv -v output:
 ./mapserv -v
MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF 
INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE

and ldd output for mapserv ( in case it's a library problem? )

-- /mapserver-3.6.5# ldd mapserv
        libgd.so.2 => /usr/lib/libgd.so.2 (0x40018000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4004e000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4006e000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x400ad000)
        libz.so.1 => /usr/lib/libz.so.1 (0x400d8000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x400e7000)
        libm.so.6 => /lib/libm.so.6 (0x40129000)
        libc.so.6 => /lib/libc.so.6 (0x4014a000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40267000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40275000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)




More information about the mapserver-users mailing list