Opened 12 years ago
Closed 12 years ago
#3943 closed defect (fixed)
PDS Compressed Images
|Reported by:||warmerdam||Owned by:||warmerdam|
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.
Change History (2)
by , 12 years ago
comment:1 by , 12 years ago
|Status:||new → closed|
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).