Skip to content

Support of COG layers in 3D viewer#11993

Merged
subashtiwari1010 merged 3 commits intogeosolutions-it:masterfrom
stefanocudini:fix-11521-cog-layers-in-cesium-3d-viewer
Feb 24, 2026
Merged

Support of COG layers in 3D viewer#11993
subashtiwari1010 merged 3 commits intogeosolutions-it:masterfrom
stefanocudini:fix-11521-cog-layers-in-cesium-3d-viewer

Conversation

@stefanocudini
Copy link
Copy Markdown
Member

Fix #11521

Description

add support for COG layers in 3D viewer (Cesium).
This PR includes a new external library for this purpose: https://github.com/hongfaqiu/TIFFImageryProvider

  • minor fix for cog layers title catalog shown in TOC
  • cog support add/remove layer in 3D
  • cog update style work via StyleEditor

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

#11521

What is the new behavior?
Loading COG layer in 3D mode.

dem.mp4

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

require new npm install to include TIFFImageryProvider
map resource contain COG tiff is here: http://localhost:8081/#/viewer/64117

@stefanocudini stefanocudini self-assigned this Feb 17, 2026
@cla-bot cla-bot Bot added the CLA Ready label Feb 17, 2026
@stefanocudini stefanocudini added this to the 2026.01.00 milestone Feb 17, 2026
@stefanocudini stefanocudini changed the title include lib tiff-imagery-provide Support of COG layers in 3D viewer Feb 17, 2026
Copy link
Copy Markdown
Contributor

@subashtiwari1010 subashtiwari1010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unnecessary comments.

Comment thread web/client/components/map/openlayers/plugins/COGLayer.js Outdated
@stefanocudini stefanocudini force-pushed the fix-11521-cog-layers-in-cesium-3d-viewer branch from b5140f4 to e3c12e6 Compare February 20, 2026 09:16
@subashtiwari1010
Copy link
Copy Markdown
Contributor

@stefanocudini
The COG from the map that you shared works fine but when using other COG, it is not functioning properly.
There is issues when after adding COG layer and clicking it in the TOC. The system crashes.
Please check the video for more details.
Also, the added COG is not being displayed in the 3D mode.

COG_issue.mp4

@stefanocudini
Copy link
Copy Markdown
Member Author

stefanocudini commented Feb 20, 2026

@stefanocudini The COG from the map that you shared works fine but when using other COG, it is not functioning properly. There is issues when after adding COG layer and clicking it in the TOC. The system crashes. Please check the video for more details. Also, the added COG is not being displayed in the 3D mode.

COG_issue.mp4

I think this bug has already been fixed in master because I see that the ZoomToLayersButton.jsx code has changed in master.

cog-layer type in cesium

fix cog layers title catalog

COG 3d not work

test new epsg

promise add

cog 3d work

clean config

check crs code

cog support remove in cesium

cog update style work

lint code
@stefanocudini stefanocudini force-pushed the fix-11521-cog-layers-in-cesium-3d-viewer branch from e3c12e6 to eae3847 Compare February 20, 2026 11:04
@stefanocudini
Copy link
Copy Markdown
Member Author

stefanocudini commented Feb 20, 2026

@stefanocudini The COG from the map that you shared works fine but when using other COG, it is not functioning properly. There is issues when after adding COG layer and clicking it in the TOC. The system crashes. Please check the video for more details. Also, the added COG is not being displayed in the 3D mode.
COG_issue.mp4

I think this bug has already been fixed in master because I see that the ZoomToLayersButton.jsx code has changed in master.

I'm wrong, the full correct test is change localconfig.json in catalog services. And in this way open a new COG
image

@subashtiwari1010 @allyoucanmap The bug also exists in master and in 2D but online dev instance does not have COG in catalog services.

@allyoucanmap
Copy link
Copy Markdown
Contributor

@subashtiwari1010 @allyoucanmap The bug also exists in master and in 2D but online dev instance does not have COG in catalog services

@stefanocudini please open a different issue, thanks

@subashtiwari1010 subashtiwari1010 merged commit 933eba4 into geosolutions-it:master Feb 24, 2026
12 checks passed
@subashtiwari1010
Copy link
Copy Markdown
Contributor

@ElenaGallo Please test this fix in dev . Thanks.

@stefanocudini
Copy link
Copy Markdown
Member Author

stefanocudini commented Feb 25, 2026

@subashtiwari1010 @allyoucanmap The bug also exists in master and in 2D but online dev instance does not have COG in catalog services

@stefanocudini please open a different issue, thanks

@allyoucanmap I described the details in this new issue: #12018

@ElenaGallo
Copy link
Copy Markdown
Contributor

@stefanocudini with several COGs present on this map, when switching to 3D the COG does not display correctly the (data are all black)

2.mp4

@stefanocudini
Copy link
Copy Markdown
Member Author

@stefanocudini with several COGs present on this map, when switching to 3D the COG does not display correctly the (data are all black)

2.mp4

here new PR to fix case: #12102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support of COG layers in 3D viewer

4 participants