RuntimeError: `/Users/skippern/Documents/Maps/BSB/00/BlueMarble.kap' not...
Scripts for raster tile sets from digital maps
Brought to you by:
svadim
When running the script, I get the following error. It seems that it isn't able to open the .kap files. I have tried with several files, all with the same result.
INFO:root: /Users/skippern/Documents/Maps/BSB/00/BlueMarble.kap -> /Users/skippern/Documents/Maps/tmp2//BlueMarble
Traceback (most recent call last):
File "../tilers_tools/gdal_tiler.py", line 181, in <module>
main(sys.argv)
File "../tilers_tools/gdal_tiler.py", line 175, in main
parallel_map(process_src, flatten(res))
File "/Users/skippern/Documents/Maps/tilers_tools/tiler_functions.py", line 97, in parallel_map
return map(func, iterable)
File "../tilers_tools/gdal_tiler.py", line 66, in process_src
prm.walk_pyramid()
File "/Users/skippern/Documents/Maps/tilers_tools/tiler_backend.py", line 671, in walk_pyramid
if not self.init_map(self.options.zoom):
File "/Users/skippern/Documents/Maps/tilers_tools/tiler_backend.py", line 271, in init_map
self.get_src_ds()
File "/Users/skippern/Documents/Maps/tilers_tools/tiler_backend.py", line 326, in get_src_ds
src_ds = gdal.Open(self.src_path, GA_ReadOnly)
RuntimeError: `/Users/skippern/Documents/Maps/BSB/00/BlueMarble.kap' not recognized as a supported file format.
Hi Aun! I just checked with some of my own KAP files. Surprisingly for me the code still works fine.
As a matter of fact I decided to relocate this project to https://github.com/vadp/tilers-tools .
If you're still interesed then give it a try.