[gdal-dev] Something wrong with writing a big raster into PDF

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Fri Mar 7 02:42:13 PST 2014


Hi,

I can't make usable pdf files from some original maps and I do not
understand what goes wrong.
I am testing on Windows 7 and GDAL-dev from gisinternals, both 32 and 64
bit. Images are like this one:

http://kartat.kapsi.fi/files/taustakarttasarja/taustakartta_80/5m/etrs89/png/UM5L.png

Command can be simplified to
gdal_translate -of pdf UM5L.png UM5L.pdf
Everything seems to go alright and gdalinfo shows normal information from
the pdf. However, if I open the UM5L.pdf file with Acrobat Reader it does
not show a map. Everything is just pure white.

I planned to check what happens if read the map back from pdf as
gdal_translate -of gtiff um5l.pdf um5l.tif
After fifteen minutes I estimate that the output will be ready after an hour
or so which is all too slow for a Corei7 CPU and 8GB of RAM.
 
I had another try with the same binaries with a small png file (2000x2000
pixels) and conversion into pdf was fast and successful. Is there perhaps
something that does not scale up properly when the raster size gets bigger?

-Jukka Rahkonen-





More information about the gdal-dev mailing list