[FWTools] %gdal jpeg problem

Frank Warmerdam warmerdam at pobox.com
Thu Nov 17 17:26:31 EST 2005

On 11/17/05, julio.morales <julio.morales at inegi.gob.mx> wrote:
> Hi to all:
> I'm using fwtools in order to convert a bunch of images. I used
> gdal_translate to add gcp's and projection information (ccl) so I could
> reproject later with these information. But when I try to reproject with
> gdalwarp in jpeg format I've got an error:
> C:\gdal_translate -a_srs "+proj=lcc +datum=grs80 +lat_1=17.5n
> +lat_2=29.5n +lat_0=12n +lon_0=102w +x_0=2500000" -a_nodata 0 -gcp 0 0
> 3561589.28 317493.28 -gcp 2340 0 3558622.8 320029.02 -gcp 2340 3456
> 3562426.41 324478.74 -gcp 0 3456 3565392.89 321943 Image_0324.JPG
> Image_0324.tif
> C:\gdalwarp -of jpeg Image_0324.tif Image_0324_ccl_2.jpg
> Output driver `jpeg' not recognised or does not support
> direct output file creation.  The following format drivers are configured
> and support direct output:


As the message says, the JPEG driver does not support direct
output file creation which is required for gdalwarp.  You will
need to warp to a format like GeoTIFF, and then translate
the result to JPEG.

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 information about the FWTools mailing list