[Mapserver-users] 24Bit tiff images displayed in greyscale (no bug 270) and no png files are displayed
Pericles S. Nacionales
nacional at cbs.umn.edu
Mon Aug 25 09:41:24 PDT 2003
Have you tried specifying "IMAGETYPE PNG24" instead of defining the
outputformat? Or try changing the driver to "GD/PNG24"?
Try the first option and see it it works for you. I don't know if the
driver bit is correct or not as I never have to do it.
Good luck!
-Perry N.
On Fri, 2003-08-22 at 03:47, Michael Härtel wrote:
> 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)?
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
Pericles S. Nacionales <nacional at cbs.umn.edu>
University of Minnesota
More information about the MapServer-users
mailing list