-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.yaml
1631 lines (1586 loc) · 59.4 KB
/
openapi.yaml
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
components:
parameters:
assetquery:
description: query for properties in assets (e.g. mediatype). Use the JSON form of the assetQueryFilter used in POST.
in: query
name: assetquery
required: false
schema:
type: string
bbox:
description: |-
Only features that have a geometry that intersects the bounding box are selected.
The bounding box is provided as four or six numbers, depending on whether the
coordinate reference system includes a vertical axis (height or depth):
* Lower left corner, coordinate axis 1
* Lower left corner, coordinate axis 2
* Minimum value, coordinate axis 3 (optional)
* Upper right corner, coordinate axis 1
* Upper right corner, coordinate axis 2
* Maximum value, coordinate axis 3 (optional)
The coordinate reference system of the values is WGS 84 longitude/latitude
(http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate
reference system is specified in the parameter `bbox-crs`.
For WGS 84 longitude/latitude the values are in most cases the sequence of
minimum longitude, minimum latitude, maximum longitude and maximum latitude.
However, in cases where the box spans the antimeridian the first value
(west-most box edge) is larger than the third value (east-most box edge).
If the vertical axis is included, the third and the sixth number are
the bottom and the top of the 3-dimensional bounding box.
If a feature has multiple spatial geometry properties, it is the decision of the
server whether only a single spatial geometry property is used to determine
the extent or all relevant geometries.
explode: false
in: query
name: bbox
required: false
schema:
items:
type: number
maxItems: 6
minItems: 4
type: array
style: form
collectionId:
description: local identifier of a collection
in: path
name: collectionId
required: true
schema:
type: string
collectionsArray:
description: |
Array of Collection IDs to include in the search for items.
Only Items in one of the provided Collections will be searched
explode: false
in: query
name: collections
required: false
schema:
$ref: '#/components/schemas/collectionsArray'
datetime:
description: |-
Either a date-time or an interval, open or closed. Date and time expressions
adhere to RFC 3339. Open intervals are expressed using double-dots.
Examples:
* A date-time: "2018-02-12T23:20:50Z"
* A closed interval: "2018-02-12T00:00:00Z/2018-03-18T12:31:12Z"
* Open intervals: "2018-02-12T00:00:00Z/.." or "../2018-03-18T12:31:12Z"
Only features that have a temporal property that intersects the value of
`datetime` are selected.
If a feature has multiple temporal properties, it is the decision of the
server whether only a single temporal property is used to determine
the extent or all relevant temporal properties.
explode: false
in: query
name: datetime
required: false
schema:
type: string
style: form
featureId:
description: local identifier of a feature
in: path
name: featureId
required: true
schema:
type: string
ids:
description: |-
Array of Item ids to return. All other filter parameters that further
restrict the number of search results are ignored
explode: false
in: query
name: ids
required: false
schema:
$ref: '#/components/schemas/ids'
limit:
description: |-
The optional limit parameter limits the number of items that are presented in the response document.
Only items are counted that are on the first level of the collection in the response document.
Nested objects contained within the explicitly requested items shall not be counted.
Minimum = 1. Maximum = 10000. Default = 10.
explode: false
in: query
name: limit
required: false
schema:
default: 10
maximum: 10000
minimum: 1
type: integer
style: form
query:
description: query for properties in items. Use the JSON form of the queryFilter used in POST.
in: query
name: query
required: false
schema:
type: string
responses:
Collection:
content:
application/json:
schema:
$ref: '#/components/schemas/collection'
text/html:
schema:
type: string
description: |-
Information about the feature collection with id `collectionId`.
The response contains a link to the items in the collection
(path `/collections/{collectionId}/items`, link relation `items`)
as well as key information about the collection. This information
includes:
* A local identifier for the collection that is unique for the dataset;
* A list of coordinate reference systems (CRS) in which geometries may be returned by the server. The first CRS is the default coordinate reference system (the default is always WGS 84 with axis order longitude/latitude);
* An optional title and description for the collection;
* An optional extent that can be used to provide an indication of the spatial and temporal extent of the collection - typically derived from the data;
* An optional indicator about the type of the items in the collection (the default value, if the indicator is not provided, is 'feature').
Collections:
content:
application/json:
schema:
$ref: '#/components/schemas/collections'
text/html:
schema:
type: string
description: |-
The feature collections shared by this API.
The dataset is organized as one or more feature collections. This resource
provides information about and access to the collections.
The response contains the list of collections. For each collection, a link
to the items in the collection (path `/collections/{collectionId}/items`,
link relation `items`) as well as key information about the collection.
This information includes:
* A local identifier for the collection that is unique for the dataset;
* A list of coordinate reference systems (CRS) in which geometries may be returned by the server. The first CRS is the default coordinate reference system (the default is always WGS 84 with axis order longitude/latitude);
* An optional title and description for the collection;
* An optional extent that can be used to provide an indication of the spatial and temporal extent of the collection - typically derived from the data;
* An optional indicator about the type of the items in the collection (the default value, if the indicator is not provided, is 'feature').
ConformanceDeclaration:
content:
application/json:
example:
conformsTo:
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/html
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson
schema:
$ref: '#/components/schemas/confClasses'
text/html:
schema:
type: string
description: |-
The URIs of all conformance classes supported by the server.
To support "generic" clients that want to access multiple
OGC API Features implementations - and not "just" a specific
API / server, the server declares the conformance
classes it implements and conforms to.
Feature:
content:
application/geo+json:
schema:
$ref: '#/components/schemas/featureGeoJSON'
text/html:
schema:
type: string
description: |-
fetch the feature with id `featureId` in the feature collection
with id `collectionId`
Features:
content:
application/geo+json:
schema:
$ref: '#/components/schemas/featureCollectionGeoJSON'
text/html:
schema:
type: string
description: |-
The response is a document consisting of features in the collection.
The features included in the response are determined by the server
based on the query parameters of the request. To support access to
larger collections without overloading the client, the API supports
paged access with links to the next page, if more features are selected
that the page size.
The `bbox` and `datetime` parameter can be used to select only a
subset of the features in the collection (the features that are in the
bounding box or time interval). The `bbox` parameter matches all features
in the collection that are not associated with a location, too. The
`datetime` parameter matches all features in the collection that are
not associated with a time stamp or interval, too.
The `limit` parameter may be used to control the subset of the
selected features that should be returned in the response, the page size.
Each page may include information about the number of selected and
returned features (`numberMatched` and `numberReturned`) as well as
links to support paging (link relation `next`).
InvalidParameter:
content:
application/json:
schema:
$ref: '#/components/schemas/exception'
text/html:
schema:
type: string
description: A query parameter has an invalid value.
LandingPage:
content:
application/json:
example:
description: Catalog of Swiss Geodata Downloads
id: ch
links:
- href: http://data.geo.admin.ch/api/stac/v0.9/search
rel: search
title: Search across feature collections
type: application/json
stac_version: 1.0.0-beta.2
title: data.geo.admin.ch
schema:
$ref: '#/components/schemas/landingPage'
text/html:
schema:
type: string
description: |-
The landing page provides links to the API definition
(link relations `service-desc` and `service-doc`),
the Conformance declaration (path `/conformance`,
link relation `conformance`), and the Feature
Collections (path `/collections`, link relation
`data`).
NotFound:
description: The requested URI was not found.
ServerError:
content:
application/json:
schema:
$ref: '#/components/schemas/exception'
text/html:
schema:
type: string
description: A server error occurred.
schemas:
assetQueryFilter:
description: Allows users to query asset properties for specific values
properties:
assetquery:
$ref: '#/components/schemas/assetquery'
type: object
assetQueryProp:
anyOf:
- description: if the object doesn't contain any of the operators, it is equivalent to using the equals operator
- description: Match using an operator
properties:
contains:
description: Find items with a property that contains the specified literal string, e.g., matches ".*<STRING>.*". A case-insensitive comparison must be performed.
type: string
endsWith:
description: Find items with a property that ends with the specified string. A case-insensitive comparison must be performed.
type: string
eq:
description: Find items with a property that is equal to the specified value. For strings, a case-insensitive comparison must be performed.
nullable: true
oneOf:
- type: string
- type: number
- type: boolean
in:
description: Find items with a property that equals at least one entry in the specified array. A case-insensitive comparison must be performed.
items:
oneOf:
- type: string
- type: number
type: array
startsWith:
description: Find items with a property that begins with the specified string. A case-insensitive comparison must be performed.
type: string
type: object
description: Apply query operations to a specific property
assetquery:
additionalProperties:
$ref: '#/components/schemas/assetQueryProp'
description: Define which properties of the asset to query and the operatations to apply
example:
mediatype:
eq: image/geo+tiff
type: object
bbox:
description: "Only features that have a geometry that intersects the bounding box are\nselected. The bounding box is provided as four or six numbers,\ndepending on whether the coordinate reference system includes a\nvertical axis (elevation or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2 \n* Lower left corner, coordinate axis 3 (optional) \n* Upper right corner, coordinate axis 1 \n* Upper right corner, coordinate axis 2 \n* Upper right corner, coordinate axis 3 (optional)\n\nThe coordinate reference system of the values is WGS84\nlongitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless\na different coordinate reference system is specified in the parameter\n`bbox-crs`.\n\nFor WGS84 longitude/latitude the values are in most cases the sequence\nof minimum longitude, minimum latitude, maximum longitude and maximum\nlatitude. However, in cases where the box spans the antimeridian the\nfirst value (west-most box edge) is larger than the third value\n(east-most box edge).\n\nIf a feature has multiple spatial geometry properties, it is the\ndecision of the server whether only a single spatial geometry property\nis used to determine the extent or all relevant geometries.\n\nExample: The bounding box of the New Zealand Exclusive Economic Zone in\nWGS 84 (from 160.6°E to 170°W and from 55.95°S to 25.89°S) would be\nrepresented in JSON as `[160.6, -55.95, -170, -25.89]` and in a query as\n`bbox=160.6,-55.95,-170,-25.89`."
example:
- -110
- 39.5
- -105
- 40.5
items:
type: number
maxItems: 6
minItems: 4
type: array
bboxFilter:
description: Only return items that intersect the provided bounding box.
properties:
bbox:
$ref: '#/components/schemas/bbox'
type: object
collection:
example:
created: "2020-07-14T12:30:00Z"
description: Swiss Map Raster are a conversion of the map image into a digital form with no direct bearing on the individual map elements.The information is structured only in colour layers. Swiss Map Raster pixel maps are ideal for finding background information for a broad variety of screen applications, web and mobile applications and services, as well as for geographic information systems. They can also be used as basic maps for a variety of purposes (digital printing, plots, offset printing, etc.).
extent:
spatial:
bbox:
- - 6.02260949059
- 45.7769477403
- 10.4427014502
- 47.8308275417
temporal:
interval:
- - "2012-01-01T00:00:00Z"
- "2020-12-31T23:59:59Z"
id: ch.swisstopo.pixelkarte-farbe-pk50.noscale
license: proprietary
links:
- href: https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale
rel: self
- href: https://data.geo.admin.ch/api/stac/v0.9/
rel: root
- href: https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/items
rel: item
- href: https://www.swisstopo.admin.ch/en/home/meta/conditions/geodata/free-geodata.html
rel: license
title: Licence for the free geodata of the Federal Office of Topography swisstopo
- href: https://www.geocat.ch/geonetwork/srv/eng/catalog.search#/metadata/4c8c7c58-61c7-4a61-8e7a-6ffb95d183df
rel: describedby
providers:
- name: Federal Office of Topography - swisstopo
roles:
- producer
- licensor
url: https://www.swisstopo.admin.ch
stac_extensions:
- proj
- https://data.geo.admin.ch/stac/geoadmin-extension/1.0/schema.json
stac_version: 1.0.0-beta.2
summaries:
geoadmin:variant:
- - description: Grayscale combination with shading
name: kgrel
- description: Color combination without shading
name: komb
- description: Color combination with shading
name: krel
gsd:
- 2.5
proj:epsg:
- 2056
title: National Map 1:50'000
updated: "2020-07-14T12:30:00Z"
properties:
crs:
default:
- http://www.opengis.net/def/crs/OGC/1.3/CRS84
description: the list of coordinate reference systems supported by the service
example:
- http://www.opengis.net/def/crs/OGC/1.3/CRS84
- http://www.opengis.net/def/crs/EPSG/0/4326
items:
type: string
type: array
description:
$ref: '#/components/schemas/description'
description: a description of the features in the collection
example: An address.
type: string
extent:
$ref: '#/components/schemas/extent'
id:
description: identifier of the collection used, for example, in URIs
example: address
type: string
itemType:
default: feature
description: indicator about the type of the items in the collection (the default value is 'feature').
type: string
keywords:
description: List of keywords describing the collection.
items:
type: string
type: array
license:
$ref: '#/components/schemas/license'
links:
example:
- href: http://data.example.com/buildings
rel: item
- href: http://example.com/concepts/buildings.html
rel: describedBy
type: text/html
items:
$ref: '#/components/schemas/link'
type: array
providers:
$ref: '#/components/schemas/providers'
stac_extensions:
$ref: '#/components/schemas/stac_extensions'
stac_version:
$ref: '#/components/schemas/stac_version'
summaries:
additionalProperties:
oneOf:
- items:
description: A value of any type.
title: Set of values
type: array
- description: |-
By default, only ranges with a minimum and a maximum value can
be specified. Ranges can be specified for ordinal values only,
which means they need to have a rank order. Therefore, ranges
can only be specified for numbers and some special types of
strings. Examples: grades (A to F), dates or times.
Implementors are free to add other derived statistical values
to the object, for example `mean` or `stddev`.
properties:
max:
anyOf:
- type: string
- type: number
min:
anyOf:
- type: string
- type: number
required:
- min
- max
title: Statistics
type: object
description: |-
Summaries are either a unique set of all available values *or*
statistics. Statistics by default only specify the range (minimum
and maximum values), but can optionally be accompanied by additional
statistical values. The range can specify the potential range of
values, but it is recommended to be as precise as possible. The set
of values must contain at least one element and it is strongly
recommended to list all values. It is recommended to list as many
properties as reasonable so that consumers get a full overview of
the Collection. Properties that are covered by the Collection
specification (e.g. `providers` and `license`) may not be repeated
in the summaries.
type: object
title:
description: human readable title of the collection
example: address
type: string
required:
- id
- links
- stac_version
- description
- license
- extent
type: object
collections:
properties:
collections:
items:
$ref: '#/components/schemas/collection'
type: array
links:
example:
- href: https://data.geo.admin.ch/api/stac/v0.9/collections
rel: self
- href: https://data.geo.admin.ch/api/stac/v0.9/collections?startindex=10
rel: next
required:
- links
- collections
type: object
collectionsArray:
description: |-
Array of Collection IDs to include in the search for items.
Only Items in one of the provided Collections will be searched.
items:
type: string
type: array
collectionsFilter:
description: Only returns the collections specified
properties:
collections:
$ref: '#/components/schemas/collectionsArray'
type: object
confClasses:
properties:
conformsTo:
items:
type: string
type: array
required:
- conformsTo
type: object
datetime:
description: |-
Either a date-time or an interval, open or closed. Date and time
expressions adhere to RFC 3339. Open intervals are expressed using
double-dots.
Examples:
* A date-time: "2018-02-12T23:20:50Z"
* A closed interval: "2018-02-12T00:00:00Z/2018-03-18T12:31:12Z"
* Open intervals: "2018-02-12T00:00:00Z/.." or "../2018-03-18T12:31:12Z"
Only features that have a temporal property that intersects the value of
`datetime` are selected.
If a feature has multiple temporal properties, it is the decision of the
server whether only a single temporal property is used to determine
the extent or all relevant temporal properties.
example: 2018-02-12T00:00:00Z/2018-03-18T12:31:12Z
type: string
datetimeFilter:
description: An object representing a date+time based filter.
properties:
datetime:
$ref: '#/components/schemas/datetime'
type: object
description:
description: |-
Detailed multi-line description to fully explain the catalog or
collection.
[CommonMark 0.29](http://commonmark.org/) syntax MAY be used for rich
text representation.
type: string
exception:
description: 'Information about the exception: an error code plus an optional description.'
properties:
code:
type: string
description:
type: string
required:
- code
type: object
extent:
description: |-
The extent of the features in the collection. In the Core only spatial and temporal
extents are specified. Extensions may add additional members to represent other
extents, for example, thermal or pressure ranges.
properties:
spatial:
description: The spatial extent of the features in the collection.
properties:
bbox:
description: |-
One or more bounding boxes that describe the spatial extent of the dataset.
In the Core only a single bounding box is supported. Extensions may support
additional areas. If multiple areas are provided, the union of the bounding
boxes describes the spatial extent.
items:
description: |-
Each bounding box is provided as four or six numbers, depending on
whether the coordinate reference system includes a vertical axis
(height or depth):
* Lower left corner, coordinate axis 1
* Lower left corner, coordinate axis 2
* Minimum value, coordinate axis 3 (optional)
* Upper right corner, coordinate axis 1
* Upper right corner, coordinate axis 2
* Maximum value, coordinate axis 3 (optional)
The coordinate reference system of the values is WGS 84 longitude/latitude
(http://www.opengis.net/def/crs/OGC/1.3/CRS84) unless a different coordinate
reference system is specified in `crs`.
For WGS 84 longitude/latitude the values are in most cases the sequence of
minimum longitude, minimum latitude, maximum longitude and maximum latitude.
However, in cases where the box spans the antimeridian the first value
(west-most box edge) is larger than the third value (east-most box edge).
If the vertical axis is included, the third and the sixth number are
the bottom and the top of the 3-dimensional bounding box.
If a feature has multiple spatial geometry properties, it is the decision of the
server whether only a single spatial geometry property is used to determine
the extent or all relevant geometries.
example:
- -180
- -90
- 180
- 90
items:
type: number
maxItems: 6
minItems: 4
type: array
minItems: 1
type: array
crs:
default: http://www.opengis.net/def/crs/OGC/1.3/CRS84
description: |-
Coordinate reference system of the coordinates in the spatial extent
(property `bbox`). The default reference system is WGS 84 longitude/latitude.
In the Core this is the only supported coordinate reference system.
Extensions may support additional coordinate reference systems and add
additional enum values.
enum:
- http://www.opengis.net/def/crs/OGC/1.3/CRS84
type: string
required:
- bbox
type: object
temporal:
description: The temporal extent of the features in the collection.
properties:
interval:
description: |-
One or more time intervals that describe the temporal extent of the dataset.
The value `null` is supported and indicates an open time intervall.
In the Core only a single time interval is supported. Extensions may support
multiple intervals. If multiple intervals are provided, the union of the
intervals describes the temporal extent.
items:
description: |-
Begin and end times of the time interval. The timestamps
are in the coordinate reference system specified in `trs`. By default
this is the Gregorian calendar.
example:
- "2011-11-11T12:22:11Z"
- null
items:
format: date-time
nullable: true
type: string
maxItems: 2
minItems: 2
type: array
minItems: 1
type: array
trs:
default: http://www.opengis.net/def/uom/ISO-8601/0/Gregorian
description: |-
Coordinate reference system of the coordinates in the temporal extent
(property `interval`). The default reference system is the Gregorian calendar.
In the Core this is the only supported temporal reference system.
Extensions may support additional temporal reference systems and add
additional enum values.
enum:
- http://www.opengis.net/def/uom/ISO-8601/0/Gregorian
type: string
required:
- interval
type: object
required:
- spatial
- temporal
type: object
featureCollectionGeoJSON:
properties:
features:
items:
$ref: '#/components/schemas/featureGeoJSON'
type: array
links:
example:
- href: https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/items
rel: self
- href: https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/items?startindex=10
rel: next
numberMatched:
example: 256
numberReturned:
example: 10
timeStamp:
example: "2020-07-15T12:30:00Z"
type:
enum:
- FeatureCollection
type: string
required:
- type
- features
type: object
featureGeoJSON:
example:
assets:
2056-kgrs-2.5 - GeoTIFF:
checksum:multihash: 90e402107a7f2588a85362b9beea2a12d4514d45
created: "2020-07-14T12:30:00Z"
geoadmin:variant: kgrs
gsd: 2.5
href: https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-kgrs-2.5.tiff
proj:epsg: "2056"
type: image/tiff; application=geotiff
updated: "2020-07-14T12:30:00Z"
2056-komb-2.5 - GeoTIFF:
checksum:multihash: 90d402107a7f2588a85362b9beea2a12d4514d45
created: "2020-07-14T12:30:00Z"
geoadmin:variant: komb
gsd: 2.5
href: https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-komb-2.5.tiff
proj:epsg: "2056"
type: image/tiff; application=geotiff
updated: "2020-07-14T12:30:00Z"
2056-krel-2.5 - GeoTIFF:
checksum:multihash: 90f402107a7f2588a85362b9beea2a12d4514d45
created: "2020-07-14T12:30:00Z"
geoadmin:variant: krel
gsd: 2.5
href: https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-krel-2.5.tiff
proj:epsg: "2056"
type: image/tiff; application=geotiff
updated: "2020-07-14T12:30:00Z"
bbox:
- 7.242974548172171
- 46.357085154660915
- 7.699524647567326
- 46.57310580640624
collection: ch.swisstopo.pixelkarte-farbe-pk50.noscale
geometry:
coordinates:
- - - 7.242974548172171
- 46.57310580640624
- - 7.243756483316452
- 46.35721185723752
- - 7.698490766144817
- 46.357085154660915
- - 7.699524647567326
- 46.57297861624267
- - 7.242974548172171
- 46.57310580640624
type: Polygon
id: smr50-263-2016
links:
- href: https://data.geo.admin.ch/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/items/smr50-263-2016
rel: self
- href: https://data.geo.admin.ch/api/stac/v0.9/
rel: root
- href: https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale
rel: collection
properties:
created: "2020-07-14T12:30:00Z"
datetime: "2016-07-14T12:30:00Z"
updated: "2020-07-14T12:30:00Z"
stac_extensions:
- proj
- checksum
- https://data.geo.admin.ch/stac/geoadmin-extension/1.0/schema.json
stac_version: 1.0.0-beta.2
type: Feature
properties:
geometry:
$ref: '#/components/schemas/geometryGeoJSON'
id:
oneOf:
- type: string
- type: integer
links:
items:
$ref: '#/components/schemas/link'
type: array
properties:
nullable: true
type: object
type:
enum:
- Feature
type: string
required:
- type
- geometry
- properties
type: object
geometryGeoJSON:
oneOf:
- $ref: '#/components/schemas/pointGeoJSON'
- $ref: '#/components/schemas/multipointGeoJSON'
- $ref: '#/components/schemas/linestringGeoJSON'
- $ref: '#/components/schemas/multilinestringGeoJSON'
- $ref: '#/components/schemas/polygonGeoJSON'
- $ref: '#/components/schemas/multipolygonGeoJSON'
- $ref: '#/components/schemas/geometrycollectionGeoJSON'
geometrycollectionGeoJSON:
properties:
geometries:
items:
$ref: '#/components/schemas/geometryGeoJSON'
type: array
type:
enum:
- GeometryCollection
type: string
required:
- type
- geometries
type: object
ids:
description: |-
Array of Item ids to return. All other filter parameters that further
restrict the number of search results are ignored
items:
type: string
type: array
idsFilter:
description: Only returns items that match the array of given ids
properties:
ids:
$ref: '#/components/schemas/ids'
type: object
intersectsFilter:
description: Only returns items that intersect with the provided polygon.
properties:
intersects:
$ref: https://geojson.org/schema/Geometry.json
type: object
item:
description: A GeoJSON Feature augmented with foreign members that contain values relevant to a STAC entity
example:
assets:
2056-kgrs-2.5 - GeoTIFF:
checksum:multihash: 90e402107a7f2588a85362b9beea2a12d4514d45
created: "2020-07-14T12:30:00Z"
geoadmin:variant: kgrs
gsd: 2.5
href: https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-kgrs-2.5.tiff
proj:epsg: "2056"
type: image/tiff; application=geotiff
updated: "2020-07-14T12:30:00Z"
2056-komb-2.5 - GeoTIFF:
checksum:multihash: 90d402107a7f2588a85362b9beea2a12d4514d45
created: "2020-07-14T12:30:00Z"
geoadmin:variant: komb
gsd: 2.5
href: https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-komb-2.5.tiff
proj:epsg: "2056"
type: image/tiff; application=geotiff
updated: "2020-07-14T12:30:00Z"
2056-krel-2.5 - GeoTIFF:
checksum:multihash: 90f402107a7f2588a85362b9beea2a12d4514d45
created: "2020-07-14T12:30:00Z"
geoadmin:variant: krel
gsd: 2.5
href: https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-krel-2.5.tiff
proj:epsg: "2056"
type: image/tiff; application=geotiff
updated: "2020-07-14T12:30:00Z"
bbox:
- 7.242974548172171
- 46.357085154660915
- 7.699524647567326
- 46.57310580640624
collection: ch.swisstopo.pixelkarte-farbe-pk50.noscale
geometry:
coordinates:
- - - 7.242974548172171
- 46.57310580640624
- - 7.243756483316452
- 46.35721185723752
- - 7.698490766144817
- 46.357085154660915
- - 7.699524647567326
- 46.57297861624267
- - 7.242974548172171
- 46.57310580640624
type: Polygon
id: smr50-263-2016
links:
- href: https://data.geo.admin.ch/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/items/smr50-263-2016
rel: self
- href: https://data.geo.admin.ch/api/stac/v0.9/
rel: root
- href: https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale
rel: collection
properties:
created: "2020-07-14T12:30:00Z"
datetime: "2016-07-14T12:30:00Z"
updated: "2020-07-14T12:30:00Z"
stac_extensions:
- proj
- checksum
- https://data.geo.admin.ch/stac/geoadmin-extension/1.0/schema.json
stac_version: 1.0.0-beta.2
type: Feature
properties:
assets:
$ref: '#/components/schemas/itemAssets'
bbox:
$ref: '#/components/schemas/bbox'
geometry:
$ref: https://geojson.org/schema/Geometry.json
id:
$ref: '#/components/schemas/itemId'
links:
items:
$ref: '#/components/schemas/link'
type: array
properties:
$ref: '#/components/schemas/itemProperties'
stac_extensions:
$ref: '#/components/schemas/stac_extensions'
stac_version:
$ref: '#/components/schemas/stac_version'
type:
$ref: '#/components/schemas/itemType'
required:
- stac_version
- id
- type
- geometry
- bbox
- links
- properties
- assets
type: object
itemAssets:
additionalProperties:
properties:
description:
description: |-
Multi-line description to explain the asset.
[CommonMark 0.29](http://commonmark.org/) syntax MAY be used for
rich text representation.
example: Small 256x256px PNG thumbnail for a preview.
type: string
href:
description: Link to the asset object
example: http://cool-sat.com/catalog/collections/cs/items/CS3-20160503_132130_04/thumb.png
format: url
type: string
roles:
description: Purposes of the asset
example:
- thumbnail
items:
type: string
type: array
title:
description: Displayed title
example: Thumbnail
type: string
type:
description: Media type of the asset
example: image/png
type: string
required:
- href
type: object
type: object
itemCollection:
description: A GeoJSON FeatureCollection augmented with foreign members that contain values relevant to a STAC entity
properties:
features:
items:
$ref: '#/components/schemas/item'
type: array
links:
$ref: '#/components/schemas/itemCollectionLinks'
type:
enum: