#3196 closed defect (fixed)
ERS driver fails with ERSs containing relative paths to non-ERStorage rasters
Reported by: | lpinner | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.3 |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
The ERS driver fails when opening ERSs containing relative paths to non-"ERStorage" rasters (e.g JP2's) when the current directory is not the directory the ERS is stored in. ERS's pointing to "ERStorage" rasters work as expected.
Not sure if this is a bug or intended feature.
Example below. See last gdalinfo call for the failure
C:\WorkSpace\test>gdalinfo --version GDAL 1.6.2, released 2009/07/31 C:\WorkSpace\test>dir /b test_ers test_ers.ers test_jp2.ers test_jp2.jp2 C:\WorkSpace\test>gdalinfo test_ers.ers Driver: ERS/ERMapper .ers Labelled Files: test_ers.ers test_ers ... C:\WorkSpace\test>gdalinfo test_jp2.ers Driver: ERS/ERMapper .ers Labelled Files: test_jp2.ers test_jp2.jp2 ... C:\WorkSpace\test>cd .. C:\WorkSpace>gdalinfo test\test_ers.ers Driver: ERS/ERMapper .ers Labelled Files: test\test_ers.ers test\test_ers ... C:\WorkSpace>gdalinfo test\test_jp2.ers ERROR 4: `test_jp2.jp2' does not exist in the file system, and is not recognised as a supported dataset name. gdalinfo failed - unable to open 'test\test_jp2.ers'.
Attachments (1)
Change History (6)
by , 14 years ago
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 14 years ago
Milestone: | → 1.6.3 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
r17863 /trunk/gdal/frmts/ers/ersdataset.cpp: ERS driver : Make relative paths work with 'DataSetType=Translated'
r17864 /branches/1.6/gdal/frmts/ers/ersdataset.cpp: ERS driver : Make relative paths work with 'DataSetType=Translated'
comment:4 by , 14 years ago
lpinner,
what are the rights for test.zip, and in particular test_jp2.jp2 ? I'd like to include it in GDAL autotest suite if it might be freely redistribable. It is an interesting test case for JPEG2000 decoding (the first 3 bands are 13 bit depth, the 4th one is 1 bit depth, which was not correctly handled by Jasper JPEG2000 driver until the fix in r17865)
comment:5 by , 14 years ago
The imagery is a small extract from an EO1 Hyperion scene and is public domain: http://edcsns17.cr.usgs.gov/eo1/faq.php?id=9
Luke
The files used in the example above are attached (test.zip)