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"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></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], "--formats") )<br>
{<br>
int iDr;<br>
<br>
printf( "Supported Formats:\n" );<br>
for( iDr = 0; iDr < GDALGetDriverCount(); iDr++ )<br>
{<br>
GDALDriverH hDriver = GDALGetDriver(iDr);<br>
const char *pszRWFlag, *pszVirtualIO;<br>
<br>
if( GDALGetMetadataItem( hDriver, GDAL_DCAP_CREATE, NULL ) )<br>
pszRWFlag = "rw+";<br>
else if( GDALGetMetadataItem( hDriver, GDAL_DCAP_CREATECOPY,<br>
NULL ) )<br>
pszRWFlag = "rw";<br>
else<br>
pszRWFlag = "ro";<br>
<br>
if( GDALGetMetadataItem( hDriver, GDAL_DCAP_VIRTUALIO, NULL) )<br>
pszVirtualIO = "v";<br>
else<br>
pszVirtualIO = "";<br>
<br>
printf( " %s (%s%s): %s\n",<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">> Hi All,<br>
><br>
> I need to get the Long Format Name and the Code of GDAL Raster Formats<br>
> (BMP, FAST, ENVI, etc) from a GDALDataset. I'm looking for a method like<br>
> OGRSFDriver::GetName();<br>
><br>
> Any idea?<br>
><br>
> Thanks in Advance.<br>
> Alejandro.<br>
<br>
<br>
</div></div></blockquote></div><br>