Tim,<br><br>You can create it easily by modifying <span class="o"></span>GDALDriver<span class="o">::</span>DefaultCreateCopy<span class="p">()</span><br><br><div class="gmail_quote">On Sat, Aug 21, 2010 at 9:51 PM, Tim Keitt <span dir="ltr">&lt;<a href="mailto:tkeitt@gmail.com">tkeitt@gmail.com</a>&gt;</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;">I am writing a utility that takes a raster as input and outputs a<br>
raster with all attributes the same, except that I only want one<br>
output band and I want to specify its type independent of the data<br>
type in the input file. Is there a function that creates a copy of a<br>
dataset (or creates a virtual dataset), but does not copy any raster<br>
bands? This would really simplify things as all I would have to do is<br>
add a band to the output dataset of the desired type.<br>
<br>
THK<br>
<font color="#888888"><br>
--<br>
Timothy H. Keitt<br>
<a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></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>