PiRSquared17 / tilers-tools

Automatically exported from code.google.com/p/tilers-tools
0 stars 0 forks source link

RuntimeError: Failed to lookup UOM CODE 0 #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
./gdal_tiler.py NZ2201.KAP 

What is the expected output? What do you see instead?
Expected the chart to tile correctly as the other charts in this serie does.

Traceback (most recent call last):
  File "./gdal_tiler.py", line 182, in <module>
    main(sys.argv)
  File "./gdal_tiler.py", line 175, in main
    parallel_map(process_src, flatten(res))
  File "/Users/poh/Projects/SailTimer/SailTimer Chart Manager/tilers_tools/tiler_functions.py", line 97, in parallel_map
    return map(func, iterable)
  File "./gdal_tiler.py", line 65, in process_src
    prm.walk_pyramid()
  File "/Users/poh/Projects/SailTimer/SailTimer Chart Manager/tilers_tools/tiler_backend.py", line 668, in walk_pyramid
    self.make_raster(self.max_zoom)
  File "/Users/poh/Projects/SailTimer/SailTimer Chart Manager/tilers_tools/tiler_backend.py", line 625, in make_raster
    base_ds = gdal.Open(vrt_text, GA_ReadOnly)
RuntimeError: Failed to lookup UOM CODE 0

What version of the product are you using?
tiler-tools 3.0

What was the operating system?
MacOSX 10.9
GDAL 1.10
Python 2.7
PIL - latest..

Please provide any additional information below.

Original issue reported on code.google.com by p.ohl...@gmail.com on 20 Dec 2013 at 9:36

Attachments:

GoogleCodeExporter commented 9 years ago

I encountered the same issue while processing SRTM DEM Tiles.
During that, I learned that this occurs only for some particular files. Most 
files work fine. 

The files can be downloaded here:
http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp

Download srtm_01_02.zip to reproduce the error.
http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/srtm_01_02.zip

Or Download srtm_48_02.zip for a working example.
http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/srtm_48_02.zip

What version of the product are you using?

tiler-tools 3.0

What was the operating system?

Sabayon Linux amd64 14.01
GDAL 1.10
Python 2.7
PIL - latest.

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/home/jolloux/lab/color_encode_dem/tools/tiler-tools/gdal_tiler.py", line 180, in <module>
    main(sys.argv)
  File "/home/jolloux/lab/color_encode_dem/tools/tiler-tools/gdal_tiler.py", line 173, in main
    parallel_map(process_src, flatten(res))
  File "/home/jolloux/lab/color_encode_dem/tools/tiler-tools/tiler_functions.py", line 101, in parallel_map
    res = mp_pool.map(func, iterable)
  File "/usr/lib64/python2.7/multiprocessing/pool.py", line 250, in map
    return self.map_async(func, iterable, chunksize).get()
  File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get
    raise self._value
RuntimeError: Failed to lookup UOM CODE 0

Original comment by oslo.s...@gmail.com on 31 Dec 2013 at 5:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It seems to be due to a regression in tiler_global_mercator.py. The quick fix 
is attached.

Original comment by vadp.d...@gmail.com on 11 Feb 2014 at 3:31

Attachments:

GoogleCodeExporter commented 9 years ago
The fix was implemented at tag 3.0.1

Original comment by vadp.d...@gmail.com on 16 Feb 2014 at 12:05