@@ -2,7 +2,6 @@ import { DATASET_S2L2A } from '../dataset';
2
2
3
3
export const getLayersFromConfigurationService = [
4
4
{
5
- '@id' : 'https://services.sentinel-hub.com/configuration/v1/wms/instances/instanceId/layers/1_TRUE_COLOR' ,
6
5
id : '1_TRUE_COLOR' ,
7
6
title : 'True color' ,
8
7
description : 'Based on bands 4,3,2' ,
@@ -14,11 +13,9 @@ export const getLayersFromConfigurationService = [
14
13
} ,
15
14
] ,
16
15
orderHint : 0 ,
17
- instance : {
18
- '@id' : 'https://services.sentinel-hub.com/configuration/v1/wms/instances/instanceId' ,
19
- } ,
20
- dataset : { '@id' : 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A' } ,
21
- datasetSource : { '@id' : 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A/sources/2' } ,
16
+ instanceId : 'instanceId' ,
17
+ collectionType : 'S2L2A' ,
18
+ datasetSourceIdId : '2' ,
22
19
defaultStyleName : 'default' ,
23
20
datasourceDefaults : {
24
21
temporal : false ,
@@ -27,7 +24,6 @@ export const getLayersFromConfigurationService = [
27
24
} ,
28
25
} ,
29
26
{
30
- '@id' : 'https://services.sentinel-hub.com/configuration/v1/wms/instances/instanceId/layers/8-NDSI' ,
31
27
id : '8-NDSI' ,
32
28
title : 'NDSI' ,
33
29
description : 'Based on combination of bands (B3 - B11)/(B3 + B11)' ,
@@ -40,11 +36,9 @@ export const getLayersFromConfigurationService = [
40
36
} ,
41
37
] ,
42
38
orderHint : 70 ,
43
- instance : {
44
- '@id' : 'https://services.sentinel-hub.com/configuration/v1/wms/instances/instanceId' ,
45
- } ,
46
- dataset : { '@id' : 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A' } ,
47
- datasetSource : { '@id' : 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A/sources/2' } ,
39
+ instanceId : 'instanceId' ,
40
+ collectionType : 'S2L2A' ,
41
+ datasetSourceId : '2' ,
48
42
defaultStyleName : 'default' ,
49
43
datasourceDefaults : {
50
44
upsampling : 'NEAREST' ,
@@ -56,7 +50,6 @@ export const getLayersFromConfigurationService = [
56
50
} ,
57
51
} ,
58
52
{
59
- '@id' : 'https://services.sentinel-hub.com/configuration/v1/wms/instances/instanceId' ,
60
53
id : 'B8A' ,
61
54
title : 'B8A' ,
62
55
description : 'Band 8A - Vegetation Red Edge - 865 nm|#bc0e10' ,
@@ -65,17 +58,14 @@ export const getLayersFromConfigurationService = [
65
58
name : 'default' ,
66
59
description : 'Default layer style' ,
67
60
dataProduct : {
68
- '@id' :
69
- 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A/dataproducts/dataProductId' ,
61
+ id : 'dataProductId' ,
70
62
} ,
71
63
} ,
72
64
] ,
73
65
orderHint : 0 ,
74
- instance : {
75
- '@id' : 'https://services.sentinel-hub.com/configuration/v1/wms/instances/instanceId' ,
76
- } ,
77
- dataset : { '@id' : 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A' } ,
78
- datasetSource : { '@id' : 'https://services.sentinel-hub.com/configuration/v1/datasets/S2L2A/sources/2' } ,
66
+ instanceId : 'instanceId' ,
67
+ collectionType : 'S2L2A' ,
68
+ datasetSourceId : '2' ,
79
69
defaultStyleName : 'default' ,
80
70
datasourceDefaults : {
81
71
mosaickingOrder : 'mostRecent' ,
@@ -215,7 +205,7 @@ export const expectedResultConfigurationService = (
215
205
evalscript : null as string ,
216
206
evalscriptUrl : null as string ,
217
207
dataProduct :
218
- 'https://services.sentinel-hub.com/configuration/v1 /datasets/S2L2A/dataproducts/dataProductId' ,
208
+ 'https://services.sentinel-hub.com/api/v2/configuration /datasets/S2L2A/dataproducts/dataProductId' ,
219
209
upsampling : null as string ,
220
210
downsampling : null as string ,
221
211
mosaickingOrder : 'mostRecent' ,
0 commit comments