Martin, I'm sorry. I just found out that GDALDataset::AddBand() is not supported by most format drivers. GeoTiff format driver doesn't support it. Also, having different data types for bands may confuse some applications.
If you are trying to create a mask band, refer to http://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask FYI, 1.5 branch is no longer supported. On Tue, Aug 10, 2010 at 2:03 PM, Martin Raspaud <[email protected]>wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Chaitanya kumar CH skrev: > > Martin, > > > > Yes, it is possible. > > You can specify the data type in GDALDataset::AddBand() > > Hi, > > thanks for your answer. > > Unfortunately, I get the following error: > ERROR 6: Dataset does not support the AddBand() method > > I am using the gtiff driver. > Or was this solved in more recent versions of gdal ? (v. 1.5.3) > > Best regards, > Martin > > > On Tue, Aug 10, 2010 at 12:44 PM, Martin Raspaud <[email protected] > > <mailto:[email protected]>> wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi all, > > > > I'm using gdal/python and I would like to create geotiffs using one > > band of > > bytes and one of float32s... > > > > Is this even possible ? > > > > Thanks, > > Martin > > _______________________________________________ > > gdal-dev mailing list > > [email protected] <mailto:[email protected]> > > http://lists.osgeo.org/mailman/listinfo/gdal-dev > > > > > > > > -- > > Best regards, > > Chaitanya kumar CH. > > /tʃaɪθənjə/ /kʊmɑr/ > > +91-9494447584 > > 17.2416N 80.1426E > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJMYQ7rAAoJEBdvyODiyJI4GREH/j1CI911HGlK8MAMRlbhAtEl > IIeZJbI4nlP/8hpOJWCbQuK+JSV7UJVbjcud0HqeZdjX9rfi7VVxBh1zx6BONtAz > qXIxn0/r/xz+2G4CZJyEIsL8q4w+/vGJZ+9Wz+TR/s4AtQPrEr86PcNu5YBf2jnp > hER54NMenInoEVmxAW0MsrkuHKL5D6mPeq7WYwUTqzCVz6twYZVwyv5IaLDsDblq > jf2pOMir4uEfgrQshik/SxBtVcdJMCIbYvfMJPYgQG+TebgWABJUaDbKxllqrNEf > gAqXu2b7plYCNqibAMYHQTxXrI0aLO4F6Gx2A3+t7dcjsS6Qhz+Q2fY4vMlpvrw= > =Mji/ > -----END PGP SIGNATURE----- > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
