[Gdal-dev] gdal_translate: Floating point exception when trying to convert NSIF image (JPG)

Frank Warmerdam warmerdam at pobox.com
Thu Nov 16 22:52:07 EST 2006


Reiner Beck wrote:
> 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).

Reiner,

If you can supply the image, I can look into what is going wrong.  But if
the image header actually has the bits per sample set to 0, then I think the
image is not properly compliant with the NITF specification.  Nevertheless,
there should be something that can be done.

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 Gdal-dev mailing list