Hello, i noticed that when i read an tiff image (using GeoTiffReader), the
GridCoverage2D has a GeneralEnvelope that is not precise.

Image extension: 6.9999999999999991,35.9999999999999929 :
18.0000000000000000,47.0000000000000000

Grid General Envelope: GeneralEnvelope[(6.999999999999999, 36.0),(18.0,
47.0)]

Why is this happening? And why only on the Latitude and not on longitude?

*My read method:*
    private static GridCoverage2D readTiff(File path) throws IOException {
        Hints hints = new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER,
Boolean.TRUE);
        GeoTiffReader reader = new GeoTiffReader(path, hints);
        GridCoverage2D grid = reader.read(null);
        reader.dispose();
        return grid;
    }
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to