Use:

 

if (!pDriver->TestCapability(ODrCCreateDataSource))

 

to test create capabilties of the driver.

 

I think jpeg driver only supports CreateCopy().

 

You could use the Memory dataset to create a different size dataset and then
use the jpeg driver to save it to disk.

 

Martin

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Belaid MOA
Sent: Wednesday, July 29, 2009 11:45 AM
To: [email protected]
Subject: [gdal-dev] JPEG format.

 

Hi Everyone,
  When I try to use GDALCreate() on the JPEG driver, I got the following
error: "GDALDriver::Create() ... no create method implemented for this
format."
  Does is this mean that JPEG driver does not have its GDALCreate() function
implemented? Any example on how to use JPEG driver is appreciated.

  As always, any help on this is very appreciated.

With best regards.
~Belaid

  _____  

Stay in the loop and chat with friends, right from your inbox! Learn how!
<http://go.microsoft.com/?linkid=9671349> 

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to