Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] uncertainty with imageio (gdal) NITF and HFA support

Hallo List,

I stumbled a bit while I reviewed the imageio code:

- What are the supported file extensions for NITF? I assumed that
would be *.on1,*.on2,*.on5
- In the catalog.imagio ImageServiceExtension class I found the following lines:

                        driverCode="NITF";
			if(GDALUtilities.isDriverAvailable(driverCode))
			{
				factories.put(driverCode, new NITFFormatFactory());
				fileExtensions.put(driverCode,Arrays.asList("jp2","j2k"));
			}
  I guess the fileExtensions.put() line is wrong. IMHO

- I tested to add a NTIF layer (Add Data Wizard -> Files) with the
file 001zc013.on1 (downloaded from
http://dl.maptools.org/dl/gdal/data/nitf/cadrg/) It was selectable but
the wizard cant be finished...

In addition to the NITF Format the HFA Driver seems to be wrong ether:


			// HFA
			driverCode="HFA";
			if(GDALUtilities.isDriverAvailable(driverCode))
			{
				factories.put(driverCode, new ErdasImgFormatFactory());
				fileExtensions.put(driverCode,Arrays.asList("dt0","dt1", "dt2"));
			}	

which should properly look like this

			// HFA
			driverCode="HFA";
			if(GDALUtilities.isDriverAvailable(driverCode))
			{
				factories.put(driverCode, new ErdasImgFormatFactory());
				fileExtensions.put(driverCode,Arrays.asList("img"));
			}	

Can anybody help to clarify? Thanks a lot!
Frank


Back to the top