[Mapserver-users] 24Bit tiff images displayed in greyscale (no bug 270) and no png files are displayed

Michael Härtel mhaerte1 at gwdg.de
Fri Aug 22 04:47:00 EDT 2003


Hello World!

GIVEN:

precompiled MAPSERVER on WINDOWS XP
(from mapserver-4.0-win32-php4.3.2.zip):

MapServer version 4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

MAPSCRIPT:
($Revision: 1.177 $ $Date: 2003/07/30 19:01:31 $)

GD2 LIBRARY (from phpinfo()):
GD Support enabled
GD Version bundled (2.0.12 compatible)

MAPFILE:
---
OUTPUTFORMAT
      NAME png
      DRIVER "GD/PNG"
      MIMETYPE "image/png"
      IMAGEMODE RGB
      TRANSPARENT OFF
      EXTENSION "png"
END

- snip!-

LAYER
	PROJECTION
		proj=longlat
		ellps=WGS84
		datum=WGS84
		no_defs
	END
	
	NAME "test"
	STATUS OFF
	data "test.png" ### a 24Bit PNG or tif image with world file
	TYPE RASTER
	GROUP "raster background"
		CLASS
			NAME "test" // only to generate legend entry
		END
END
---

PROBLEMS:

1.) 24Bit tiff images are displayed in grayscale although output is RGB
PNG and GD2 is obviously used. I know about "bug" No 270
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270) but even if i
leave out the class defining lines within the mapfile no image is
produced (empty map).

2.) PNG files are not displayed (24 and 8 bit), they are simply empty, a
white image returns.
They seem to be drawn (the legend has an entry for that raster layer),
no error messages available.
My reference map is a png image and the entire map output works fine
with png images as long as no png images are included in layer definitions.

QUESTION:

How can i convince mapserver to display 24Bit images (tiff or png)?







More information about the mapserver-users mailing list