Ticket #2344 (new defect)

Opened 2 months ago

Last modified 2 months ago

Weird error message when writing a JPG2000 compressed NITF.

Reported by: ReinerBeck Assigned to: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.5.1
Severity: normal Keywords: jp2ecw
Cc:

Description

When converting the image (http://veimages.gsfc.nasa.gov//2430/land_ocean_ice_2048.tif) to NITF, the driver reports an error (see below). However, an image is produced despite the message and can be viewed without problems.

> gdal_translate -of NITF -co "IC=C8" land_ocean_ice_2048.tif out.ntf

Input file size is 2048, 1024
ERROR 1: An error has occurred: Error 86 "File is invalid or corrupt" file "" line 0
0...10...20...30...40...50...60...70...80...90...100 - done.

Change History

05/11/08 13:51:00 changed by rouault

I can confirm. This error message seems to come from the JP2ECW driver. It's also triggered by the ecw_7 test from the autotest suite.

05/11/08 22:53:09 changed by warmerdam

  • keywords set to jp2ecw.
  • component changed from default to GDAL_Raster.

This is a subtle problem relating to the ECW driver and the virtual layer. I think the ECW driver tries to seek somewhere silly and it more or less passes by uneventfully with real files, but results in an error with virtual files.

It was not immediately apparent to me how to resolve this problem without either reducing the error checking in the virtual file code, or altering the ecw sdk which is outside our control.

My preference for the time being is to do nothing.