Opened 12 years ago
Closed 7 years ago
#9216 closed defect (fixed)
Why is worldfile required for ImportImage?
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin importimage | Version: | latest |
Keywords: | geotiff worldfile | Cc: |
Description
Why do you need a separate world file for images in formats such as GeoTIFF, when the required information is buried in the GeoTIFF file itself? Can't you update ImportImage to look for that data in the header of the actual imagery file?
Attachments (0)
Change History (4)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
The ImportImage plugin is no longer maintained, so you may be out of luck there.
comment:3 by , 7 years ago
The plugin should be able to handle georeferenced images (such as GeoTIFF). Can you test whether the issue still occurs in the latest version?
comment:4 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Worldfile is only asked when needed (formats other than GeoTIFF, or CRS not provided):
// try to read GeoTIFF: try { coverage = readGeoTiff(file, refSys); return coverage; } catch (DataSourceException dse) { if (!dse.getMessage().contains("Coordinate Reference System is not available")) { dse.printStackTrace(); } } catch (FactoryException facte) { logger.fatal("Error while reading from GeoTIFF:", facte); throw new IOException(facte); } // file is no GeoTiff, searching for Worldfile and projection file: String[] postfixes = {"wld", "tfw", "tifw"};
ping…?