Closed GoogleCodeExporter closed 9 years ago
It seems the Gdal 1.7.3 does not Unicode string as a file name (no problem with
gdal 1.8.0).
The fix could actually look something like:
diff -r 3801c135928d tilers_tools/reader_backend.py
--- a/tilers_tools/reader_backend.py Tue Oct 11 09:35:02 2011 +0300
+++ b/tilers_tools/reader_backend.py Tue Oct 11 11:45:09 2011 +0300
@@ -209,7 +209,7 @@
self.img_file=self.get_raster()
logging.info(' %s : %s (%s)' % (self.map.file,self.name,self.img_file))
- self.raster_ds = gdal.Open(self.img_file,GA_ReadOnly)
+ self.raster_ds =
gdal.Open(self.img_file.encode(locale.getpreferredencoding()),GA_ReadOnly)
self.dtm=None
self.refs=self.get_refs() # fetch reference points
Original comment by vadp.d...@gmail.com
on 11 Oct 2011 at 8:45
The fix pushed into the rep
Original comment by vadp.d...@gmail.com
on 11 Oct 2011 at 8:49
Original issue reported on code.google.com by
manim...@gmail.com
on 10 Oct 2011 at 2:35