Skip to content

GeoTIFF layers do not support TIFFs with GeoTransform/rotation #15294

Closed
@loganwilliams

Description

@loganwilliams

Describe the bug
When trying to add a certain GeoTIFF to an OpenLayers map, it renders in an incorrect location. The GeoTIFF in question is https://unnerving-monsoon.ams3.cdn.digitaloceanspaces.com/Georgia/2023-10-30-06-47-55_UMBRA-04.tif. This is not reproduced in QGIS or other COG tools.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.cogeo.org/map/ and use the URL above. The TIFF renders correctly, using Marblecutter.
  2. Go to https://geotiffjs.github.io/cog-explorer/ and use the URL above. The TIFF renders in an incorrect location, using OpenLayers.

It can also be reproduced by adding the following source to an OpenLayers map:

const source = new GeoTIFF({
  normalize: true,
  bands: [1, 1, 1],
  sources: [
    {
      url: 'https://unnerving-monsoon.ams3.cdn.digitaloceanspaces.com/Georgia/2023-10-30-06-47-55_UMBRA-04.tif',
      bands: [1, 1, 1],
      max: 300,
    },
  ],
});

Expected behavior
The projection and extent is read and interpreted correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions