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 <[email protected]>
>
> Date: Wed, 29 Jul 2009 18:46:28
> To: <[email protected]>; <[email protected]>
> 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: [email protected]
> To: [email protected]; [email protected]
> 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:
> [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!
>
>
> _________________________________________________________________
> Stay in the loop and chat with friends, right from your inbox!
> http://go.microsoft.com/?linkid=9671354


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

Reply via email to