[Gdal-dev] Create method

Julien Demaria dem at acri-st.fr
Fri Sep 24 10:12:15 EDT 2004


Ricardo,

Calling gdalwarp -of JPEG for example and it gives you an error and print 
the drivers list for your local GDAL supporting Create method.

Regards,

Julien

At 15:48 24/09/2004, Pereira, Ricardo Scachetti wrote:
>content-class: urn:content-classes:message
>Content-Type: multipart/alternative;
>         boundary="----_=_NextPart_001_01C4A23D.233BF760"
>
>         Hi, folks,
>
>         GDAL supports creation of many raster formats from table on this 
> url: 
> <http://www.remotesensing.org/gdal/formats_list.html>http://www.remotesensing.org/gdal/formats_list.html
>
>         But then when I check if the drivers support the Create method, 
> with a call like this:
>
>   poDriver = GetGDALDriverManager()->GetDriverByName("AAIGrid");
>   if( poDriver == NULL ) exit( 1 );
>   papszMetadata = poDriver->GetMetadata();
>   bool result = ( CSLFetchBoolean( papszMetadata, GDAL_DCAP_CREATE, FALSE 
> ) );
>
>         Only BMP and Gtiff seem to support it.
>         So my question is, what is the alternative method of creating 
> raster datasets using the various drivers, other than using Create()? Why 
> some drivers implement it and others don't?
>
>         Thanks,
>
>Ricardo
>
>--
>Ricardo Scachetti Pereira
>Computer Engineer
>Biodiversity Research Center
>Natural History Museum
>University of Kansas
>1345 Jayhawk Boulevard
>Lawrence, KS 66045-7561 USA
>Tel: (785) 864-4655, Fax: (785) 864-5335
>email: rpereira at ku.edu
>
>_______________________________________________
>Gdal-dev mailing list
>Gdal-dev at xserve.flids.com
>http://xserve.flids.com/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list