georust / geotiff Goto Github PK
View Code? Open in Web Editor NEWReading GeoTIFFs in Rust, nothing else!
License: MIT License
Reading GeoTIFFs in Rust, nothing else!
License: MIT License
Hi @dominikbucher. Can you add this as a crate on crates.io?
I am looking for ways to work with Cloud Optimized GeoTiffs in rust. I don't think this library currently supports them, and I don't think there is a good crate just now that does.
Would there be interest in adding that functionality to this crate? I would be happy to try to do a first pass at an implementation if that's something of interest.
Hi there ๐
I've been tinkering around with reading GeoTIFFs in Rust using the the tiff
crate at https://github.com/image-rs/image-tiff, and see that this is possibly the recommended way going forward as mentioned at #5 (comment), #1 (comment), as well as new crates like @pka's georaster, and my experimental cog3pio
repo (not published yet).
Personally, I'd like to help take over the maintenance of this repo if possible, to upstream all the pure Rust parts of GeoTIFF decoding, so that I can focus on just the PyO3 bindings (and someone mentioned at https://discord.com/channels/598002550221963289/963346313708195880/1213207827309396050 that they'd like to make R bindings). It seems worthwhile to have a GDAL-less GeoTIFF reader, and I'd be keen to get the ball rolling if possible.
If this sounds ok, I'll start to open up a few issues on what needs to be refactored/modernized, update the documentation, and slowly chip away at some maintenance tasks.
I got thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0'
on loading a geotiff, which libgeotiff
happily parses. Unfortunately, I can not share the tiff in question.
I have tried this library for reading elevation data of TIFF-files with size of 1,6GB. My experience with this library is that it is around 5-10 times slower than the Javascript library https://github.com/geotiffjs/geotiff.js/. Do you have any comments on this? Is this believable or is there rather an error on how i use this Rust library? I have not made any concrete benchmarks yet, but if you like, i could try to do a benchmark on the two and share the code:)
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.
extern crate geotiff;
fn main() {
let geotiff = geotiff::TIFF::open("path_to_my_file.tif").unwrap();
println!("{:?}", geotiff);
let pixel = geotiff.get_value_at(1, 1);
println!("{:?}", pixel);
}
But I run into this panic:
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.