uDIG
  1. uDIG
  2. UDIG-1675

ImageIO plugin fails to import *.img files

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: UDIG 1.2.RC2
    • Fix Version/s: None
    • 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.

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kenneth Gulbrands°y
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: