[gdal-dev] gdal_translate as a VRTDataset factory

Antonio Valentino antonio.valentino at tiscali.it
Sat Feb 6 05:34:54 EST 2010


Hi Enrico,

Il giorno Thu, 4 Feb 2010 23:20:52 +0000
Enrico Zini <enrico at enricozini.org> ha scritto:

> Hello,
> 
> I needed a way to create virtual datasets in a way similar to what
> gdal_translate is doing. I noticed that gdal_translate is basically a
> tool to construct a VRTDataset, so I proceeded by transforming
> gdal_translate.cc into a VRTDataset builder class.
> 
> The result is gdaltranslate.{h,cpp} in 
> http://meteosatlib.svn.sourceforge.net/viewvc/meteosatlib/gdal/trunk/utils/
> (I did not deal with subdatasets because it is a part of GDAL I have
> not explored yet).
> 
> I reckon such a VRTDataset generator could be useful to many, and
> since its interface (necessarily) closely matches the way
> gdal_translate works, it is also quite easy to learn.
> 
> Could it make sense to package GDALTranslate as part of GDAL, and just
> rebase gdal_translate off it?

I think it is a great idea!

ciao


-- 
Antonio Valentino


More information about the gdal-dev mailing list