Re: Creating JPEG images with gdal

Frank Warmerdam <[email protected]>
Newsgroups gmane.comp.gis.freegis
Message-ID <[email protected]>
Tomas Zajc wrote:
> Hi. I hope this is the right place to make this question. I'm taking my first 
> steps with the gdal library on C and almost my first steps in C programming. 
> I'm truing to creta some small jpg's using gdal. 
> I know there are two methods for generating images using gdal: GDALCreateCopy 
> and GDALCreate.
> 
> I made a small program in which you can specify the driver at execution time. 
> When I use GTiff i get no problems. If I try to use JPEG I get:
> 
> "ERROR 6: GDALDriver::Create() ... no create method implemented for this 
> format."
> 
> I'm a bit lost, http://www.gdal.org/formats_list.html says JPEG can be used 
> for creation.

Tomas,

JPEG and most drivers for compressed formats in GDAL only support the
CreateCopy() mechanism.  The formats list document means creation using
one of Create() or CreateCopy(), and isn't meant to imply random writing
is supported (as is the case with Create()).

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.