[gdal-dev] gdalwarp with JPEG not working?

Ian Dees ian.dees at gmail.com
Tue Mar 16 10:08:38 EDT 2010


I am attempting to warp a JPG/JPW file pair to a TIFF using the following
command: 

$ gdalwarp -t_srs EPSG:4326
EUSC_20100222_Portugal_Madeira_flood_Funchal01_high.jpg
EUSC_20100222_Portugal_Madeira_flood_Funchal01_high.jpg_warped.tif 

But I'm getting the following error: 

ERROR 4: `EUSC_20100222_Portugal_Madeira_flood_Funchal01_high.jpg' not
recognised as a supported file format. 

When I run gdalinfo on the same file, it reads it fine and I get: 

$ gdalinfo EUSC_20100222_Portugal_Madeira_flood_Funchal09_high.jpg 
Driver: JPEG/JPEG JFIF 
Files: EUSC_20100222_Portugal_Madeira_flood_Funchal09_high.jpg 
       EUSC_20100222_Portugal_Madeira_flood_Funchal09_high.jgw 
Size is 9934, 7016 
Coordinate System is `' 
Origin = (307064.001182469015475,3618798.550588979851454) 
Pixel Size = (0.635000000000018,-0.635000000000014) 
Metadata: 
  EXIF_BitsPerSample=8 8 8 
  EXIF_Compression=1 
  EXIF_PhotometricInterpretation=2 
  EXIF_ImageDescription=ZKI Map 
  EXIF_Orientation=1 
  EXIF_SamplesPerPixel=3 
  EXIF_XResolution=(300) 
  EXIF_YResolution=(300) 
  EXIF_PlanarConfiguration=1 
  EXIF_ResolutionUnit=2 
  EXIF_Software=Adobe Photoshop CS2 Windows 
  EXIF_DateTime=2010:02:25 15:48:31 
  EXIF_Artist=German Aerospace Center (DLR), German Remote Sensing
Datacenter (DFD), Center for Satellite Based Crisis Information (ZKI)
  EXIF_Copyright=Copyright (c) German Aerospace Center (DLR), German Remote
Sensing Datacenter (DFD), Center for Satellite Based Crisis Information
(ZKI) 
  EXIF_ColorSpace=65535 
  EXIF_PixelXDimension=9934 
  EXIF_PixelYDimension=7016 
Image Structure Metadata: 
  SOURCE_COLOR_SPACE=YCbCr 
  INTERLEAVE=PIXEL 
  COMPRESSION=JPEG 
Corner Coordinates: 
Upper Left  (  307064.001, 3618798.551) 
Lower Left  (  307064.001, 3614343.391) 
Upper Right (  313372.091, 3618798.551) 
Lower Right (  313372.091, 3614343.391) 
Center      (  310218.046, 3616570.971) 
Band 1 Block=9934x1 Type=Byte, ColorInterp=Red 
  Image Structure Metadata: 
    COMPRESSION=JPEG 
Band 2 Block=9934x1 Type=Byte, ColorInterp=Green 
  Image Structure Metadata: 
    COMPRESSION=JPEG 
Band 3 Block=9934x1 Type=Byte, ColorInterp=Blue 
  Image Structure Metadata: 
    COMPRESSION=JPEG 

Why can't gdalwarp read this file?
-- 
View this message in context: http://n2.nabble.com/gdalwarp-with-JPEG-not-working-tp4743823p4743823.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list