iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.1k stars 300 forks source link

Bathymetry not showing #1981

Open AdrienHoule opened 1 year ago

AdrienHoule commented 1 year ago

I'm trying to show the world bathymetry on the globe using gebco wms :

const wmsSource = new itowns.WMSSource({ url: 'https://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv', version: '1.3.0', name: 'GEBCO_LATEST_3', style: '', crs: 'EPSG:4326', extent: { west: '-180', east: '360', south: '-90', north: '90', }, transparent: true, });

But everything appears flat. cas1

The only way I can view the data is to up the scale. cas2

So my question was do you know why this is happening and is there any solution to show my bathymetry without touching the scale ?

mgermerie commented 1 year ago

Hi ! We currently have an issue on negative elevation display : all negative elevation values are clamped above -10 meters. This is explained in #1945. I will provide a fix for that in a short time. However, since the clamp value is constant, I would intuitively say that increasing the scale should not make elevation data bellow -10 meters visible. I will take a closer look at scale implementation for ElevationLayer and let you know of my findings.

AdrienHoule commented 1 year ago

Hi, I would like to know when you say short time, do you have any idea of when a fix for https://github.com/iTowns/itowns/issues/1945 will be available ? Also I would like to offer my help to fix this issues, is there any branch I could begin with and anything to know ? If you need to contact me my email is adrien.houle@geomatys.com. Thanks in advance for your return.

mgermerie commented 1 year ago

Hi ! You are most welcome to contribute to solve #1945, thanks for your proposition. There is no branch at the moment, so you could start from iTowns' master. I will send you an email to try to set up a meeting if you agree. Otherwise, I should be able to provide a fix by the end of this month (probably sooner though).