Martin,<br><br>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.<br>
<br>If you are trying to create a mask band, refer to <a href="http://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask">http://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask</a><br><br>FYI, 1.5 branch is no longer supported.<br>
<br><br><div class="gmail_quote">On Tue, Aug 10, 2010 at 2:03 PM, Martin Raspaud <span dir="ltr"><<a href="mailto:martin.raspaud@smhi.se" target="_blank">martin.raspaud@smhi.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>Chaitanya kumar CH skrev:<br>
<div>> Martin,<br>
><br>
> Yes, it is possible.<br>
> You can specify the data type in GDALDataset::AddBand()<br>
<br>
</div>Hi,<br>
<br>
thanks for your answer.<br>
<br>
Unfortunately, I get the following error:<br>
ERROR 6: Dataset does not support the AddBand() method<br>
<br>
I am using the gtiff driver.<br>
Or was this solved in more recent versions of gdal ? (v. 1.5.3)<br>
<br>
Best regards,<br>
Martin<br>
<div><br>
> On Tue, Aug 10, 2010 at 12:44 PM, Martin Raspaud <<a href="mailto:martin.raspaud@smhi.se" target="_blank">martin.raspaud@smhi.se</a><br>
</div><div>> <mailto:<a href="mailto:martin.raspaud@smhi.se" target="_blank">martin.raspaud@smhi.se</a>>> wrote:<br>
><br>
> -----BEGIN PGP SIGNED MESSAGE-----<br>
> Hash: SHA1<br>
><br>
> Hi all,<br>
><br>
> I'm using gdal/python and I would like to create geotiffs using one<br>
> band of<br>
> bytes and one of float32s...<br>
><br>
> Is this even possible ?<br>
><br>
> Thanks,<br>
> Martin<br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
</div>> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a> <mailto:<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<div>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Chaitanya kumar CH.<br>
> /tʃaɪθənjə/ /kʊmɑr/<br>
> +91-9494447584<br>
> 17.2416N 80.1426E<br>
<br>
</div><div>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
</div>iQEcBAEBAgAGBQJMYQ7rAAoJEBdvyODiyJI4GREH/j1CI911HGlK8MAMRlbhAtEl<br>
IIeZJbI4nlP/8hpOJWCbQuK+JSV7UJVbjcud0HqeZdjX9rfi7VVxBh1zx6BONtAz<br>
qXIxn0/r/xz+2G4CZJyEIsL8q4w+/vGJZ+9Wz+TR/s4AtQPrEr86PcNu5YBf2jnp<br>
hER54NMenInoEVmxAW0MsrkuHKL5D6mPeq7WYwUTqzCVz6twYZVwyv5IaLDsDblq<br>
jf2pOMir4uEfgrQshik/SxBtVcdJMCIbYvfMJPYgQG+TebgWABJUaDbKxllqrNEf<br>
gAqXu2b7plYCNqibAMYHQTxXrI0aLO4F6Gx2A3+t7dcjsS6Qhz+Q2fY4vMlpvrw=<br>
=Mji/<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>