gdal from within Thuban: strange in German (Re: thuban-1.1.0-4.exe)
Bernhard Reiter
bernhard at intevation.de
Mon May 15 11:44:39 CEST 2006
I have found something!
gdal behaves faulty when called within Thuban.
My hypothesis now is:
Gdal that is not save to the C-library behaving differently.
within different locales in Windows.
When I set the behaviour of Windows to English (Great Britian),
at two places in the system control and reboot.
Now it works!
My GNU/Linux version with Gdal 1.3.1.0 does not show this behaviour.
We could look for any setlocale calls within Thuban, its libraries and gdal.
Maybe the wrapper should make sure the locale is "C" when calling
gdal functions.
Didrik,
maybe can you set your locales in Windows to German /Deutsch,
you should also see it fails. This is interesting because then we
both can work on the fix.
Here are more details:
Windows from within Thuban/Model/layer.py RasterLayer.BoundingBox()
geotransform= (0, 1, 0, 0, 0, 1)
rasterlayer.BoundingBox will return: (0, 394, 5002, 0)
GNU/Linux:
geotransform= (-24.550000000000001, 0.002210782287085, 0.0,
66.566666999999995,0.0, -0.0083333350253810001)
Windows, from the command line:
cd c:\programme\thuban\gdal\pymod
c:\python24\python.exe
import gdal, gdalconst
rast = gdal.Open('C:\Programme\Thuban\Data\iceland\island.tif',
gdalconst.GA_ReadOnly)
print rast.GetRasterCount()
is okay!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060515/a258a74a/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)