GeoTIFF not painting within JMapFrame

Description

We are unable to get GeoTIFFs to display.  There are no errors, just no
display.  We backed all the way out of our applications and created a
fresh test environment using v14 via Maven and used ImageLab as the test
program.  The result is the same as we saw in our applications.  The
bluemarble (the GeoTIFF) does not display.  As with our application all
indications from the code are that it is working, but there is nothing painted
for the TIFF.

This issue has been confirmed by Ian Turton ijturton@gmail.com. He added that it did work with single-band TIFFs he had available.

Environment

All (as far as I can tell).

Attachments

2

Activity

Ian Turton January 27, 2017 at 4:59 PM
Edited

Ian Turton January 27, 2017 at 4:42 PM

A workaround for this seems to be to open coverages using:

{{AbstractGridFormat format = GridFormatFinder.findFormat(rasterFile);
Hints hints = new Hints();
if (format instanceof GeoTiffFormat) {
hints = new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE);
}
reader = format.getReader(rasterFile,hints);}}

I can't get to the bottom of why though - seems to be related to org.geotools.coverage.grid.io.imageio.geotiff.GeoTiffMetadata2CRSAdapter.createProjectedCoordinateReferenceSystem(GeoTiffIIOMetadataDecoder)

Ian Turton July 22, 2016 at 10:59 AM

AFAIR most of these issues where related to axis order - I added the following to the lab

/*

  • uncomment the next line if you intend to use "broken" lon/lat data such as Natural Earth
    */
    // System.setProperty(GeoTools.FORCE_LONGITUDE_FIRST_AXIS_ORDER,"true");

I thought I'd committed the change but may be not

Jody Garnett July 21, 2016 at 6:00 PM

Ian you were able to confirm this issue? Any hints on what is going on?

Andrea Aime February 13, 2016 at 6:08 PM

I have removed rotated from the title, the original reported just private mailed me to stress this happens with all geotiffs, not just rotated ones (the original description also referred to bluemarble)

Fixed

Details

Assignee

Reporter

Original estimate

Time tracking

No time logged1d remaining

Components

Fix versions

Affects versions

Priority

Created October 23, 2015 at 7:11 PM
Updated February 14, 2017 at 11:43 AM
Resolved January 27, 2017 at 4:59 PM