Error delivering a PNG raster layer
|Reported by:||Holger Albert||Owned by:||Jeff McKenna|
|Component:||MS4W - Base||Version:||3.2.2|
I have encountered an error with the current 3.2.2 release. I have a map file containing a layer with a png file as data. Whenever I try to request the layer to be drawn (either via WMS or directly with the mapserv.exe) I get a emtpy PNG result.
After digging further I have found the following error message:
drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: libpng: bad parameters to zlib
I build a test case to reproduce the error.
The test case consists of a "test.bat", the epsg-file and the map-file (with data).
In the test folder (next to the test.bat), I copied the whole cgi-bin folder of your release.
Then executing the "test.bat" generates a png-file and a test.log as result.
The paths within the "test.bat" and the map-file refer to "C:\test". I was not sure, how to make them relative.
My OS is Windows 7.
Because I could not solve the error, I tried previous versions. The error seems to be connected to the 3.2.X release.
The 3.1.4 release worked. You can test it with the same test case.
Hope that helps finding the problem.