Skip to content

rasterio-generated geotiffs have wrong metadata #84

@SarahG-579462

Description

@SarahG-579462

Describe the bug
A clear and concise description of what the bug is.
When opening a rasterio-generated geotiff with georaster, I get the wrong ymin and ymax, and likely other metadata. This is likely because rasterio has an opposite standard to GDAL/QGIS with respect to the grid ordering..

As a result of this, using georaster-for-leaflet, the map is subsequently displayed upside down. It is properly displayed in QGIS.

To Reproduce
Steps to reproduce the behavior:

  1. Create a geotiff with rasterio/rioxarray
  2. Open said geotiff with georaster
  3. See erroneous metadata
  4. When opening with georaster for leaflet, the raster is displayed upside down.

Upside down (from rioxarray):
image

Correct display (re-exported with QGIS):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions