-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reading/loading of raw cloud-optimized geotiff (COG) #9320
Comments
for testing you can use:
those url return an error message if you click on it (to prevent full fetching) but they open fine as rasters urls in qgis. And they should work in https://geotiffjs.github.io/cog-explorer EDIT: i have a working example in https://cogeo.craig.fr/viewer/ if you load the URLs in the top field (not the samples) they're displayed. |
@landryb Kindly confirm if I can use this for testing https://cogeo.craig.fr/opendata/ortho/2018_25cm_ain+isere.tif instead. As the above ones consume lots of bandwidth when loading the layer and takes longer time to load which makes it not suitable for testing and to work with when it needs to be loaded often during implementation. If possible can you also provide some more urls that is considerably smaller is size with projection required for geOrchestra. Thanks! |
you can use this one if you prefer yes (it's 'only' 65Gb), but ultimately the idea is to be able to use large ones.. and all the COGs i have are all using EPSG:2154 for the projection. i've added https://cogeo.craig.fr/opendata/ortho/orthocraig3_vichy_2021.cog.tif which is a 3cm resolution image on the city of vichy, the file is less than 9Gb and loads straight away in QGIS
|
Thanks @landryb |
and https://cogeo.craig.fr/opendata/ortho/ortho25_cc46_clerco_1996.cog.tif which is an EPSG:3946 1.2Gb file. |
Added backport needed label because we need to add it to 2023.02.xx that is already branched |
…tiff (COG) (geosolutions-it#9394) * geosolutions-it#9320 - Support reading/loading of cloud-optimized geotiff (COG) * Url validation modified * Update cog layer model * unit test (cherry picked from commit 920ff39)
Fwiw i'm testing this on the tip of 2023.02.xx (on http://localhost:8081) and no image is displayed with the vichy COG. I've seen some hits on the server when i added the COG catalog entry, the layer is added to the toc but i have no image displayed, whatever the zoom level. there's no zoom to layer but my understanding is that #9469 isnt backported yet so that's fine, but what more is needed ? testing with the default localconfig.json btw, but i dont see errors about CORS in the browser console. |
@landryb |
thanks, that was the missing bit, with the definitions for EPSG:2154 & EPSG:3946 i can load the vichy and clerco cc46 COGs fine in the same viewer. I suppose that should be documented somewhere ? dunno if that should be in the user guide though (#9492 doesnt mention it) anyway, great work on this feature, will do more testing (as backgrounds too) with the COGs i have here. |
A reference will be included in the online documentation by @ElenaGallo
Thank you so much |
i havent been able to have a working default background using a cog layer, tried this the layers array in new.json per the first comment in #9394:
what more is needed ? sources ? |
{
"type": "cog",
"title": "Cloud optimized geotiff",
"name": "COG exmaple",
"visibility": false,
"sources": [{
"url": "https://cogeo.craig.fr/opendata/ortho/2018_25cm_ain+isere.tif"
}],
"group": "background"
} This config is enough to visualize the COG layer as background. Please make note, that background will not zoom to extent. So I believe the background layer is added but the ones in the issues are small, when the map is zoomed to max extent, that it we may fail to notice it. Kindly check by zooming to extent that you are interested and then switching to COG background layer |
i'll triple check as im probably doing something wrong, but with that section added to the 'layers' array in visiting http://localhost:8081/#/viewer/new i see hits being done on the cog file in the network console, but zooming on clermont i have no data displayed, and there's no extra background in the list of backgrounds. i must be doing smth wrong because i only have 6 backgrounds available when clicking on the background selector:
while i have 8 entries in the layers array - COG isnt available, nor is the empty one. |
Description
Requirement is support a new layer type to allow loading remote cloud-optimized geotiff (COG). The OL >v7 supports the new
GeoTIFF
source. So does MapStore as of #9293.Acceptance criteria
COG
Configuration (example)
GeoTIFF example
Catalog:
Support for cog layer to be added from catalog. Add multiple urls via comma separated, which each url corresponds to individual layer i.e same structure above is to be maintained .
Layer settings
The default layer settings to be maintained.
Note: Check if visibility limits works.
Printing
Filter COG layers and background while printing. (Should be avoided in preview as well)
Other useful information
Ref: georchestra/mapstore2-georchestra#338
Source for geotiff tryouts: https://geotiffjs.github.io/cog-explorer
Questions
Check
The text was updated successfully, but these errors were encountered: