Giter Club home page Giter Club logo

Comments (6)

DanielJDufour avatar DanielJDufour commented on August 20, 2024

Hi, @benboughton1 . That's an excellent question and one that I've wrestled with. For your use case, are all your rasters in the same projection, same pixel size, and same bbox? Are all your rasters geotiffs?

I'm currently solving this issue in georaster-layer-for-leaflet by basically reading all the values individually, warping them to the same box+projection+resolution with geowarp, and then running band arithmetic naively on them without GeoBlaze. It's not ideal.

I would agree that adding support for multiple stacked georasters to geoblaze would be a great contribution! Let me know if you would like to work on this :-)

from geoblaze.

benboughton1 avatar benboughton1 commented on August 20, 2024

Thanks for quick response. Yes they are all geotiffs, matched width, height, res etc. They are clipped Sentinel 2 or Landsat.

I have since discovered that if I include the individual bands as datasets in the plotty library I can run an expression on that and apply colormap. This generates a PNG I can load onto my OpenLayers map. OpenLayers warps the PNG to match the projection.

I will need to revisit this though since I will want to use some of the other geoblaze tools on the derivatives. I would like to work on it but it might be better served if I sponsored someone who knows what they are doing :). Am happy to talk further if that's an option.

from geoblaze.

DanielJDufour avatar DanielJDufour commented on August 20, 2024

How large are the rasters? If all the data can be loaded into memory, I could create a simple georaster-merge library that merges the georasters together.

from geoblaze.

benboughton1 avatar benboughton1 commented on August 20, 2024

from geoblaze.

DanielJDufour avatar DanielJDufour commented on August 20, 2024

Hi, @benboughton1 . Please check out this ObservableHQ notebook I just made and let me know if that helps answer your question:
https://observablehq.com/d/723dc08141af20d0

I'd agree that the code is weird at this point, so hopefully when I have more time I can rework it and make it more clean.

(also just a heads up, that I'm in the middle of a massive georaster update. it's taking several years, so I'm not sure exactly when it'll. be done. Just letting you know that when the next major version is released, it's possible that the code in the notebook will have to be updated. Not sure yet)

from geoblaze.

benboughton1 avatar benboughton1 commented on August 20, 2024

Thankyou! This will help a lot. I will test this and reopen if I have any issues. The georaster rewrite sounds like a big task.

from geoblaze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.