-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOALA-API-Documentation.postman_collection.json
8714 lines (8714 loc) · 371 KB
/
COALA-API-Documentation.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"info": {
"_postman_id": "990bed48-fd11-4171-b452-cef87ee176c2",
"name": "COALA-API-Documentation",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "roi",
"item": [
{
"name": "{roiId}",
"item": [
{
"name": "Provides information on a given region of interest",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/roi/:roiId?srid=<integer>&stats=1",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"query": [
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"
},
{
"key": "stats",
"value": "1",
"description": "When set the response provides information on ROI data availbility on the {indicator, UTM tile} level. \n"
}
],
"variable": [
{
"key": "roiId",
"value": "<string>"
}
]
},
"description": "Provides information on a given region of interest"
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/roi/:roiId?srid=<integer>&stats=1",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"query": [
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"
},
{
"key": "stats",
"value": "1",
"description": "When set the response provides information on ROI data availbility on the {indicator, UTM tile} level. \n"
}
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"example\": {\n \"userId\": \"demo\",\n \"roi\": \"foo\",\n \"period\": \"30 days\",\n \"cloudCovMax\": 50,\n \"utms\": [\n \"54HXC\",\n \"54HWK\"\n ],\n \"geometry\": \"{\\\"type\\\":\\\"MultiPolygon\\\",\\\"coordinates\\\":[[[[142.138073932,-37.94208532],[142.153715044,-38.931429496],[143.419717153,-38.912046738],[143.386942158,-37.923373495],[142.138073932,-37.94208532]]],[[[140.999789091,-31.635005773],[140.999786799,-32.62558044],[142.170152398,-32.620128597],[142.157579092,-31.629758148],[140.999789091,-31.635005773]]]]}\",\n \"indicators\": {\n \"lai\": {\n \"daily\": true,\n \"period\": \"30 days\"\n }\n }\n }\n}"
},
{
"name": "No such region of interest",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/roi/:roiId?srid=<integer>&stats=1",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"query": [
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"
},
{
"key": "stats",
"value": "1",
"description": "When set the response provides information on ROI data availbility on the {indicator, UTM tile} level. \n"
}
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Removes a given Region Of Interest",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId",
"value": "<string>"
}
]
},
"description": "Removes a given Region Of Interest"
},
"response": [
{
"name": "Region of interest deleted",
"originalRequest": {
"method": "DELETE",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
},
{
"name": "No such region of interest",
"originalRequest": {
"method": "DELETE",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Creates/updates a given Region Of Interest.\n\nReturns created/updated region of interest data (see the example in the GET `roi/{roiId}` endpoint).\n\nRegion of interest area can be specified either with an explicit UTM tiles list in the `utms` parameter or w",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"since\": \"<date>\",\n \"until\": \"<date>\",\n \"period\": \"<string>\",\n \"cloudCovMax\": \"<number>\",\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326,\n \"indicators\": {}\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId",
"value": "<string>"
}
]
},
"description": "Creates/updates a given Region Of Interest.\n\nReturns created/updated region of interest data (see the example in the GET `roi/{roiId}` endpoint).\n\nRegion of interest area can be specified either with an explicit UTM tiles list in the `utms` parameter or with a geoJSON geometry in the `geometry` paramater.\n"
},
"response": [
{
"name": "Region of interest updated",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"since\": \"<date>\",\n \"until\": \"<date>\",\n \"period\": \"<string>\",\n \"cloudCovMax\": \"<number>\",\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326,\n \"indicators\": {}\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
},
{
"name": "Region of interest created",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"since\": \"<date>\",\n \"until\": \"<date>\",\n \"period\": \"<string>\",\n \"cloudCovMax\": \"<number>\",\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326,\n \"indicators\": {}\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
},
{
"name": "No such region of interest",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"since\": \"<date>\",\n \"until\": \"<date>\",\n \"period\": \"<string>\",\n \"cloudCovMax\": \"<number>\",\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326,\n \"indicators\": {}\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
}
]
},
{
"name": "Extends a given Region of Interest with additional area specified **either** by the `utms` or `geometry` parameter.\n",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId",
"value": "<string>"
}
]
},
"description": "Extends a given Region of Interest with additional area specified **either** by the `utms` or `geometry` parameter.\n"
},
"response": [
{
"name": "Region of interest updated",
"originalRequest": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
},
{
"name": "Region of interest created",
"originalRequest": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
},
{
"name": "No such region of interest",
"originalRequest": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"utms\": [\n \"<string>\",\n \"<string>\"\n ],\n \"geometry\": {},\n \"srcSrid\": 4326\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/roi/:roiId",
"host": [
"{{baseUrl}}"
],
"path": [
"roi",
":roiId"
],
"variable": [
{
"key": "roiId"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "text",
"header": [],
"cookie": [],
"body": ""
}
]
}
]
},
{
"name": "Provides information on all regions of interest",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/roi?srid=<integer>&stats=1",
"host": [
"{{baseUrl}}"
],
"path": [
"roi"
],
"query": [
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"
},
{
"key": "stats",
"value": "1",
"description": "When set the response provides information on ROI data availbility on the {indicator, UTM tile} level. \n"
}
]
},
"description": "Provides information on all regions of interest"
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/roi?srid=<integer>&stats=1",
"host": [
"{{baseUrl}}"
],
"path": [
"roi"
],
"query": [
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"
},
{
"key": "stats",
"value": "1",
"description": "When set the response provides information on ROI data availbility on the {indicator, UTM tile} level. \n"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"example\": [\n {\n \"userId\": \"demo\",\n \"roi\": \"foo\",\n \"period\": \"30 days\",\n \"cloudCovMax\": 50,\n \"utms\": [\n \"54HXC\",\n \"54HWK\"\n ],\n \"geometry\": \"{\\\"type\\\":\\\"MultiPolygon\\\",\\\"coordinates\\\":[[[[142.138073932,-37.94208532],[142.153715044,-38.931429496],[143.419717153,-38.912046738],[143.386942158,-37.923373495],[142.138073932,-37.94208532]]],[[[140.999789091,-31.635005773],[140.999786799,-32.62558044],[142.170152398,-32.620128597],[142.157579092,-31.629758148],[140.999789091,-31.635005773]]]]}\",\n \"indicators\": {\n \"lai\": {\n \"daily\": true,\n \"period\": \"30 days\"\n }\n }\n }\n ]\n}"
}
]
}
]
},
{
"name": "rgb",
"item": [
{
"name": "`/indicator/{indicatorId}/rasterData` endpoint equivalent for getting true and false color RGB composites.\n\nFor detailed description see the `/indicator/{indicatorId}/rasterData` endpoint. There are only a few noticable differences:\n\n* indicators to be us",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/rgb?r=<string>&g=<string>&b=<string>&polygonId=<integer>&ownerId=<string>&xyzId=<string>&geometry=<string>&bbox=<string>&srcSrid=4326&z=14&buffer=0&date=<date>&period=14&dateFrom=<date>&dateTo=<date>&daily=1&minCover=<float>&scale=raw&format=image/jpeg&rasterFormat=image/png&encode=values&position=center&limit=0&srid=<integer>",
"host": [
"{{baseUrl}}"
],
"path": [
"rgb"
],
"query": [
{
"key": "r",
"value": "<string>",
"description": "Id of an indicator to be used as the 1st (_red_) channel.\n\nThe `/indicator` endpoint provides a list of all available indicators.\n"
},
{
"key": "g",
"value": "<string>",
"description": "Id of an indicator to be used as the 2nd (_green_) channel.\n\nThe `/indicator` endpoint provides a list of all available indicators.\n"
},
{
"key": "b",
"value": "<string>",
"description": "Id of an indicator to be used as the 3rd (_blue_) channel.\n\nThe `/indicator` endpoint provides a list of all available indicators.\n"
},
{
"key": "polygonId",
"value": "<integer>",
"description": "Defines the queried area as a registered polygon with a given id.\n \nIf this parameter is used:\n \n* `ownerId` must be provided as well.\n* authorization is performed against the polygon's owner account (instead of API users accounts)\n"
},
{
"key": "ownerId",
"value": "<string>",
"description": "Id of the `polygonId` owner.\n \nTo be provided only when `polygonId` parameter is used.\n"
},
{
"key": "xyzId",
"value": "<string>",
"description": "Defines the queried area as a XYZ tile in the `x_y_z` format.\n \nSee [here](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames) for details.\n \nCan be combined with `geometry` or `polygonId`. In such a case the returned raster extent will be determined by this parameter but all pixels outside of `geometry`/`polygonId` will be set to no data.\n"
},
{
"key": "geometry",
"value": "<string>",
"description": "Defines the queried area as a geoJSON geometry.\n \nGeometry's projection should be provided with the `srcSrid` parameter.\n"
},
{
"key": "bbox",
"value": "<string>",
"description": "Defines the queried area as a bounding box in the `x1,y1,x2,y2` format.\n \nCoordinates projection should be provided with the `srcSrid` parameter.\n"
},
{
"key": "srcSrid",
"value": "4326",
"description": "An EPSG code of request's spatial parameters (like `geometry`), e.g. 4326 (WGS-84) or 3857 (Web Mercator).\n"
},
{
"key": "z",
"value": "14",
"description": "Raster data zoom level.\n \nThe raster piramids level to be used to fetch the data from - see [here](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Resolution_and_Scale) for details.\n \nRange of available values vary between indicators. You can check it using the `/indicator` endpoint.\n\nThe default value is the maximum value available for a given indicator.\n"
},
{
"key": "buffer",
"value": "0",
"description": "A buffer size (in meters) to be applied to the `geometry`.\n \nUsefeul when `geometry` is a point or to assure returned raster data contains also pixels which centroids don't intersect th `geometry`.\n\nWhen negative number is provided, the final `geometry` will be a bounding box of original `geometry` with a positive buffer value applied.\n"
},
{
"key": "date",
"value": "<date>",
"description": "An alternative way of defining the time period. If `dateFrom` or `dateTo` aren't provided, their default values is `date - period` and `date + period`, respectively.\n\nA value of `now` indicates the current date.\n\nA default value is the current date.\n"
},
{
"key": "period",
"value": "14",
"description": "An alternative way of defining the time period. If `dateFrom` or `dateTo` aren't provided, their default values is `date - period` and `date + period`, respectively.\n"
},
{
"key": "dateFrom",
"value": "<date>",
"description": "Beginning of the queried time period.\n\nThe default value is `date - period`.\n"
},
{
"key": "dateTo",
"value": "<date>",
"description": "End of the queried time period.\n\nThe default value is `date + period`.\n"
},
{
"key": "daily",
"value": "1",
"description": "If not present or with the `0` value, data is gathered from actual acquistions.\n\nIf `daily=1`, interpolated daily data is used instead. To assure the interpolated data exists, create a corresponding Region of Interest (see the `PUT /roi/{roiId}` endpoint) with a given indicator's `daily` property set to `true`.\n"
},
{
"key": "minCover",
"value": "<float>",
"description": "Minimum coverage provided by an acquisition to be included in the response.\n \n0 means no coverage and 1 means full coverage only.\n \nProviding a value will cause coverage statistics to be included in the response.\n\nDefault value varies between indicators. You can check it using the `/indciator` endpoint.\n"
},
{
"key": "scale",
"value": "raw",
"description": "Determines the way raster values are scaled.\n \n* raw - use values as they are stored in the database (e.g. 0-80 for LAI)\n* real - rescale values to indicator's phisical values range (e.g. 0-8 fro LAI)\n* stdfloat - standardize to mean 0 and standard deviation 1 within the scene\n* stdbyte - standardize to mean 127 and standard deviation 25 within the scene\n* stretch - transform in a way the minimum value within the scene equals 0 and maximum equals 254\n* grayscale - transform in a way minimum phisical value of the indicator corresponds to 0 and maximum to 254\n"
},
{
"key": "format",
"value": "image/jpeg",
"description": "Response format.\n \nThe actual content of the `application/*` responses depends on `encode` parameter value.\n\n`image/tiff` response format returns acquisitions stacked as bands.\n\nAs `image/jpeg`, `image/png` and geoJSON response formats are unable to return more that one acquisition, only the most recent one is returned.\n"
},
{
"key": "rasterFormat",
"value": "image/png",
"description": "Returned raster data format.\n \nIt doesn't determine the response format (this is determined by the `format` parameter) and is affected by the `encode` parameter.\n"
},
{
"key": "encode",
"value": "values",
"description": "Determines the way raster data values are represented.\n\n* `raw` means raster data will be provided as they are. This value is set automatically for `image/*` reponse formats (when `format` equals to `image/png`, `image/jpeg` or `image/tiff`) and is invalid for other response formats.\n* `base64` and `hex` means raster data will be base64 or hex encoded. This settings are valid only when `format` equals to `application/json` and `rasterFormat` is one of `image/png`, `image/jpeg` or `image/tiff`.\n* `values` causes pixes values to be converted into a vector representation. If the `format` indicates geoJSON response, every pixel will be turned into a geoJSON feature and for `application/json` response format pixels will be represented by a collection of objects providing pixel position and value. The way pixel position is represented is determined by the `position` parameter.\n* `stats` causes raster data to be skipped and only summary statistics (valid pixel count, requested area coverage, min, max, mean value, standard deviation) to be returned.\n"
},
{
"key": "position",
"value": "center",
"description": "The position within a pixel being used as a pixel's vector representation.\n\n* `corner` indicates upper-left corner\n* `center` indicates center\n* `polygon` indicates a polygon covering whole pixel area\n"
},
{
"key": "limit",
"value": "0",
"description": "Maximum number of acqusitions returned (0 means no limit).\n"
},
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"
}
]
},
"description": "`/indicator/{indicatorId}/rasterData` endpoint equivalent for getting true and false color RGB composites.\n\nFor detailed description see the `/indicator/{indicatorId}/rasterData` endpoint. There are only a few noticable differences:\n\n* indicators to be used as R/G/B channels are indicated using `r`, `g` and `b` query parameters (see below) instead of the `{indicatorId}` path parameter\n* the `colorMap` parameter isn't supported\n* as a single date image is already multiband, it's impossible to stack output of many dates into one `image/tiff`\n\nIt's worth noting that:\n\n* Supplied parameters are applied to all bands.\n* If an indicator is not stored on the `[0, 255]` scale (see the `grayscaleMinValue` and `grayscaleMaxValue` reported for a given indicator by the `/indicator` endpoint) it might be worth to set `scale` to `grayscale`.\n"
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/rgb?r=<string>&g=<string>&b=<string>&polygonId=<integer>&ownerId=<string>&xyzId=<string>&geometry=<string>&bbox=<string>&srcSrid=4326&z=14&buffer=0&date=<date>&period=14&dateFrom=<date>&dateTo=<date>&daily=1&minCover=<float>&scale=raw&format=image/jpeg&rasterFormat=image/png&encode=values&position=center&limit=0&srid=<integer>",
"host": [
"{{baseUrl}}"
],
"path": [
"rgb"
],
"query": [
{
"key": "r",
"value": "<string>",
"description": "Id of an indicator to be used as the 1st (_red_) channel.\n\nThe `/indicator` endpoint provides a list of all available indicators.\n"
},
{
"key": "g",
"value": "<string>",
"description": "Id of an indicator to be used as the 2nd (_green_) channel.\n\nThe `/indicator` endpoint provides a list of all available indicators.\n"
},
{
"key": "b",
"value": "<string>",
"description": "Id of an indicator to be used as the 3rd (_blue_) channel.\n\nThe `/indicator` endpoint provides a list of all available indicators.\n"
},
{
"key": "polygonId",
"value": "<integer>",
"description": "Defines the queried area as a registered polygon with a given id.\n \nIf this parameter is used:\n \n* `ownerId` must be provided as well.\n* authorization is performed against the polygon's owner account (instead of API users accounts)\n"
},
{
"key": "ownerId",
"value": "<string>",
"description": "Id of the `polygonId` owner.\n \nTo be provided only when `polygonId` parameter is used.\n"
},
{
"key": "xyzId",
"value": "<string>",
"description": "Defines the queried area as a XYZ tile in the `x_y_z` format.\n \nSee [here](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames) for details.\n \nCan be combined with `geometry` or `polygonId`. In such a case the returned raster extent will be determined by this parameter but all pixels outside of `geometry`/`polygonId` will be set to no data.\n"
},
{
"key": "geometry",
"value": "<string>",
"description": "Defines the queried area as a geoJSON geometry.\n \nGeometry's projection should be provided with the `srcSrid` parameter.\n"
},
{
"key": "bbox",
"value": "<string>",
"description": "Defines the queried area as a bounding box in the `x1,y1,x2,y2` format.\n \nCoordinates projection should be provided with the `srcSrid` parameter.\n"
},
{
"key": "srcSrid",
"value": "4326",
"description": "An EPSG code of request's spatial parameters (like `geometry`), e.g. 4326 (WGS-84) or 3857 (Web Mercator).\n"
},
{
"key": "z",
"value": "14",
"description": "Raster data zoom level.\n \nThe raster piramids level to be used to fetch the data from - see [here](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Resolution_and_Scale) for details.\n \nRange of available values vary between indicators. You can check it using the `/indicator` endpoint.\n\nThe default value is the maximum value available for a given indicator.\n"
},
{
"key": "buffer",
"value": "0",
"description": "A buffer size (in meters) to be applied to the `geometry`.\n \nUsefeul when `geometry` is a point or to assure returned raster data contains also pixels which centroids don't intersect th `geometry`.\n\nWhen negative number is provided, the final `geometry` will be a bounding box of original `geometry` with a positive buffer value applied.\n"
},
{
"key": "date",
"value": "<date>",
"description": "An alternative way of defining the time period. If `dateFrom` or `dateTo` aren't provided, their default values is `date - period` and `date + period`, respectively.\n\nA value of `now` indicates the current date.\n\nA default value is the current date.\n"
},
{
"key": "period",
"value": "14",
"description": "An alternative way of defining the time period. If `dateFrom` or `dateTo` aren't provided, their default values is `date - period` and `date + period`, respectively.\n"
},
{
"key": "dateFrom",
"value": "<date>",
"description": "Beginning of the queried time period.\n\nThe default value is `date - period`.\n"
},
{
"key": "dateTo",
"value": "<date>",
"description": "End of the queried time period.\n\nThe default value is `date + period`.\n"
},
{
"key": "daily",
"value": "1",
"description": "If not present or with the `0` value, data is gathered from actual acquistions.\n\nIf `daily=1`, interpolated daily data is used instead. To assure the interpolated data exists, create a corresponding Region of Interest (see the `PUT /roi/{roiId}` endpoint) with a given indicator's `daily` property set to `true`.\n"
},
{
"key": "minCover",
"value": "<float>",
"description": "Minimum coverage provided by an acquisition to be included in the response.\n \n0 means no coverage and 1 means full coverage only.\n \nProviding a value will cause coverage statistics to be included in the response.\n\nDefault value varies between indicators. You can check it using the `/indciator` endpoint.\n"
},
{
"key": "scale",
"value": "raw",
"description": "Determines the way raster values are scaled.\n \n* raw - use values as they are stored in the database (e.g. 0-80 for LAI)\n* real - rescale values to indicator's phisical values range (e.g. 0-8 fro LAI)\n* stdfloat - standardize to mean 0 and standard deviation 1 within the scene\n* stdbyte - standardize to mean 127 and standard deviation 25 within the scene\n* stretch - transform in a way the minimum value within the scene equals 0 and maximum equals 254\n* grayscale - transform in a way minimum phisical value of the indicator corresponds to 0 and maximum to 254\n"
},
{
"key": "format",
"value": "image/jpeg",
"description": "Response format.\n \nThe actual content of the `application/*` responses depends on `encode` parameter value.\n\n`image/tiff` response format returns acquisitions stacked as bands.\n\nAs `image/jpeg`, `image/png` and geoJSON response formats are unable to return more that one acquisition, only the most recent one is returned.\n"
},
{
"key": "rasterFormat",
"value": "image/png",
"description": "Returned raster data format.\n \nIt doesn't determine the response format (this is determined by the `format` parameter) and is affected by the `encode` parameter.\n"
},
{
"key": "encode",
"value": "values",
"description": "Determines the way raster data values are represented.\n\n* `raw` means raster data will be provided as they are. This value is set automatically for `image/*` reponse formats (when `format` equals to `image/png`, `image/jpeg` or `image/tiff`) and is invalid for other response formats.\n* `base64` and `hex` means raster data will be base64 or hex encoded. This settings are valid only when `format` equals to `application/json` and `rasterFormat` is one of `image/png`, `image/jpeg` or `image/tiff`.\n* `values` causes pixes values to be converted into a vector representation. If the `format` indicates geoJSON response, every pixel will be turned into a geoJSON feature and for `application/json` response format pixels will be represented by a collection of objects providing pixel position and value. The way pixel position is represented is determined by the `position` parameter.\n* `stats` causes raster data to be skipped and only summary statistics (valid pixel count, requested area coverage, min, max, mean value, standard deviation) to be returned.\n"
},
{
"key": "position",
"value": "center",
"description": "The position within a pixel being used as a pixel's vector representation.\n\n* `corner` indicates upper-left corner\n* `center` indicates center\n* `polygon` indicates a polygon covering whole pixel area\n"
},
{
"key": "limit",
"value": "0",
"description": "Maximum number of acqusitions returned (0 means no limit).\n"
},
{
"key": "srid",
"value": "<integer>",
"description": "An EPSG code of returned spatial objects projection, e.g. 4326 (WGS-84) or 3857 (Web Mercator)\n\nIf not provided `srcSrid` parameter value is used and if `srcSrid` parameter isn't provided as well, a default value of `4326` is assumed.\n"