gdal from within Thuban: strange in German (Re: thuban-1.1.0-4.exe)
Didrik Pinte
dpinte at itae.be
Mon May 15 11:52:54 CEST 2006
Bernhard Reiter a écrit :
> 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.
Ok, i've changed my localisation to Germany everywhere I could find it
in the Windows configuration :
Then opening the raster sample session :
ERROR 6: Failed to initialize PROJ.4 with `+proj=tmerc +lat_0=-1,#IND
+lon_0=-1,
#IND +k=0,999600 +x_0=500000 +y_0=0 +a=6378206 +b=6356583 +units=m
+no_defs '.
Traceback (most recent call last):
File "C:\thubanbuild\Thuban-1.1.0\Thuban\UI\renderer.py", line 138, in
project
ed_raster_layer
options)
IOError: Error creating destination image for projecting
C:\thubanbuild\Thuban-1
.1.0\Data\iceland\island.tif
Bug identified ;-)
Thank you Bernhard
Didrik
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)