GeoTIFF / GeoTIFF/georaster

rasterio-generated geotiffs have wrong metadata

Open
#84 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
96
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**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.](https://github.com/rasterio/rasterio/issues/2565).

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](https://github.com/GeoTIFF/georaster/assets/91751417/70811d8b-fd59-4079-8eba-cc5822757c13)

Correct display (re-exported with QGIS):
![image](https://github.com/GeoTIFF/georaster/assets/91751417/2f39bc65-1fd4-4856-8aae-1b2528803723)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.