Opened 13 years ago

Closed 13 years ago

#3943 closed defect (fixed)

PDS Compressed Images

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: PDS
Cc: thare

Description

Here is Ludovic's patch which should fix the PDS "compress"/"uncompress" sections.

Now the compessed section should only be a jpeg2000. Would it be easy to allow gdal to open the Jpeg2000 using the parameters from the PDS label? That may mean even if the Jpeg2000 image has a geospatial header - hmmm.

A small test image would be: http://imbrium.mit.edu/DATA/LOLA_GDR/CYLINDRICAL/IMG/LDEM_4.LBL http://imbrium.mit.edu/DATA/LOLA_GDR/CYLINDRICAL/IMG/LDEM_4.IMG low-res lunar DEM.

Attachments (1)

pdsdataset-compression.patch (5.4 KB ) - added by warmerdam 13 years ago.
PDS Patch

Download all attachments as: .zip

Change History (2)

by warmerdam, 13 years ago

PDS Patch

comment:1 by warmerdam, 13 years ago

Resolution: fixed
Status: newclosed

I have applied a variation of the patch in trunk (r21616).

I adjusted the GetKeyword() a bit so we could avoid the ackward use of CPLString().Printf().

I also skipped the part of the patch that disabled compressed images - I'm not sure what it's rationale was.

I also tried to be more consistent pulling IMAGE. keywords with the prefix even if they didn't seem to be found in the test image.

The patch included a new test suite entry with the referenced sample image (truncated).

Note: See TracTickets for help on using tickets.