[Gdal-dev] gdal_translate: Floating point exception when trying to
convert NSIF image (JPG)
Reiner Beck
R.Beck at m4com.de
Thu Nov 16 08:38:55 EST 2006
Hello,
I get a floating point exception when I try to convert a JPG compressed
NSIF image. The message
Warning 1: Image with 0 bits per sample will not be interpreted
properly.
can be seen.
> gdal_translate test.nsf test.tif
Warning 1: Image with 0 bits per sample will not be interpreted properly.
Input file size is 936, 749
0Floating point exception
However, I am able to display the image with a different piece of
software correctly.
This happens with gdal from CVS (gdal-cvs-2006.11.07) on a Suse Linux
10.1 (kernel 2.6.16.21-0.25-smp).
Any ideas?
Cheers
Reiner
PS: Here's what gdalinfo reports:
> gdalinfo test.nsf
Warning 1: Image with 0 bits per sample will not be interpreted properly.
Driver: NITF/National Imagery Transmission Format
Size is 936, 749
Coordinate System is:
PROJCS["UTM Zone 33, Northern Hemisphere",
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9108"]],
AXIS["Lat",NORTH],
AXIS["Long",EAST],
AUTHORITY["EPSG","4326"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",15],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",500000],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
GeoTransform =
351170.7239973262, 0.2732620320856883, -0.2212566844919099
5782613.220454544, -0.1347593582872143, -0.306149732618176
Metadata:
NITF_IMAGE_COMMENTS=Test commentary...
NITF_IC=C3
NITF_IMODE=
Image Structure Metadata:
COMPRESSION=JPEG
Corner Coordinates:
Upper Left ( 351170.724, 5782613.220) ( 12d49'24.61"E, 52d10'26.03"N)
Lower Left ( 351005.003, 5782383.914) ( 12d49'16.25"E, 52d10'18.46"N)
Upper Right ( 351426.497, 5782487.086) ( 12d49'38.26"E, 52d10'22.20"N)
Lower Right ( 351260.776, 5782257.780) ( 12d49'29.90"E, 52d10'14.62"N)
Center ( 351215.750, 5782435.500) ( 12d49'27.26"E, 52d10'20.33"N)
Band 1 Block=9x0 Type=Byte, ColorInterp=YCbCr_Y
Band 2 Block=9x0 Type=Byte, ColorInterp=YCbCr_Cb
Band 3 Block=9x0 Type=Byte, ColorInterp=YCbCr_Cr
More information about the Gdal-dev
mailing list