[ka-Map-users] PNGs work on Windows but not on Linux

Melanie Ritzau MelanieRitz78 at web.de
Mon Mar 19 10:03:19 EST 2007

Sorry for posting twice - I forgot the Subject-title.

Hello Norbert,

thank you very much for your help. I think my problem is different because my Output-format is JPEG and my Kamap-Installation can display all Mapfile-Layers except those where the INPUT-Files are PNGs. I get this Error Message when I use this URL: http://localhost/kamap/tile.php

Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Oceans Bathymetry 4KM'. in /home/username/fgs/apps/ka-map-1.0-20070123/htdocs/tile.php on line 298

Warning: [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image format in /home/username/fgs/apps/ka-map-1.0-20070123/htdocs/tile.php on line 298

Warning: [MapServer Error]: drawEPP(): /media/MS_DATEN/oceans-bathymetry-4km/Oceans-Bathymetry-4KM_A2.png is not an EPPL file. in /home/spartakus1/fgs/apps/ka-map-1.0-20070123/htdocs/tile.php on line 298

Fatal error: Call to a member function on a non-object in /home/username/fgs/apps/ka-map-1.0-20070123/htdocs/tile.php on line 299

So Kamap can not LOAD the PNGs. As I said with other clients (using the mapserv - command) the same mapfile (on same machine) works with PNGs. This means the
Mapserver-Installation should be OK.



Hi Melanie,

First, sorry for my english.

I don't know if your problem is exactly the same, but few days ago I have similar symptoms.

A very great guy (Thank you Eddy) helped me : First I have installed the "Firebug" extension for Firefox web browser, witch detect errors on pages. After loading my ka-map site (a white srceen ...) I use Firebug to do a "inspection". On this inspection I grab the picture URL that the browser try to load. It was a link like :
"<img width="256" height="256"
style="position: absolute; top: 256px; left: 0px; width: 256px;
height: 256px; visibility: visible;" id="i5"/>"

I copy the specified URL ("http://localhost/kamap/tile.php?map=gmap&t=-256&l=-512&s=25000000&g=__base__&i=png") on my browser and try to load it. an error message explain to me that the lib_gd was not able to create the output file ...

My linux server is a debian and your's is a ubuntu, witch is debian based too.
The problem was the GD library used to create picture files. The standard library installed by the standard debian packages management tool ("apt-get") is called "libgd2-dev". I solved my problem by an uninstallation of the package and a complete new installation FROM SOURCE with a fresh downloaded version of th GD library (from http://www.libgd.org). After you have to rebuild (from source) PHP and mapserver.

If you want more details, write me.


-----Original Message-----
From: Melanie Ritzau <MelanieRitz78 at web.de>
To: ka-map-users at lists.maptools.org
Date: Mon, 19 Mar 2007 13:04:37 +0100
Subject: [ka-Map-users] PNGs work on Windows but not on Linux

Hello List,

I have a problem that is driving me crazy. I ported a Kamap-Installation from Windows to Linux (Ubuntu 6.10 with FGS ka-map-1.0-20070123). On Windows everything is running perfectly. The Mapserver Mapfile loads from different data-sources: ECWs, PNGs and Shapefiles. Outputformat in Mapfile and Kamap is JPEG.
When I use the same Mapfile (with adjusted Pathes) on the Linux-Server everything works and is displayed except the PNGs. I am trying for many hours now but I can't get Kamap to load these PNG-files. The only PNG that shows up is the Keymap-PNG.
When I use the same Mapfile on the Linux-Server without Kamap (e.g. with a PHP-Reflector for Google Earth) all is shown correctly including the PNGs - so it must be a problem with Kamap.

What might be the reason for this ??

Thank you very, very much for any help.

Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!

More information about the ka-Map-users mailing list