Replies: 13 comments 17 replies
-
I don't think so. |
Beta Was this translation helpful? Give feedback.
-
Is there a reason it is not possible out of the box to add COGs as data source? I am not that deep in the topic, but as far as I understand the advantage of COGs is its internal tiling and the capability of serverless streaming among others. So it looks like its made for adding it as source to webmaps. What am I missing? |
Beta Was this translation helpful? Give feedback.
-
I'm still getting my head MapLibre, but if COG support isn't an immediate priority, I'd love to collaborate with others on a plugin to add it using EDIT: As I understand it, the |
Beta Was this translation helpful? Give feedback.
-
There was some information about using COGs in maplibre linked in this interview with MIERUNE ( https://maplibre.org/news/2022-06-10-mierune-announcement/ ) This was the article in Japanese Translated to English |
Beta Was this translation helpful? Give feedback.
-
I would really appreciate to see a simple implementation which displays some COG with maplibre in the examples. |
Beta Was this translation helpful? Give feedback.
-
While there are some examples how to add COGs to maplibre out there I think it would be nice to add an "official" example to the examples (https://maplibre.org/maplibre-gl-js/docs/examples/). There are already examples to add a WMS source and add a raster tile source, but COGs are getting more widely adopted from day to day. E.g. Open Layers has a whole bunch of examples about COGs (https://openlayers.org/en/latest/examples/index.html?q=cog). |
Beta Was this translation helpful? Give feedback.
-
Hi, at NINA we are working on COG support on MapLibre, right now it's very simple, doesn't have great performances and assumes that the input COG meets some requirements. |
Beta Was this translation helpful? Give feedback.
-
After a few experiments with COGs and Maplibre I would recommend to serve cloud optimized geotiffs using TiTiler, it's basically a python service that renders COGs on the fly by tile, using this you can render COGs as a zxy tiles. Moreover you don't need to pre-process your raster to apply a specific colormap, titiler supports changing the colormap on the fly as well. |
Beta Was this translation helpful? Give feedback.
-
So the titiler instance you are running in the app above is running on serverless? Do you find that the performance meets your needs? I did not check load times for the raster tiles on that site but just curious. It sounds like it is and that performance is not the #1 reason you are using it…
The trick in OL is that it already has functionality for manipulating images and just uses a very similar method to what you have put together here to then feed into that image pipeline.
… On Apr 29, 2024, at 11:25 AM, Niccolò Cantù ***@***.***> wrote:
I haven't actually looked at the OL implementation, it could be probably ported to maplibre but it would require probably some work to make it work.
You can actually fork the repository and work on that if you want, I guess others could also benefit from this :)
Since titiler is actually serveless, and the result of applying colormaps can be cached (also serverside, not only in the browser) and you can easily extend it with custom algorithms using python and all the python libraries to manipulate images and numpy, for our needs it does not worth investing time to reimplement the same behavior in javascript
—
Reply to this email directly, view it on GitHub <#1246 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABQ2HUJ4KC66IYJ62FH7JGDY7ZQ63AVCNFSM5WZQUSA2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TSMRWGQ2DQNQ>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Leafmap supports visualizing COG and STAC with MapLibre. See this example. |
Beta Was this translation helpful? Give feedback.
-
I’ve updated the plugin above to handle COG using the protocol method - are you using a custom protocol or something else in this example?
… On Jun 23, 2024, at 1:13 AM, Qiusheng Wu ***@***.***> wrote:
Leafmap supports visualizing COG and STAC with MapLibre. See this example.
https://leafmap.org/notebooks/92_maplibre/#cog-layer
—
Reply to this email directly, view it on GitHub <#1246 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABQ2HUOKYUB4NXJNCJ76P7LZIZKOHAVCNFSM5WZQUSA2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TSOBVGAYDIOI>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Hi, FWIW, we just released our first version of "maplibre-cog-protocol" here: https://www.npmjs.com/package/@geomatico/maplibre-cog-protocol It can be used to display RGB images, DEMs for terrain or hillshading, or single-band rasters colored with any ColorBrewer scheme. Feedback is wellcome. |
Beta Was this translation helpful? Give feedback.
-
Nice work - is there a way to add transparency to the borders? I can ask that in your repo I guess. In my version I'm just making everything that is 0 transparent to sort of fake it, but it should be possible to use the mask band as well in the COG. Also, I found that when creating the COG, using SPARSE_OK = true causes errors in the rendering, it's an upstream issue with geotiff, just FYI. |
Beta Was this translation helpful? Give feedback.
-
Are COGs supported by maplibe gl js?
I can not find any information which explicitly stated that its either possible or not.
For Raster source tiles are mentioned and Image source is for unreferenced images I guess.
Beta Was this translation helpful? Give feedback.
All reactions