[gdal-dev] JPEG format.

Martin Chapman chapmanm at pixia.com
Wed Jul 29 14:46:47 EDT 2009


Good question.  I imagine it is extra work for Frank that falls low on the priority list. :)

Martin

-----Original Message-----
From: Belaid MOA <belaid_moa at hotmail.com>

Date: Wed, 29 Jul 2009 18:46:28 
To: <chapmanm at pixia.com>; <gdal-dev at lists.osgeo.org>
Subject: RE: [gdal-dev] JPEG format.









That's excellent to know! Thanks a lot Martin. Instead of getting
segfault, 
I could use that to exist peacefully in case the driver does support the Create() function.

Just of out of curiosity, why JPEG driver does not have the create function and only supports CreateCopy()? 
The Create() function could be easily implemented using MEM and CreateCopy(); instead of relying on the user to do this every time a JPEG driver is used.

With best regards.
~Belaid.
From: chapmanm at pixia.com
To: belaid_moa at hotmail.com; gdal-dev at lists.osgeo.org
Subject: RE: [gdal-dev] JPEG format.
Date: Wed, 29 Jul 2009 11:56:04 -0600



















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:
gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On
Behalf Of Belaid MOA

Sent: Wednesday, July 29, 2009 11:45 AM

To: gdal-dev at lists.osgeo.org

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!


_________________________________________________________________
Stay in the loop and chat with friends, right from your inbox!
http://go.microsoft.com/?linkid=9671354
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090729/b026d856/attachment.html


More information about the gdal-dev mailing list