-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefinitions.yaml
329 lines (265 loc) · 11.6 KB
/
definitions.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
###############################################################################
## ##
## DEFINITIONS ##
## ##
## (c) Airbus Defense and Space Geo ##
## ##
## ##
## Contact: frederic.bages@airbus.com ##
## ##
###############################################################################
info:
title: Airbus Defense and Space Geo - Common Language Definitions
description: |
This document describes Airbus Defense and Space Geo common language definitions. Definitions are referenced from other Geo API specifications provided that their meaning and format is the same.
version: '1.0-alpha1'
###############################################################################
## ##
## GENERAL CONFIGuRATION ##
## ##
###############################################################################
consumes:
- application/json
produces:
- application/x-yaml
schemes:
- https
host: airbusgeo.github.io
swagger: '2.0'
###############################################################################
## ##
## OBJECTS DOCUMENTATION ##
## ##
###############################################################################
definitions:
# START ------------------ Airbus DS Geo dictionary ------------------- START
Id:
description: An internal identifier.
type: string
acquisitionDate:
description: Acquisition date of the image in ISO 8601 format
type: string
format: ISO 8601
cloudCover:
description: Percentage of the image covered by cloud (0 - 100).
type: integer
constellation:
description: The type of satellite used to acquire the image (Pleiades or SPOT).
type: string
enum:
- Pleiades
- SPOT
- TerraSAR_X_Mission
incidenceAngle:
description: The incidence angle is the angle from the target point of view. It represents the angle between the ground normal and look direction from the satellite, combining the pitch and roll angles.
type: number
format: float
snowCover:
description: Percentage of the image covered by snow (0 - 100).
type: integer
productType:
description: A product type.
type: string
enum:
- "PleiadesArchiveMono"
- "PleiadesArchiveStereo"
- "PleiadesArchiveTristereo"
- "SPOTArchive1.5Mono"
- "SPOTArchive1.5Stereo"
- "SPOTArchive1.5Tristereo"
- "SPOTArchive2.5BW"
- "SPOTArchive2.5Color"
- "SPOTArchive5BW"
- "SPOTArchive5Color"
- "SPOTArchive10BW"
- "SPOTArchive10Color"
- "SPOTArchive20Color"
- "TSXArchiveHS"
- "TSXArchiveSC"
- "TSXArchiveSL"
- "TSXArchiveST"
- "TSXArchiveSM"
- "TSXArchiveWS"
- "WorldDEMArchiveStandard"
- "WorldDEMArchiveCore"
- "WorldDEMArchiveDTM"
bbox:
description: 'A bounding box definition. A bounding box is composed of 4 ordered values: the minimum X value, the minimum Y value, the maximum X value and the maximum Y value.'
type: array
example: [ -10.0, -10.0 , 10, 10 ]
items:
type: number
minItems: 4
maxItems: 4
orbitDirection:
description: "The satellite orbit direction during the acquisition."
type: string
enum:
- ASCENDING
- DESCENDING
antennaLookDirection:
description: "The antenna look direction during the acquisition."
type: string
enum:
- LEFT
- RIGTH
illuminationAzimuthAngle:
description: "Meam illumination/solar azimuth angle given in degrees."
type: number
format: float
illuminationElevationAngle:
description: "Mean illumination/solar elevation angle given in degrees."
type: number
format: float
azimuthAngle:
description: "Angle formed between the North and the satellite."
type: number
format: float
# END ------------------ Airbus DS Geo dictionary ------------------- END
# START -------------- Airbus DS Geo request properties --------------- START
in_polygon_wkt:
description: "A POLYGON geometry in the Well-known text format. Example: POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))"
type: string
format: 'WKT Geometric objects'
example: 'POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))'
in_acquisitionDate_interval:
description: "A date or date interval that must match the acquisition date. Example: [2017-01-01,2017-02-01[ to select all products acquired in January 2017. "
type: string
format: 'Interval of dates in ISO 8601'
example: '[2017-01-01,2017-02-01['
in_resolution_interval:
description: "A number or number range that must match the resolution in meter. Example: 1.5] to select all products with a resolution inferior or equal to 1.5 meter."
type: string
format: 'Interval of resolution in meter'
example: '[0.5,1.5]'
in_incidenceAngle_interval:
description: "A number or number range that must match the incidence angle in degrees. Example: 30] to select all products with an incidence angle inferior or equal to 30 degrees."
type: string
format: 'Interval of incidence angle in degrees'
example: '[0,30]'
in_cloudCover_interval:
description: "A number or number range that must match the cloud coverage in percentage (min 0%, max 100%). Example: 10[ to select all products with a cloud coverage less than 10 percent."
type: string
format: 'Interval of cloud coverage in percent'
example: "[0,15]"
in_snowCover_interval:
description: "A number or number range that must match the product snow coverage in percentage (min 0%, max 100%). Example: [50,90] to select all products with a partial snow coverage of at least 50 percent but no more than 90 percent."
type: string
format: 'Interval of cloud coverage in percent'
example: '[0,15]'
# END -------------- Airbus DS Geo request properties --------------- END
# START ------------------- GeoJSON definitions ----------------------- START
# The GeoJSON FeatureCollection is intended to be extended in API specifications with service specific features.
# Example:
#
# GeoJSON FeatureCollection:
# description: GeoJSON FeatureCollection object.
# allOf:
# - $ref: 'https://airbusgeo.github.io/api-docs/definitions.yaml#/definitions/GeoJSON FeatureCollection'
# - type: object
# properties:
# features:
# description: the array of matching products as GeoJSON feature objects.
# type: array
# items:
# $ref: '#/definitions/GeoJSON Feature'
GeoJSON FeatureCollection:
description: 'A GeoJSON FeatureCollection object.'
type: object
properties:
type:
description: the result item type (always equals to "FeatureCollection")
type: string
enum: [ "FeatureCollection" ]
# The GeoJSON Feature is intended to be extended in API specifications with service specific properties.
# Example:
#
# GeoJSON Feature:
# description: GeoJSON feature object.
# allOf:
# - $ref: 'https://airbusgeo.github.io/api-docs/definitions.yaml#/definitions/GeoJSON Feature'
# - type: object
# properties:
# properties:
# $ref: '#/definitions/GeoJSON Feature Properties'
GeoJSON Feature:
description: A GeoJSON feature object.
type: object
properties:
id:
description: The internal identifier.
type: string
bbox:
$ref: 'https://airbusgeo.github.io/api-docs/definitions.yaml#/definitions/bbox'
geometry:
$ref: 'https://airbusgeo.github.io/api-docs/definitions.yaml#/definitions/GeoJSON Geometry'
type:
description: The feature type (always equals to "Feature")
type: string
enum: [ "Feature" ]
GeoJSON Geometry:
description: A GeoJSON geometry describing the feature (point, polygon, multi-polygon, ...)
type: object
properties:
type:
description: The type of the geometry.
type: string
enum: ["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"]
coordinates:
description: the geometry coordinates; depends on the geometry type (see GeoJSON specification of Geometry objects).
type: array
items:
$ref: '#/definitions/GeoJSON Point'
GeoJSON Point:
description: A GeoJSON point definition.
type: array
example: '[ 10, 10 ]'
items:
type: integer
# END ------------------- GeoJSON definitions ----------------------- END
# START ----------------- OpenSearch definitions ---------------------- START
# The OpenSearch Response is intended to be extended in API specifications with service specific properties.
# Example:
#
# OpenSearch Response:
# description: 'OpenSearch response object in JSon format.'
# allOf:
# - $ref: 'https://airbusgeo.github.io/api-docs/definitions.yaml#/definitions/OpenSearch Response'
# - type: object
# properties:
# query:
# $ref: '#/definitions/OpenSearch Query'
OpenSearch Response:
description: 'OpenSearch response object in JSon format.'
type: object
properties:
totalResults:
description: The number of search results available for the current search.
type: integer
startIndex:
description: The index of the first search result in the current set of search results.
type: integer
itemsPerPage:
description: The number of search results returned per page.
type: integer
# END ----------------- OpenSearch definitions ---------------------- END
###############################################################################
## ##
## END POINTS DOCUMENTATION ##
## ##
###############################################################################
paths:
/api-docs/definitions.yaml:
get:
summary: Return all common Airbus DS Geo definitions in YAML format.
description: |
Definitions are based on the following specifications:
* [GeoJSON](http://geojson.org/geojson-spec.html) version 1.0
* [OpenSearch](http://www.opensearch.org/Specifications/OpenSearch/1.1) version 1.1 Draft 5
* [OpenSearch Geo extension](http://www.opensearch.org/Specifications/OpenSearch/Extensions/Geo/1.0/Draft_1) version 1.0 Draft 1
* [OpenSearch Time extension](http://www.opensearch.org/Specifications/OpenSearch/Extensions/Time/1.0/Draft_1) version 1.0 Draft 1
* [OpenSearch for Earth Observation extension](https://portal.opengeospatial.org/files/65168) version of October 29th, 2014
* [Earth Observation Metadata profile of Observations & Measurements](http://docs.opengeospatial.org/is/10-157r4/10-157r4.html) version 1.1
responses:
'200':
description: Request successful