[gdal-dev] Get a list of supported file formats

Even Rouault even.rouault at mines-paris.org
Sat Mar 16 15:32:47 PDT 2013


Le samedi 16 mars 2013 16:14:30, Diego Gnesi Bartolani a écrit :
> Hi,
> 
> I'm writing a python plugin for QGIS. I need to implement a "Save As"
> dialog and the user should choose among all GDAL's supported file formats.
> Is there a method inside the GDAL API to iterate over all the supported
> raster (and only raster) file formats and get the file extension and the
> format definition, i.e. the tuple ("*.TIF, *.tif", "GeoTIFF")?

Look at http://svn.osgeo.org/gdal/trunk/gdal/gcore/gdal_misc.cpp, lines 2344 
to 2453

> 
> Thanks!
> 
> Diego


More information about the gdal-dev mailing list