Skip to content

Commit

Permalink
Merge pull request #2393 from eurodatacube/stereographic-polar-basemaps
Browse files Browse the repository at this point in the history
chore: add stereographic terrain light baselayers
  • Loading branch information
lubojr authored Nov 22, 2023
2 parents 2987d11 + 85abd7b commit 16f41b6
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 48 deletions.
32 changes: 32 additions & 0 deletions app/src/config/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,38 @@ export const baseLayers = Object.freeze({
maxZoom: 13,
protocol: 'xyz',
},
terrainLightStereoNorth: {
baseUrl: 'https://sxcat-demo.eox.at/sxcat_maps/wms',
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
layers: 'sx-cat_ortho680500',
name: 'Terrain Light Stereographic North',
attribution: '{ Terrain light: Data &copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors and <a href="//maps.eox.at/#data" target="_blank">others</a>, Rendering &copy; <a href="http://eox.at" target="_blank">EOX</a> }',
maxZoom: 16,
visible: false,
projection: {
name: 'ORTHO:680500',
def: '+proj=ortho +lat_0=90 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs',
extent: [-6422528, -6422528, 6422528, 6422528],
},
},
terrainLightStereoSouth: {
baseUrl: 'https://sxcat-demo.eox.at/sxcat_maps/wms',
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
layers: 'sx-cat_ortho320500',
name: 'Terrain Light Stereographic South',
attribution: '{ Terrain light: Data &copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors and <a href="//maps.eox.at/#data" target="_blank">others</a>, Rendering &copy; <a href="http://eox.at" target="_blank">EOX</a> }',
maxZoom: 16,
visible: false,
projection: {
name: 'ORTHO:320500',
def: '+proj=ortho +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs',
extent: [-6422528, -6422528, 6422528, 6422528],
},
},
});

export const overlayLayers = Object.freeze({
Expand Down
119 changes: 71 additions & 48 deletions app/src/config/trilateral.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,65 @@ const mapBoxHighResoSubst = [{
visible: true,
}, baseLayers.terrainLight, baseLayers.eoxosm, baseLayers.cloudless];

const antarcticBaseMaps = [
baseLayers.terrainLightStereoSouth,
baseLayers.cloudless,
baseLayers.eoxosm,
{
name: 'Antarctic hillshade, bathymetry',
baseUrl: 'https://maps.bas.ac.uk/antarctic/wms',
projection: 'EPSG:3031',
layers: 'add:antarctic_hillshade_and_bathymetry',
minZoom: 2,
maxZoom: 17,
visible: true,
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
attribution: '{ REMA: Howat, I. M., Porter, C., Smith, B. E., Noh, M.-J., and Morin, P.: The Reference Elevation Model of Antarctica, The Cryosphere, 13, 665-674, https://doi.org/10.5194/tc-13-665-2019, 2019. ; GEBCO Compilation Group (2019) GEBCO 2019 Grid (doi:10.5285/836f016a-33be-6ddc-e053-6c86abc0788e) Available from: GEBCO; https://www.gebco.net/ }',
},
];

const antarcticOverlayMaps = [
{
name: 'Antarctic coastline',
baseUrl: 'https://maps.bas.ac.uk/antarctic/wms',
projection: 'EPSG:3031',
layers: 'add:antarctic_coastline_line_medium',
attribution: '{ Gerrish, L., Fretwell, P., & Cooper, P. (2022). Medium resolution vector polylines of the Antarctic coastline (7.6) [Data set]. UK Polar Data Centre, Natural Environment Research Council, UK Research & Innovation. https://doi.org/10.5285/1db7f188-6c3e-46cf-a3bf-e39dbd77e14c }',
minZoom: 2,
maxZoom: 17,
visible: true,
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
},
{
name: 'Antarctic labels',
baseUrl: 'https://add.data.bas.ac.uk/ogc/64/wms',
projection: 'EPSG:3031',
layers: 'apip_extended_toponymy_labels',
minZoom: 2,
maxZoom: 17,
visible: true,
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
attribution: '{ Place Names sourced from SCAR Composite Gazetteer of Antarctica }',
},
];

const arcticBaseMaps = [
{
...baseLayers.terrainLightStereoNorth,
visible: true,
},
baseLayers.cloudless,
baseLayers.eoxosm,
];

const arcticOverlayMaps = [];

const sharedPalsarFNFConfig = Object.freeze({
url: 'https://ogcpreview1.restecmap.com/examind/api/WS/wmts/JAXA_WMTS_Preview/1.0.0/WMTSCapabilities.xml',
protocol: 'WMTSCapabilities',
Expand Down Expand Up @@ -363,7 +422,6 @@ export const indicatorsDefinition = Object.freeze({
N12: {
indicatorSummary: 'Sea Ice Concentration (GCOM-W)',
themes: ['cryosphere'],
baseLayers: cloudlessBaseLayerDefault,
story: '/eodash-data/stories/N12',
},
N11: {
Expand Down Expand Up @@ -529,53 +587,8 @@ export const indicatorsDefinition = Object.freeze({
projection: 'EPSG:3031',
minZoom: 2,
maxZoom: 15,
baseLayers: [
baseLayers.terrainLight,
baseLayers.cloudless,
baseLayers.eoxosm,
{
name: 'Antarctic hillshade, bathymetry',
baseUrl: 'https://maps.bas.ac.uk/antarctic/wms',
projection: 'EPSG:3031',
layers: 'add:antarctic_hillshade_and_bathymetry',
minZoom: 2,
maxZoom: 17,
visible: true,
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
attribution: '{ REMA: Howat, I. M., Porter, C., Smith, B. E., Noh, M.-J., and Morin, P.: The Reference Elevation Model of Antarctica, The Cryosphere, 13, 665-674, https://doi.org/10.5194/tc-13-665-2019, 2019. ; GEBCO Compilation Group (2019) GEBCO 2019 Grid (doi:10.5285/836f016a-33be-6ddc-e053-6c86abc0788e) Available from: GEBCO; https://www.gebco.net/ }',
},
],
overlayLayers: [
overlayLayers.eoxOverlay,
{
name: 'Antarctic coastline',
baseUrl: 'https://maps.bas.ac.uk/antarctic/wms',
projection: 'EPSG:3031',
layers: 'add:antarctic_coastline_line_medium',
attribution: '{ Gerrish, L., Fretwell, P., & Cooper, P. (2022). Medium resolution vector polylines of the Antarctic coastline (7.6) [Data set]. UK Polar Data Centre, Natural Environment Research Council, UK Research & Innovation. https://doi.org/10.5285/1db7f188-6c3e-46cf-a3bf-e39dbd77e14c }',
minZoom: 2,
maxZoom: 17,
visible: true,
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
},
{
name: 'Antarctic labels',
baseUrl: 'https://add.data.bas.ac.uk/ogc/64/wms',
projection: 'EPSG:3031',
layers: 'apip_extended_toponymy_labels',
minZoom: 2,
maxZoom: 17,
visible: true,
protocol: 'WMS',
format: 'image/png',
tileSize: 512,
attribution: '{ Place Names sourced from SCAR Composite Gazetteer of Antarctica }',
},
],
baseLayers: antarcticBaseMaps,
overlayLayers: antarcticOverlayMaps,
},
RECCAP2_1: {
themes: ['biomass'],
Expand Down Expand Up @@ -1577,6 +1590,8 @@ export const globalIndicators = [
showGlobe: true,
// yAxis: 'Sea-ice thickness [m]',
display: {
baseLayers: arcticBaseMaps,
overlayLayers: arcticOverlayMaps,
protocol: 'xyz',
tileSize: 256,
minZoom: 1,
Expand Down Expand Up @@ -1993,6 +2008,8 @@ export const globalIndicators = [
yAxis: 'Sea Ice Thickness (Envisat)',
showGlobe: true,
display: {
baseLayers: arcticBaseMaps,
overlayLayers: arcticOverlayMaps,
baseUrl: `https://services.sentinel-hub.com/ogc/wms/${shConfig.shInstanceId}`,
name: 'Sea Ice Thickness (Envisat)',
layers: 'ESA-CCI-V2-ENVISAT',
Expand Down Expand Up @@ -2039,6 +2056,8 @@ export const globalIndicators = [
yAxis: 'ESA-CCI-V2-CRYOSAT',
showGlobe: true,
display: {
baseLayers: arcticBaseMaps,
overlayLayers: arcticOverlayMaps,
baseUrl: `https://services.sentinel-hub.com/ogc/wms/${shConfig.shInstanceId}`,
name: 'Sea Ice Thickness (Cryosat)',
layers: 'ESA-CCI-V2-CRYOSAT',
Expand Down Expand Up @@ -2193,6 +2212,8 @@ export const globalIndicators = [
time: getDailyDates('1978-11-01', '2023-09-30'),
inputData: [''],
display: {
baseLayers: arcticBaseMaps,
overlayLayers: arcticOverlayMaps,
name: 'Sea Ice Concentration',
legendUrl: 'legends/trilateral/World-SIC.png',
baseUrl: 'https://ogcpreview2.restecmap.com/examind/api/WS/wms/default?',
Expand Down Expand Up @@ -2270,6 +2291,8 @@ export const globalIndicators = [
time: getDailyDates('1978-11-01', '2023-09-30'),
inputData: [''],
display: {
baseLayers: antarcticBaseMaps,
overlayLayers: antarcticOverlayMaps,
name: 'Sea Ice Concentration',
legendUrl: 'legends/trilateral/World-SIC.png',
baseUrl: 'https://ogcpreview2.restecmap.com/examind/api/WS/wms/default?',
Expand Down

0 comments on commit 16f41b6

Please sign in to comment.