[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] [jira] Created: (UDIG-1675) ImageIO plugin fails to import *.img files
|
Am Wed, 23 Jun 2010 14:58:12 -0500 (CDT)
schrieb Kenneth Gulbrandsøy (JIRA) <jira@xxxxxxxxxxxx>:
> ImageIO plugin fails to import *.img files
> ------------------------------------------
>
> Key: UDIG-1675
> URL: http://jira.codehaus.org/browse/UDIG-1675
> Project: uDIG
> Issue Type: Bug
> Components: catalog, metadata and search
> Affects Versions: UDIG 1.2.RC2
> Environment: N/A
> Reporter: Kenneth Gulbrandsøy
>
>
> h4. Symptom
> The *net.refractions.udig.catalog.imageio* plugin fails to import
> ERDAS IMAGINE (*.img) files.
>
> h4. Test
> Import --> Data --> Files --> Select any valid *.img file --> Select
> Finish --> Nothing happens
>
> h4. Cause
> The following test fails in the static constructor of
> {color:blue}net.refractions.udig.catalog.imageio.ImageServiceExtension{color}
>
> {code:title=ImageServiceExtension.java|borderStyle=solid}
> static{
>
> // the other tests....
>
> // HFA
> driverCode="HFA";
> if(GDALUtilities.isDriverAvailable(driverCode))
> {
> factories.put(driverCode, new DTEDFormatFactory());
> fileExtensions.put(driverCode,Arrays.asList("dt0","dt1",
> "dt2")); }
>
> }
> {code}
>
> 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.
>
>