-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathpygeoapi.config.yml
More file actions
539 lines (517 loc) · 19.5 KB
/
Copy pathpygeoapi.config.yml
File metadata and controls
539 lines (517 loc) · 19.5 KB
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
# =================================================================
#
# Authors: Just van den Broecke <justb4@gmail.com>>
# Jorge Samuel Mendes de Jesus <jorge.dejesus@geocat.net>
# Tom Kralidis <tomkralidis@gmail.com>
#
# Copyright (c) 2019 Just van den Broecke
# Copyright (c) 2019 Jorge Samuel Mendes de Jesus
# Copyright (c) 2020 Tom Kralidis
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# =================================================================
server:
bind:
host: 0.0.0.0
port: 5000
url: http://localhost:5000/
mimetype: application/json; charset=UTF-8
encoding: utf-8
gzip: false
language: en-US
cors: true
pretty_print: true
limits:
default_items: 20
max_items: 50
# templates: /path/to/templates
map:
url: https://tile.openstreetmap.org/{z}/{x}/{y}.png
attribution: '© <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
ogc_schemas_location: /schemas.opengis.net
manager:
name: TinyDB
connection: /tmp/pygeoapi-process-manager.db
output_dir: /tmp/
logging:
level: ERROR
#logfile: /tmp/pygeoapi.log
metadata:
identification:
title: Diving into pygeoapi default instance
description: pygeoapi provides an API to geospatial data
keywords:
- geospatial
- data
- api
keywords_type: theme
terms_of_service: https://creativecommons.org/licenses/by/4.0/
url: https://dive.pygeoapi.io
license:
name: CC-BY 4.0 license
url: https://creativecommons.org/licenses/by/4.0/
provider:
name: pygeoapi Development Team
url: https://pygeoapi.io
contact:
name: pygeoapi Development Team
position: pygeoapi Development Team
address: 9450 SW Gemini Dr. #42523
city: Beaverton
stateorprovince: Oregon
postalcode: 97008
country: United States of America
phone: +xx-xxx-xxx-xxxx
fax: +xx-xxx-xxx-xxxx
email: pygeoapi@gmail.com
url: https://pygeoapi.io
hours: 24/7
instructions: During hours of service.
role: pointOfContact
resources:
# ==== START - STANDARD PYGEOAPI COLLECTIONS ====
obs:
type: collection
title: Observations
description: My cool observations
keywords:
- observations
- monitoring
linked-data:
context:
- datetime: https://schema.org/DateTime
- vocab: https://example.com/vocab#
stn_id: "vocab:stn_id"
value: "vocab:value"
links:
- type: text/csv
rel: canonical
title: data
href: https://github.com/mapserver/mapserver/blob/branch-7-0/msautotest/wxs/data/obs.csv
hreflang: en-US
- type: text/csv
rel: alternate
title: data
href: https://raw.githubusercontent.com/mapserver/mapserver/branch-7-0/msautotest/wxs/data/obs.csv
hreflang: en-US
extents:
spatial:
bbox: [-180,-90,180,90]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: 2000-10-30T18:24:39Z
end: 2007-10-30T08:57:29Z
providers:
- type: feature
name: CSV
data: tests/data/obs.csv
id_field: id
geometry:
x_field: long
y_field: lat
lakes:
type: collection
title: Large Lakes
description: lakes of the world, public domain
keywords:
- lakes
links:
- type: text/html
rel: canonical
title: information
href: https://www.naturalearthdata.com/
hreflang: en-US
extents:
spatial:
bbox: [-180,-90,180,90]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: 2011-11-11
end: null # or empty
trs: http://www.opengis.net/def/uom/ISO-8601/0/Gregorian
providers:
- type: feature
name: GeoJSON
data: tests/data/ne_110m_lakes.geojson
crs:
- http://www.opengis.net/def/crs/OGC/1.3/CRS84
- http://www.opengis.net/def/crs/EPSG/0/3857
storage_crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
id_field: id
countries:
type: collection
title: Countries of the world
description: Countries of the world
keywords:
- countries
- natural eart
links:
- type: text/html
rel: canonical
title: information
href: https://www.naturalearthdata.com/
hreflang: en-US
extents:
spatial:
bbox: [-180,-90,180,90]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin:
end: null # or empty
providers:
- type: feature
name: SQLiteGPKG
data: tests/data/ne_110m_admin_0_countries.sqlite
id_field: ogc_fid
table: ne_110m_admin_0_countries
# ==== END - STANDARD PYGEOAPI COLLECTIONS ====
# ==== START - WORKSHOP EXERCISES ====
# Uncomment a config section between START and END for each exercise.
# Make sure that indentation matches!
### START - EXERCISE 1 - Your First Collection
# Bathing_Water_Estonia:
# type: collection
# title: Bathing Water Estonia
# description: Locations where the Estonian Health Board monitors the bathing water quality
# keywords:
# - bathingwater
# - estonia
# links:
# - type: text/csv
# rel: canonical
# title: data
# href: https://avaandmed.eesti.ee/datasets/supluskohad
# hreflang: EE
# extents:
# spatial:
# bbox: [20,57,29,60]
# crs: http://www.opengis.net/def/crs/EPSG/0/4326
# providers:
# - type: feature
# name: CSV
# data: /data/tartu/bathingwater-estonia.csv
# id_field: id
# title_field: Name
# geometry:
# x_field: x
# y_field: y
# storage_crs: http://www.opengis.net/def/crs/EPSG/0/3300
### END - EXERCISE 1 - Your First Collection
## START - EXERCISE 2 - Guama River mainstems
# guama-river:
# type: collection
# title: Guama River
# description: Guama River Basin mainstem flowlines
# keywords:
# - Guama River
# - Merit Hydro
# links:
# - type: text/html
# rel: canonical
# title: data
# href: https://www.sciencebase.gov/catalog/item/614a8864d34e0df5fb97572d
# hreflang: EE
# extents:
# spatial:
# bbox: [-49.16,-5.0, -46.8, -1.2]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: feature
# name: SQLiteGPKG
# data: /data/brazil/guama_river.gpkg # place correct path here
# id_field: fid
# table: guama_river # table name within gpkg
## END - EXERCISE 2 - Guama River mainstems
## START - EXERCISE 3 - Coverages
# tartu-ntl:
# type: collection
# title: NASA Blue Marble Night Lights Data sample over Estonia
# description: NASA Blue Marble Night Lights Data sample over Estonia
# keywords:
# - Blue Marble
# - Night Lights
# - NTL
# links:
# - type: text/html
# rel: about
# title: NASA Blue Marble Night Lights Data
# href: https://appliedsciences.nasa.gov/get-involved/training/english/arset-introduction-nasas-black-marble-night-lights-data
# hreflang: en
# extents:
# spatial:
# bbox: [26.6264,58.32569,26.82632,58.433989]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: coverage
# name: rasterio
# data: /data/tartu/estonia_light.tif # place correct path here
# format:
# name: GTiff
# mimetype: application/tiff
## END - EXERCISE 3 - Coverages
## START - EXERCISE 4 - Maps
# airports:
# type: collection
# title: airports of the world
# description: Point data representing airports around the world with various metadata such as name, Code, etc.
# keywords:
# - airports
# - natural earth
# links:
# - type: text/html
# rel: canonical
# title: information
# href: https://www.naturalearthdata.com/downloads/10m-cultural-vectors/airports/
# hreflang: en-US
# extents:
# spatial:
# bbox: [-180,-90,180,90]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# temporal:
# begin:
# end: null # or empty
# providers:
# - type: map
# name: MapScript
# data: /data/airport.gpkg
# options:
# type: MS_LAYER_POINT
# layer: airport
# style: /data/airport.sld
# format:
# name: png
# mimetype: image/png
## END - EXERCISE 4 - Maps
## START - EXERCISE 5 - Tiles
# hyderabad:
# type: collection
# title: Greater Hyderabad Municipal Corporation ward boundaries
# description: The city ward boundaries represent the administrative and electoral boundary areas of the city. It plays a great role in planning of the city, for each council of the municipal corporation.
# keywords:
# - Boundaries
# - Administrative
# - Ward
# links:
# - type: text/html
# rel: canonical
# title: information
# href: https://livingatlas-dcdev.opendata.arcgis.com/datasets/a090c89d52f1498f96a82e97b8bfb83e_0/
# hreflang: en-US
# extents:
# spatial:
# bbox: [78.2379194985166180,17.2908061510471995,78.6217049083810764,17.5618443356918768]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# temporal:
# begin: null
# end: null # or empty
# providers:
# - type: feature
# name: GeoJSON
# data: /data/hyderabad/greater_hyderabad_municipal_corporation_ward_Boundaries.geojson
# id_field: id
# - type: tile
# name: MVT-tippecanoe
# data: /data/tiles/ # local directory tree
# options:
# zoom:
# min: 0
# max: 16
# format:
# name: pbf
# mimetype: application/vnd.mapbox-vector-tile
# # END - EXERCISE 5 - Tiles
## START - EXERCISE 6 - Metadata
# example_catalogue:
# type: collection
# title: FOSS4G Europe Estonia national catalogue
# description: FOSS4G Europe Estonia national catalogue
# keywords:
# - estonia
# - catalogue
# - FOSS4G Europe
# links:
# - type: text/html
# rel: canonical
# title: information
# href: https://metadata.geoportaal.ee
# hreflang: en-US
# extents:
# spatial:
# bbox: [23.3397953631, 57.4745283067, 28.1316992531, 59.6110903998]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: record
# name: TinyDBCatalogue
# data: /data/tartu/metadata/catalogue.tinydb
# id_field: externalId
# time_field: recordCreated
# title_field: title
## END - EXERCISE 6 - Metadata
## START EXERCISE 7 - Environmental data via OGC API - Environmental Data Retrieval
# icoads-sst:
# type: collection
# title: International Comprehensive Ocean-Atmosphere Data Set (ICOADS)
# description: International Comprehensive Ocean-Atmosphere Data Set (ICOADS)
# keywords:
# - icoads
# - sst
# - air temperature
# extents:
# spatial:
# bbox: [-180,-90,180,90]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# temporal:
# begin: 2000-01-16T06:00:00Z
# end: 2000-12-16T06:00:00Z
# links:
# - type: text/html
# rel: canonical
# title: information
# href: https://psl.noaa.gov/data/gridded/data.coads.1deg.html
# hreflang: en-US
# providers:
# - type: edr
# name: xarray-edr
# data: /data/coads_sst.nc
# format:
# name: NetCDF
# mimetype: application/x-netcdf
## END EXERCISE 7 - Environmental data via OGC API - Environmental Data Retrieval
hello-world:
type: process
processor:
name: HelloWorld
## START EXERCISE 8 - Functions via OGC API - Processes
# squared:
# type: process
# processor:
# name: pygeoapi.process.squared.SquaredProcessor
## END EXERCISE 8 - Functions via OGC API - Processes
## START - EXERCISE 9 - WFS Proxy
# suol_epicentri_storici:
# type: collection
# title: Epicenters of the main historical earthquakes
# description: Location of the epicenters of the main historical earthquakes in the territory of the Metropolitan City of Florence classified by year and intensity
# keywords:
# - earthquakes
# links:
# - type: text/xml
# rel: canonical
# title: Epicenters of the main historical earthquakes
# href: http://pubblicazioni.cittametropolitana.fi.it/geoserver/territorio/wfs?request=getCapabilities&service=WFS&version=2.0.0
# hreflang: it
# extents:
# spatial:
# bbox: [10.94, 43.52, 11.65, 44.17]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: feature
# name: OGR
# data:
# source_type: WFS
# source: WFS:http://pubblicazioni.cittametropolitana.fi.it/geoserver/territorio/wfs?
# source_capabilities:
# paging: True
# source_options:
# OGR_WFS_LOAD_MULTIPLE_LAYER_DEFN: NO
# gdal_ogr_options:
# EMPTY_AS_NULL: NO
# GDAL_CACHEMAX: 64
# CPL_DEBUG: NO
# id_field: cpti_id
# crs:
# - http://www.opengis.net/def/crs/OGC/1.3/CRS84
# - http://www.opengis.net/def/crs/EPSG/0/4258
# - http://www.opengis.net/def/crs/EPSG/0/3857
# - http://www.opengis.net/def/crs/EPSG/0/3003
# storage_crs: http://www.opengis.net/def/crs/EPSG/0/3003
# title_field: d
# layer: territorio:suol_epicentri_storici
## END - EXERCISE 9 - WFS Proxy
## START - EXERCISE 9 - WMS Proxy
# wms-facade-demo:
# type: collection
# title: WMS Facade demo
# description: WMS Facade demo
# keywords:
# - WMS facade
# links:
# - type: text/html
# rel: canonical
# title: MapServer
# href: https://mapserver.org
# hreflang: it
# extents:
# spatial:
# bbox: [-180,-90,180,90]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: map
# name: WMSFacade
# data: https://demo.mapserver.org/cgi-bin/msautotest
# options:
# layer: world_latlong
# style: default
# format:
# name: png
# mimetype: image/png
## END - EXERCISE 9 - WMS Proxy
## START - EXERCISE 9 - CSW Proxy
# cite_demo:
# type: collection
# title: pycsw OGC CITE demo and Reference Implementation
# description: pycsw is an OARec and OGC CSW server implementation written in Python. pycsw fully implements the OGC API - Records and OpenGIS Catalogue Service Implementation Specification (Catalogue Service for the Web). Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. Since 2015, pycsw is an official OSGeo Project. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X)
# keywords:
# - ogc
# - cite
# - compliance
# - interoperability
# extents:
# spatial:
# bbox: [-180,-90,180,90]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: record
# name: CSWFacade
# data: https://demo.pycsw.org/cite/csw
# id_field: identifier
# time_field: datetime
# title_field: title
## END - EXERCISE 9 - CSW Proxy
## START - EXERCISE 9 - SensorThings Proxy
# toronto_bikes:
# type: collection
# title: Toronto Bikes SensorThings
# description: The geographic location with coordinates for the Toronto bike share station
# keywords:
# - sediments
# extents:
# spatial:
# bbox: [-180,-90,180,90]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# providers:
# - type: feature
# name: SensorThings
# data: https://toronto-bike-snapshot.sensorup.com/v1.0/
# entity: Things
## END - EXERCISE 9 - SensorThings Proxy