Giter Club home page Giter Club logo

Comments (5)

ddohler avatar ddohler commented on May 28, 2024 1

@shaunakv1 Thanks for asking! Currently none of the GDAL functions that rely on GDALRasterBand are wrapped; that's due to a lack of time, primarily -- I'm pretty sure I know how I'd design the interface for such a feature, but haven't gotten to it yet. If you've got the time and inclination to put together a PR, I'd be happy to assist, though I understand that's not an option for many people. Conservatively, I expect that adding wrappers for the raster methods would take 12-18 hours for me, and perhaps twice as long for someone who's less familiar with the project. Alternatively, using gdal-js directly may be a option, although I suspect that for anything moderately complex you'd be likely to save time by adding functionality to Loam (that's what I do if I need something that gdal-js supports, but Loam does not).

I hope that helps! I'll keep this issue open and try to get to this feature as soon as I can!

from loam.

shaunakv1 avatar shaunakv1 commented on May 28, 2024

@ddohler Thank you for a prompt response! I totally understand the work that goes in and am happy to wait. We have current system and this is potentially for future enhancements.

In the mean time I will try and pull this down to see if I can help along. Is there any contribution guide yet that might ease me into this project? or may be even something tagged for good first issue? I am happy to give it a shot, but I am skittish in making commitments for new work atm.

from loam.

ddohler avatar ddohler commented on May 28, 2024

Thanks for offering to help! I took a quick skim over the issue backlog and I don't see anything that looks immediately applicable to this at the moment, unfortunately. This issue is a good example of adding a new wrapper method, although I think the raster band case will be more complex because decisions will need to be made about how to model and handle raster bands within Loam. So I guess that would be a good starting place. Do you have preferences between either of these two interfaces:

loam.open(blob).then(ds => ds.getBand(1)).then(band => band.getStatistics());

or

loam.open(blob).then(ds => ds.statisticsForBand(1));

?

from loam.

shaunakv1 avatar shaunakv1 commented on May 28, 2024

That 's a good question. Personally I would lean towards.

loam.open(blob).then(ds => ds.getBand(1)).then(band => band.getStatistics());

Reason being, for larger rasters I am assuming the above will give users more control to lazy load bands. In the second interface the promise will return all bands in the rasters, which is okay for smaller files but not so much for larger ones.

from loam.

delebash avatar delebash commented on May 28, 2024

+1 For adding GDALRasterBand

from loam.

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.