Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#4556 closed defect (invalid)

Error opening some PCIDSK file with new driver based on PCIDSK SDK

Reported by: sgong Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.8.1
Severity: normal Keywords: PCIDSK
Cc:

Description

Here is a PCIDSK linked file. my operation is gdal.Open()

This ASCII file contains a line "GCLNK=1024File requires a newer PCIDSK file reader to read"

An older version gdal 1.7.1 opens it without problem, but 1.8.1 and 1.9 give the same error: ERROR 1: `LNK=1024File requires a newer PCIDSK file reader to read' does not exist in the file system, and is not recognised as a supported dataset name.

Attachments (1)

03Jun2002_Ikonos.zip (3.3 KB ) - added by sgong 12 years ago.
compressed PCIDSK file

Download all attachments as: .zip

Change History (5)

by sgong, 12 years ago

Attachment: 03Jun2002_Ikonos.zip added

compressed PCIDSK file

comment:1 by Even Rouault, 12 years ago

Summary: gdal 1.8.1 and 1.9 failed to openError opening some PCIDSK file with new driver based on PCIDSK SDK

comment:2 by Jukka Rahkonen, 9 years ago

Interesting: If I just delete that text "GCLNK=1024File requires a newer PCIDSK file reader to read" from the file with a text editor and save, gdalinfo works:

gdalinfo 03Jun2002_Ikonos.pix
Driver: PCIDSK/PCIDSK Database File
Files: 03Jun2002_Ikonos.pix
           12:54 08Mar2012 12:54 08Mar2012 16S
Size is 11720, 14188
Coordinate System is `'
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,14188.0)
Upper Right (11720.0,    0.0)
Lower Right (11720.0,14188.0)
Center      ( 5860.0, 7094.0)
Band 1 Block=11720x1 Type=Int16, ColorInterp=Undefined
  Description = 20020605152719SI_CARTERRA_0101474AA00000 00100001AA04600056P

I wonder if the error is in GDAL or in the file.

comment:3 by Jukka Rahkonen, 9 years ago

Resolution: invalid
Status: newclosed

I believe that the error is in the file. Judged because I just can't understand why a valid data would contain the problematic line: "GCLNK=1024File requires a newer PCIDSK file reader to read"

comment:4 by Even Rouault, 9 years ago

I've tried with GDAL 1.7 and indeed gdalinfo can succeed opening the metadata of the file, but when trying gdal_translate we also get "ERROR 1: Failed to open LNK=1024File requires a newer PCIDSK file reader to read: No such file or directory". So it seems that the file is just a header with a link to another file. But both older generation and newer generation drivers have difficulty fingering out the correct name. I'm not sure the file is invalid though, perhaps of a special kind not handled, and it would certainly require a companion file (likely C:\Users\sgong\03Jun2002_Ikonos_PAN_RAW_PAN643.pix)

Note: See TracTickets for help on using tickets.