[gdal-dev] "Zoom" parameter causes crash of gdal2tiles.py

Luca Fasano lucafasano at interfree.it
Fri Mar 12 05:39:08 EST 2010


Hi all,
I tested gdal2tiles.py of GDAL 1.6.3 on Debian unsatble.
I noticed that if I use "zoom" parameter, the script crashes.
Example:

$ /usr/bin/python -u /usr/bin/gdal2tiles.py --zoom 3
"/home/userxx/data/data123.N1"
Traceback (most recent call last):
  File "/usr/bin/gdal2tiles.py", line 2136, in <module>
    gdal2tiles.process()
  File "/usr/bin/gdal2tiles.py", line 473, in process
    self.generate_metadata()
  File "/usr/bin/gdal2tiles.py", line 1036, in generate_metadata
    f.write( self.generate_tilemapresource())
  File "/usr/bin/gdal2tiles.py", line 1425, in generate_tilemapresource
    for z in range(self.tminz, self.tmaxz+1):
TypeError: cannot concatenate 'str' and 'int' objects


Did you know that?

Thanks



More information about the gdal-dev mailing list