<div dir="ltr">Hello,<div style> There is no similar simple way to get list of OGR datasource extensions, as there is no "driver metadata" for OGR, correct ? </div><div><br></div><div> I found out that some GDAL datasources do not report their extensions, e.g. BSB, also some datasources may have alternative extensions, from where datasource reports only one (there is "tif", but no "geotiff" or "tiff")</div>

<div><br></div><div style>Jaak</div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2013/3/17 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le samedi 16 mars 2013 16:14:30, Diego Gnesi Bartolani a écrit :<br>
<div><div class="h5">> Hi,<br>
><br>
> I'm writing a python plugin for QGIS. I need to implement a "Save As"<br>
> dialog and the user should choose among all GDAL's supported file formats.<br>
> Is there a method inside the GDAL API to iterate over all the supported<br>
> raster (and only raster) file formats and get the file extension and the<br>
> format definition, i.e. the tuple ("*.TIF, *.tif", "GeoTIFF")?<br>
<br>
</div></div>Look at <a href="http://svn.osgeo.org/gdal/trunk/gdal/gcore/gdal_misc.cpp" target="_blank">http://svn.osgeo.org/gdal/trunk/gdal/gcore/gdal_misc.cpp</a>, lines 2344<br>
to 2453<br>
<br>
><br>
> Thanks!<br>
><br>
> Diego<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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaak Laineste<br><br>
</div></div></div></div></div>