Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: UDIG 1.2.RC2
-
Fix Version/s: None
-
Component/s: catalog, metadata and search
-
Labels:None
-
Environment:N/A
Description
Symptom
The net.refractions.udig.catalog.imageio plugin fails to import ERDAS IMAGINE (*.img) files.
Test
Import --> Data --> Files --> Select any valid *.img file --> Select Finish --> Nothing happens
Cause
The following test fails in the static constructor of net.refractions.udig.catalog.imageio.ImageServiceExtension
ImageServiceExtension.java
static{ // the other tests.... // HFA driverCode="HFA"; if(GDALUtilities.isDriverAvailable(driverCode)) { factories.put(driverCode, new DTEDFormatFactory()); fileExtensions.put(driverCode,Arrays.asList("dt0","dt1", "dt2")); } }
which is wrong. It should be Arrays.asList("img") , not Arrays.asList("dt0","dt1", "dt2"). This is probably an uncompleted cut-n-paste operation from the DTED test to the HFA test (the former test is currently equal to the latter). After correcting this error, the ImageIO plugin imports (*.img) files without any problems.