-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_dev.yml
123 lines (119 loc) · 6.19 KB
/
config_dev.yml
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
# =================================================================
#
# Authors: Maxime Carre <maxime.carre@dfo-mpo.gc.ca>
#
# =================================================================
server:
bind:
host: 0.0.0.0 # listening address for incoming connections
port: 5000 # listening port for incoming connections
url: http://localhost:5000/ # url of server
mimetype: application/json; charset=UTF-8 # default MIME type
encoding: utf-8 # default server encoding
language: en-US # default server language
cors: true # boolean on whether server should support CORS
pretty_print: true # whether JSON responses should be pretty-printed
limit: 10 # server limit on number of items to return
map: # leaflet map setup for HTML pages
url: https://tile.openstreetmap.org/{z}/{x}/{y}.png
attribution: '© <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
ogc_schemas_location: http://schemas.opengis.net
logging:
level: ERROR
logfile: ./logs/pygeoapi.log
metadata:
identification:
title: CHS Pygeoapi # the title of the service
description: pygeoapi provides an API to geospatial data # some descriptive text about the service
keywords: # list of keywords about the service
- geospatial
- data
- api
keywords_type: theme # keyword type as per the ISO 19115 MD_KeywordTypeCode codelist. Accepted values are discipline, temporal, place, theme, stratum
terms_of_service: https://creativecommons.org/licenses/by/4.0/ # terms of service
url: http://example.org # informative URL about the service
license: # licensing details
name: CC-BY 4.0 license
url: https://creativecommons.org/licenses/by/4.0/
provider: # service provider details
name: XXX XXX
url: XXX XXX
contact: # service contact details
name: XXX XXX
position: XXX XXX
address: XXX XXX
city: XXX XXX
stateorprovince: XXX XXX
postalcode: XXX XXX
country: XXX XXX
phone: XXX XXX
email: XXX XXX
hours: Mo-Fr 08:00-17:00 PST
instructions: During hours of service. Off on weekends.
role: pointOfContact
resources:
iwls_waterlevel:
type: collection # REQUIRED (collection, process, or stac-collection)
title: Waterlevel # title of dataset
description: Observation, Forecast and Prediction # abstract of dataset
keywords: # list of related keywords
- observations
- water level
links: # list of 1..n related links
- type: text/html # MIME type
rel: external # link relations per https://www.iana.org/assignments/link-relations/link-relations.xhtml
title: IWLS API # title
href: https://api-iwls.dfo-mpo.gc.ca/swagger-ui/index.html # URL
hreflang: en-US # language
extents: # spatial and temporal extents
spatial: # required
bbox: [-180,-90,180,90] # list of minx, miny, maxx, maxy
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84 # CRS
temporal: # optional
begin: 1900-01-01T00:00:00Z # start datetime in RFC3339
end: 2100-01-01T00:00:00Z # end datetime in RFC3339
providers: # list of 1..n required connections information
# provider name
# see pygeoapi.plugin for supported providers
# for custom built plugins, use the import path (e.g. mypackage.provider.MyProvider)
# see Plugins section for more information
- type: feature # underlying data geospatial type: (allowed values are: feature, coverage, record, tile, edr)
default: true # optional: if not specified, the first provider definition is considered the default
name: provider_iwls.provider_iwls.ProviderIwlsWaterLevels
data: https://api-iwls.dfo-mpo.gc.ca/api/ # required: the data filesystem path or URL, depending on plugin setup
id_field: id # required for vector data, the field corresponding to the ID
title_field: id # optional field of which property to display as title/label on HTML pages
iwls_surfacecurrent:
type: collection # REQUIRED (collection, process, or stac-collection)
title: SurfaceCurrent # title of dataset
description: Observations # abstract of dataset
keywords: # list of related keywords
- observations
- Surface Currents
links: # list of 1..n related links
- type: text/html # MIME type
rel: external # link relations per https://www.iana.org/assignments/link-relations/link-relations.xhtml
title: IWLS API # title
href: https://api-iwls.dfo-mpo.gc.ca/swagger-ui/index.html # URL
hreflang: en-US # language
extents: # spatial and temporal extents
spatial: # required
bbox: [-180,-90,180,90] # list of minx, miny, maxx, maxy
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84 # CRS
temporal: # optional
begin: 1900-01-01T00:00:00Z # start datetime in RFC3339
end: 2100-01-01T00:00:00Z # end datetime in RFC3339
providers: # list of 1..n required connections information
# provider name
# see pygeoapi.plugin for supported providers
# for custom built plugins, use the import path (e.g. mypackage.provider.MyProvider)
# see Plugins section for more information
- type: feature # underlying data geospatial type: (allowed values are: feature, coverage, record, tile, edr)
name: provider_iwls.provider_iwls.ProviderIwlsCurrents
data: https://api-iwls.dfo-mpo.gc.ca/api/ # required: the data filesystem path or URL, depending on plugin setup
id_field: id # required for vector data, the field corresponding to the ID
title_field: id # optional field of which property to display as title/label on HTML pages
s100:
type: process
processor:
name: provider_iwls.process_iwls.S100Processor