[FWTools] gdal2tiles: Working Version?
Gregory Yetman
gyetman at ciesin.columbia.edu
Fri Apr 10 14:21:22 EST 2009
Hi,
I wanted to try the gdal2tiles function in FWTools but it seems to be
broken with the latest FWTools. Is there a version where it is known to
work? I think that the issue is because of changes in GDAL at 1.7 but
I'm not sure how to tell which version of GDAL comes with FWTools short
of downloading and installing them.
I've including details of the problem with gdal2tiles in FWTools 2.3.1
(Windows) below.
Thanks,
Greg
Command issued was:
gdal2tiles --s_srs=EPSG:4326 --zoom=6 --force-kml
--url=http://localhost:8080/ --webviewer=none Population_Density_2005.tif
gdal2tiles.py: error: This version of GDAL is not supported. Please
upgrade to 1.6+.
gdal2tiles.py seems to be breaking here (line 537):
try:
if (self.options.verbose and self.options.resampling == 'near'): or
gdal.TermProgress_nocb:
pass
except:
self.error("This version of GDAL is not supported. Please upgrade
to 1.6+.")
If I remove the gdal.TermProgress condition I get an message that the
average method is not supported:
gdal2tiles.py: error: 'average' resampling algorithm is not available.
I tried specifying the 'near' method, it fails on GetMaskBand():
Traceback (most recent call last):
File "C:\PROGRA~2\FWTOOL~1.1\bin\gdal2tiles.py", line 2136, in ?
gdal2tiles.process()
File "C:\PROGRA~2\FWTOOL~1.1\bin\gdal2tiles.py", line 470, in process
self.open_input()
File "C:\PROGRA~2\FWTOOL~1.1\bin\gdal2tiles.py", line 809, in open_input
self.alphaband = self.out_ds.GetRasterBand(1).GetMaskBand()
AttributeError: Band instance has no attribute 'GetMaskBand'
--
--------------------------------------------------------------------
Gregory Yetman
Senior Staff Associate
Center for International Earth Science Information Network (CIESIN)
Columbia University
URL: http://www.ciesin.columbia.edu/
e-mail: gyetman (at) ciesin.columbia.edu
tel: (845) 365-8982
--------------------------------------------------------------------
More information about the FWTools
mailing list