Comments (7)
Yes, I'm just looking around to find a GeoTiff library for OpenLayers. Indeed, EOX worked on it, but it needs some work to make it a full library. Maybe we could really collab on that.
from georaster-layer-for-leaflet.
Excellent point to bring up @m-mohr . I definitely need to make my thinking more clear. There's two main things going on:
- Applications like https://geotiff.io that have an analysis piece usually via geoblaze in addition to visualization will load the georaster outside of this visualization library. I made the decision to make georaster a peer dependency instead of baked into the georaster-layer-for-leaflet build because I didn't want web applications to have to load the georaster code twice or include it twice in the build. I think Webpack is getting smarter, so perhaps this is no longer an issue. Happy to be updated :-)
- I would like to avoid having to republish georaster-layer-for-leaflet every time that georaster is updated. Unfortunately, I don't have a lot of bandwidth at the moment and am trying to minimize the long-term maintenance cost while also meeting my maintenance responsibilities. Perhaps this can be automated?
I hope this makes sense. Definitely open to your thoughts.
Action Items
- Update Readme with information that you have to also install georaster
- Add georaster to the package.json as a peer dependency (https://docs.npmjs.com/files/package.json#peerdependencies)
I'm open to PRs if you want to take this on. Unfortunately, I won't have time for about the next week.
Thank you again for surfacing this confusion! :-)
from georaster-layer-for-leaflet.
Totally makes sense and the action items should be enough to solve the issue.
Unfortunately, the decision in my project was made to probably switch to OpenLayers, so not sure how much time I can invest here.
from georaster-layer-for-leaflet.
@m-mohr , word. we're actually thinking of switching over geotiff.io to OpenLayers. Would be great to collaborate with @constantinius on an OpenLayers alternative. He built a demo in open layers you might have heard of: https://github.com/geotiffjs/cog-explorer, but AFAIK, it's not a lib you can install from NPM.
from georaster-layer-for-leaflet.
Also, would be great if we could eventually add COG support to OpenLayers!
from georaster-layer-for-leaflet.
COG-Explorer is a proof of concept and a benchmark whether displaying large COGs is even feasible. So the app is definitely not polished enough to use as a base, but I think concepts and code are definitely reusable. In my opinion, the display of such files consists of three parts: geotiff parsing (what geotiff.js already provides), rendering of the data to RGBs (that is whats missing) and then putting this data on a map. (OpenLayers gives a starting point for that, but it can definitely improved).
At EOX, we are already investigating that matter, and want to present a solution at foss4g, but I guess we will just show the status quo of COG explorer. We are also in contact with @IvanSanchez who participates on the EO data challenge with a very similar target.
Apart from that, I would love to see some collaboration on that topic!
from georaster-layer-for-leaflet.
I've added georaster as a peer dependency and added some documentation about it to the README.md.
from georaster-layer-for-leaflet.
Related Issues (20)
- CanvasRenderingContext2D/filter --> using georaster from url HOT 2
- Error [ERR_REQUIRE_ESM]
- rawToRgb is not a function HOT 9
- COG not projected correctly HOT 9
- RPF, CADRG, CIB, ADRG, ASRP and DTED HOT 1
- "Uncaught TypeError: ap.defs is not a function" during vite preview HOT 2
- Cannot read properties of null (reading 'GeographicTypeGeoKey') HOT 2
- ALOS (30m) colors seem weirdly off HOT 6
- Error - "Can not get band1 min/max, try to calculate min/max values, or setting domain" HOT 1
- Tiles misaligned when source raster not in native projection HOT 1
- Update package.json script to work on any OS HOT 1
- Save Tile Stack HOT 1
- Add more tests for polar geotiffs HOT 1
- Get all visible pixels as array or data url
- When loading a 1.6g COG TIF or smaller tif, the map scaling may lag HOT 2
- endering Performance CloudOptimizedGeotiff Band calculation ( Question rather than a feature request) HOT 2
- Heavy memory usage on small CoG (Tiffs) files
- How can you extract bands from a geotiff? HOT 2
- Allow transparency without a Mask via pixelValuesToColorFn HOT 4
- Is there a maximum number of bands a COG will support? HOT 4
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 georaster-layer-for-leaflet.