Comments (5)
@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.
@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.
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.
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.
+1 For adding GDALRasterBand
from loam.
Related Issues (20)
- Add OGR wrappers
- Gcps to point work for external positioning but not internal when warping/ transforming HOT 2
- Switch to `try` / `finally` for wrapper cleanup
- Error in GDALOpen HOT 4
- Unable to use Loam in React HOT 16
- Code playground
- Asset locations HOT 1
- Production builds don't utilize loam-worker.min.js
- Add `prepare` script that builds the library
- Remote COG support? HOT 3
- Further bundling cleanup
- Support opening vector datasets with GDALOpenEx HOT 13
- SyntaxError: Unexpected token '<' HOT 4
- Packaging not including minified files correctly HOT 1
- loam.initialize throws Invalid base URL exception HOT 4
- GDALDataset.bytes() is not documented HOT 3
- Convert (gdal_translate) to mbtiles HOT 2
- How to rotate image? HOT 4
- Loam cannot be run under Node.js HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loam.