<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thank you all for your reply.<br> <br>Somehow I could not get TestCapability to work. I get the compilation error: "class GDALDriver has no member named TestCapability". According to the <span class="comment">gdal_priv.h</span> and GDAL Doc, the GDALDriver class does not have TestCapability function. <br>Am I missing something?<br><br>With best regards.<br>~Belaid.<br><br>> Date: Wed, 29 Jul 2009 15:27:35 -0400<br>> From: warmerdam@pobox.com<br>> To: belaid_moa@hotmail.com<br>> CC: gdal-dev@lists.osgeo.org<br>> Subject: Re: [gdal-dev] JPEG format.<br>> <br>> Belaid MOA wrote:<br>> > That's excellent to know! Thanks a lot Martin. Instead of getting segfault,<br>> > I could use that to exist peacefully in case the driver does support the <br>> > Create() function.<br>> > <br>> > Just of out of curiosity, why JPEG driver does not have the create <br>> > function and only supports CreateCopy()?<br>> > The Create() function could be easily implemented using MEM and <br>> > CreateCopy(); instead of relying on the user to do this every time a <br>> > JPEG driver is used.<br>> <br>> Belaid,<br>> <br>> Many of us work with images that would be impractical to hold in memory,<br>> and that might be quite inefficient to first marshall on disk in a directly<br>> creatable format like TIFF.<br>> <br>> The Create/CreateCopy distinction in writing with drivers is an important<br>> one within GDAL and something that developers (and even to some extent<br>> users) are expected to learn something about even if it is not immediately<br>> obvious. I do think it is addressed in the FAQ.<br>> <br>> Best regards,<br>> -- <br>> ---------------------------------------+--------------------------------------<br>> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<br>> light and sound - activate the windows | http://pobox.com/~warmerdam<br>> and watch the world go round - Rush | Geospatial Programmer for Rent<br>> <br><br /><hr />More storage. Better anti-spam and antivirus protection. <a href='http://go.microsoft.com/?linkid=9671352' target='_new'>Hotmail makes it simple.</a></body>
</html>