Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-3912: Fixed Build Process For GITC WV (#6492)

christof-wittreich444f6cfb4f16
diff --git a/tasks/build-options/processTemporalLayer.js b/tasks/build-options/processTemporalLayer.js
index 310428348..38bd49848 100644
--- a/tasks/build-options/processTemporalLayer.js
+++ b/tasks/build-options/processTemporalLayer.js
@@ -4,7 +4,11 @@ const xml2js = require('xml2js')
const projDict = {
'GIBS:geographic': 'epsg4326',
'GIBS:arctic': 'epsg3413',
- 'GIBS:antarctic': 'epsg3031'
+ 'GIBS:antarctic': 'epsg3031',
+ 'GITC:geographic': 'epsg4326',
+ 'GITC:arctic': 'epsg3413',
+ 'GITC:antarctic': 'epsg3031',
+ 'GITC:webmercator': 'epsg3857'
}
function toList (val) {
@@ -55,6 +59,7 @@ async function processTemporalLayer (wvLayer, value, source = 'GIBS:geographic',
const dateRangeEnd = []
const rangeInterval = []
for (const range of ranges) {
+ if (!range._text || !range._text.length) continue
const [start, end, interval] = range._text.split('/')
if (
wvLayer.period === 'daily' ||