thuban-1.1.0-4.exe

Bernhard Reiter bernhard at intevation.de
Mon May 15 12:27:19 CEST 2006


[taking the liberty to answer on thuban-devel. Assuming it should
have gone there anyway.]

On Sun, May 14, 2006 at 06:18:56PM +0200, Didrik Pinte wrote:
> Le dimanche 14 mai 2006 à 17:54 +0200, Bernhard Reiter a écrit :
> > Am 14. May 2006 um 17:44:49 schrieb Didrik Pinte:
> > > I'll check the version tomorrow on the dev-laptop but i'm nearly sure
> > > they are the same...
> > 
> > I also guess this will not be the problem, 
> > but sometimes we have to check the less likely things.
> 
> Sure. Here it is :
> 
> Currently using:
> 	wxPython 2.6.3.0
> 	Python 2.4.3
> 	PySQLite 2.0.5
> 	SQLite 3.2.7
> 	GDAL 1.3.2.0b2
> 	psycopg - not available

> > > I have a specific problem when loading raster files on Thuban windows
> > > version. I need to change the "Mask type" in the properties of the
> > > raster from bitmap to alpha in order to see the raster correctly. Do you
> > > have something shown when opening the raster ? 
> > 
> > No, I cannot see anything.
> > But I thought opening the raster session from Thuban-Data-1.0.0 was
> > working for you?
> > 
> > I think Jonathan added the alpha code and there was a difference
> > between the various wx version in how to handle the mask.
> 
> It's working fine but only when switching my raster properties to Alpha.
> Running this on my Debian installation, the raster show fine even in
> Bitmap mask mode (but my Debian wxWindows is wxPython 2.6.3.2)

Even with wxPython 2.6.3.2 on windows, this behaviour seems to be the same.
The best would be to write a simply testcase for the wxPython
behaviour and report this to them. It *should* be consistant between
several platforms. However we could think about switching 
the default to alpha anyway if this is available, which would 
avoid the problem for users.

> > > Can you test the gdal files using a simple python script. Something like
> > > this :
> > import gdal
> > rast = gdal.Open('C:\Programme\Thuban\Data\iceland\island.tif')
> > print rast.GetRasterCount()
> > 
> > >>> print rast.GetRasterCount()
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> > AttributeError: Dataset instance has no attribute 'GetRasterCount'
> 
> 
> sorry for the mistake, 

No problem, at that point I just did not have the time to inquire.

> the correct script is the following :
> 
> import gdal
> rast = gdal.Open('C:\Programme\Thuban\Data\iceland\island.tif')
> print rast.RasterCount
> 
> But your test with gdalinfo confirms that gdal seems to work correctly.

Yes, it does outside of Thuban. ;)
-------------- 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/9827a5bf/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)