You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/hdar.Rmd
+63-5Lines changed: 63 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -262,14 +262,21 @@ query_template
262
262
"itemsPerPage": 11,
263
263
"startIndex": 0,
264
264
"uid": "__### Value of string type with pattern: [\\w-]+",
265
-
"productType": "PPI , QFLAG",
265
+
"productType": "PPI",
266
266
"_comment_productType": "One of",
267
+
"_values_productType": ["PPI", "QFLAG"],
267
268
"platformSerialIdentifier": "S2A, S2B",
268
269
"_comment_platformSerialIdentifier": "One of",
270
+
"_values_platformSerialIdentifier": [
271
+
"S2A, S2B"
272
+
],
269
273
"tileId": "__### Value of string type with pattern: [\\w-]+",
270
274
"productVersion": "__### Value of string type with pattern: [\\w-]+",
271
275
"resolution": "10",
272
276
"_comment_resolution": "One of",
277
+
"_values_resolution": [
278
+
"10"
279
+
],
273
280
"processingDate": "__### Value of string type with format: date-time",
274
281
"start": "__### Value of string type with format: date-time",
275
282
"end": "__### Value of string type with format: date-time",
@@ -288,6 +295,8 @@ You can and should customize the generated query template to fit your specific n
288
295
289
296
Placeholders are used when there is no way to derive the value from the metadata endpoint, while comment fields appear when the field has a value already defined, offering additional context for customizing the query.
290
297
298
+
Furthermore, fields prefixed with `_values_` contain all possible values for a specific field. This allows you to programmatically reference them in your code with ease, simplifying customization and ensuring that you have access to valid options when configuring the query.
299
+
291
300
To modify the query, it is often easier to transform the JSON into an R list using the `jsonlite::fromJSON()` function:
292
301
293
302
```{r, eval = FALSE}
@@ -298,15 +307,33 @@ query_template
298
307
$dataset_id
299
308
[1] "EO:EEA:DAT:CLMS_HRVPP_ST"
300
309
310
+
$itemsPerPage
311
+
[1] 11
312
+
313
+
$startIndex
314
+
[1] 0
315
+
301
316
$uid
302
317
[1] "__### Value of string type with pattern: [\\w-]+"
303
318
304
319
$productType
305
320
[1] "PPI"
306
321
322
+
$`_comment_productType`
323
+
[1] "One of"
324
+
325
+
$`_values_productType`
326
+
[1] "PPI" "QFLAG"
327
+
307
328
$platformSerialIdentifier
308
329
[1] "S2A, S2B"
309
330
331
+
$`_comment_platformSerialIdentifier`
332
+
[1] "One of"
333
+
334
+
$`_values_platformSerialIdentifier`
335
+
[1] "S2A, S2B"
336
+
310
337
$tileId
311
338
[1] "__### Value of string type with pattern: [\\w-]+"
312
339
@@ -316,14 +343,20 @@ $productVersion
316
343
$resolution
317
344
[1] "10"
318
345
346
+
$`_comment_resolution`
347
+
[1] "One of"
348
+
349
+
$`_values_resolution`
350
+
[1] "10"
351
+
319
352
$processingDate
320
-
[1] "__### Value of string"
353
+
[1] "__### Value of string type with format: date-time"
321
354
322
355
$start
323
-
[1] "__### Value of string"
356
+
[1] "__### Value of string type with format: date-time"
324
357
325
358
$end
326
-
[1] "__### Value of string"
359
+
[1] "__### Value of string type with format: date-time"
0 commit comments