[gdal-dev] JPEG format.

Even Rouault even.rouault at mines-paris.org
Wed Jul 29 15:20:01 EDT 2009


Le Wednesday 29 July 2009 20:46:47 Martin Chapman, vous avez écrit :
> Good question.  I imagine it is extra work for Frank that falls low on the
> priority list. :)

Another problem is that if you want to create a big raster, it might not hold 
entirely into RAM (a JPEG file  uncompressed into RAM can use up to 
65000x65000x3=12 GB). The general GDAL policy is to minimize the use of RAM.

>
> 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




More information about the gdal-dev mailing list