[gdal-dev] JPEG format - TestCapability

Belaid MOA belaid_moa at hotmail.com
Wed Jul 29 16:23:00 EDT 2009


Thank you all for your reply.
 
Somehow I could not get TestCapability to work.  I get the compilation error: "class GDALDriver has no member named TestCapability". According to the gdal_priv.h and GDAL Doc, the GDALDriver class does not have TestCapability function. 
Am I missing something?

With best regards.
~Belaid.

> Date: Wed, 29 Jul 2009 15:27:35 -0400
> From: warmerdam at pobox.com
> To: belaid_moa at hotmail.com
> CC: gdal-dev at lists.osgeo.org
> Subject: Re: [gdal-dev] JPEG format.
> 
> Belaid MOA wrote:
> > 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.
> 
> Belaid,
> 
> Many of us work with images that would be impractical to hold in memory,
> and that might be quite inefficient to first marshall on disk in a directly
> creatable format like TIFF.
> 
> The Create/CreateCopy distinction in writing with drivers is an important
> one within GDAL and something that developers (and even to some extent
> users) are expected to learn something about even if it is not immediately
> obvious.  I do think it is addressed in the FAQ.
> 
> Best regards,
> -- 
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
> 

_________________________________________________________________
More storage. Better anti-spam and antivirus protection. Hotmail makes it simple.
http://go.microsoft.com/?linkid=9671357
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090729/0b7ec0e2/attachment.html


More information about the gdal-dev mailing list