<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.hmmessage P
{margin:0px;padding:0px;}
body.hmmessage
{font-size:10pt;font-family:Verdana;}
</style>

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 Create() function.<br><br>Just of out of curiosity, why JPEG driver does not have the create function and only supports CreateCopy()? <br>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.<br><br>With best regards.<br>~Belaid.<br><hr id="stopSpelling">From: chapmanm@pixia.com<br>To: belaid_moa@hotmail.com; gdal-dev@lists.osgeo.org<br>Subject: RE: [gdal-dev] JPEG format.<br>Date: Wed, 29 Jul 2009 11:56:04 -0600<br><br>







<style>
.ExternalClass .EC_shape
{;}
</style>

<style>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass span.EC_EmailStyle18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.EC_Section1
{page:Section1;}
</style>





<div class="EC_Section1">

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Use:</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">if</span><span style="font-size: 10pt; font-family: 'Courier New';">
(!pDriver-&gt;TestCapability(ODrCCreateDataSource))</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">to
test create capabilties of the driver.</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">I
think jpeg driver only supports CreateCopy().</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">You
could use the Memory dataset to create a different size dataset and then use
the jpeg driver to save it to disk.</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">&nbsp;</span></p>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">Martin</span></p>

<p class="EC_MsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="EC_MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">
gdal-dev-bounces@lists.osgeo.org [mailto:gdal-dev-bounces@lists.osgeo.org] <b>On
Behalf Of </b>Belaid MOA<br>
<b>Sent:</b> Wednesday, July 29, 2009 11:45 AM<br>
<b>To:</b> gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> [gdal-dev] JPEG format.</span></p>

</div>

</div>

<p class="EC_MsoNormal">&nbsp;</p>

<p class="EC_MsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Hi Everyone,<br>
&nbsp; When I try to use GDALCreate() on the JPEG driver, I got the following
error: "GDALDriver::Create() ... no create method implemented for this
format."<br>
&nbsp; Does is this mean that JPEG driver does not have its GDALCreate()
function implemented? Any example on how to use JPEG driver is appreciated.<br>
<br>
&nbsp; As always, any help on this is very appreciated.<br>
<br>
With best regards.<br>
~Belaid</span></p>

<div class="EC_MsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr align="center" size="2" width="100%">

</span></div>

<p class="EC_MsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Stay
in the loop and chat with friends, right from your inbox! <a href="http://go.microsoft.com/?linkid=9671349">Learn how!</a></span></p>

</div><br /><hr />Stay in the loop and chat with friends, right from your inbox! <a href='http://go.microsoft.com/?linkid=9671349' target='_new'>Learn how!</a></body>
</html>