[Freegis-list] Creating JPEG images with gdal

Frank Warmerdam warmerdam at pobox.com
Tue Oct 31 20:34:16 CET 2006


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, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the Freegis-list mailing list