Modify

Opened 10 years ago

Closed 6 years ago

#9216 closed defect (fixed)

Why is worldfile required for ImportImage?

Reported by: denelson83@… 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 grinapo, 7 years ago

ping…?

comment:2 by bastiK, 7 years ago

The ImportImage plugin is no longer maintained, so you may be out of luck there.

comment:3 by george-hopkins, 6 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 Don-vip, 6 years ago

Resolution: fixed
Status: newclosed

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"};

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.