Open am2222 opened 11 months ago
geotiff.js does not concern itself with coordinate systems translations. Neither in bbox nor raster space. So all BBox values have to be expressed in the TIFFs coordinate system. It is up to the user to translate the BBox to the files CRS.
Hi @am2222 . You could consider trying https://github.com/GeoTIFF/geotiff-tile. It's a library that uses geotiff.js.
Hi, I am trying to read data from a raster file using bbox. I could not find any information of the unit of the coordinates in bbox. I assume since it is mentioned geographic coordinates, it should be
EPSG:4326.
However, if our COG file is in another CRS likeEPSG:3005
does the library internally convert the coordinates, or do we need to perform any kind of conversion?Here is
gdalinfo
of one of my rasters.So I try to read the file as follows. I convert my coordinates to
EPSG:4326
while my raster is inEPSG:3857
But I don't get any non-zero data.