You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fairly new in Rust and wanted to try reading a .tif hyperspectral imaging file which contains multiple layers (its shape is (356, 724, 757), for 356 layers, width of 724 and height of 757 pixels).
My first test was to just read the file, then look at value at coordinates (1, 1), which I'm guessing should be a vector of size 356.
thread 'main' panicked at 'index out of bounds: the len is 724 but the index is 724', ...index.crates.io-6f17d22bba15001f\geotiff-0.0.2\src\reader.rs:303:17
Should I understand that the multiplicity of layers is not handled by geotiff, or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
It's been a while since I originally started the library, and as a word of caution, I only needed it to read elevation data (single channel / layer) - it served that purpose but is sadly far from implementing the whole GeoTiff standard.
Lots of coulds and woulds, I know (sorry!), but it was 5 years ago that I wrote the code... if you manage to dig into the library and fix the issues, happy to merge a PR! The library is not particularly large so it should be understandable fairly quickly :) (the GeoTiff spec on the other hand...)
Thanks for your reply, @dominikbucher.
As much as I'd love to give you a hand on this, I must be lucid on the fact that my level of mastery for Rust is not yet sufficient!
Hi,
I'm fairly new in Rust and wanted to try reading a
.tif
hyperspectral imaging file which contains multiple layers (its shape is(356, 724, 757)
, for 356 layers, width of 724 and height of 757 pixels).My first test was to just read the file, then look at value at coordinates (1, 1), which I'm guessing should be a vector of size 356.
But I run into this panic:
Should I understand that the multiplicity of layers is not handled by
geotiff
, or am I doing something wrong?The text was updated successfully, but these errors were encountered: