Thanks for your answer.<br><br clear="all">Alejandro.<br>
<br><br><div class="gmail_quote">On 10 February 2010 17:12, Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Did you have a look at <a href="http://gdal.org/gdal_8h.html" target="_blank">http://gdal.org/gdal_8h.html</a> ?<br>
<br>
Extract from gcore/gdal_misc.cpp that answer all your questions :<br>
<br>
/* -------------------------------------------------------------------- */<br>
/*      --formats                                                       */<br>
/* -------------------------------------------------------------------- */<br>
        else if( EQUAL(papszArgv[iArg], &quot;--formats&quot;) )<br>
        {<br>
            int iDr;<br>
<br>
            printf( &quot;Supported Formats:\n&quot; );<br>
            for( iDr = 0; iDr &lt; GDALGetDriverCount(); iDr++ )<br>
            {<br>
                GDALDriverH hDriver = GDALGetDriver(iDr);<br>
                const char *pszRWFlag, *pszVirtualIO;<br>
<br>
                if( GDALGetMetadataItem( hDriver, GDAL_DCAP_CREATE, NULL ) )<br>
                    pszRWFlag = &quot;rw+&quot;;<br>
                else if( GDALGetMetadataItem( hDriver, GDAL_DCAP_CREATECOPY,<br>
                                              NULL ) )<br>
                    pszRWFlag = &quot;rw&quot;;<br>
                else<br>
                    pszRWFlag = &quot;ro&quot;;<br>
<br>
                if( GDALGetMetadataItem( hDriver, GDAL_DCAP_VIRTUALIO, NULL) )<br>
                    pszVirtualIO = &quot;v&quot;;<br>
                else<br>
                    pszVirtualIO = &quot;&quot;;<br>
<br>
                printf( &quot;  %s (%s%s): %s\n&quot;,<br>
                        GDALGetDriverShortName( hDriver ),<br>
                        pszRWFlag, pszVirtualIO,<br>
                        GDALGetDriverLongName( hDriver ) );<br>
            }<br>
<br>
            CSLDestroy( papszReturn );<br>
            return 0;<br>
        }<br>
<br>
<br>
<br>
Le Wednesday 10 February 2010 21:09:21 Alejandro Mostovoi, vous avez écrit :<br>
<div><div></div><div class="h5">&gt; Hi All,<br>
&gt;<br>
&gt; I need to get the Long Format Name and the Code of GDAL Raster Formats<br>
&gt; (BMP, FAST, ENVI, etc) from a GDALDataset. I&#39;m looking for a method like<br>
&gt; OGRSFDriver::GetName();<br>
&gt;<br>
&gt; Any idea?<br>
&gt;<br>
&gt; Thanks in Advance.<br>
&gt; Alejandro.<br>
<br>
<br>
</div></div></blockquote></div><br>