Configuring Providers#
As the Urban Model Platform does not provide any processes by itself, it needs to be connected to external model servers. This is done by configuring providers in the providers.yaml
file. The following example shows how to configure a model server and its processes:
# providers.yaml
modelserver-1:
url: "http://localhost:5005"
name: "Example Modelserver"
authentication:
type: "BasicAuth"
user: "user"
password: "password"
timeout: 60
processes:
process-1:
result-storage: "geoserver"
result-path: simulation_geometry
graph-properties:
root-path: results.simulation_results
x-path: results.simulation_results.x
y-path: results.simulation_results.y
anonymous-access: True
process-2:
result-storage: "remote"
deterministic: True
process-3:
exclude: True
Warning
Currently, model servers have to provide endpoints that comply with the OGC processes API standard in order to be loaded from this API. Otherwise, they will be silently ignored, and an error will be logged.
Configuration options#
Parameter |
Type |
Possible Values |
Description |
---|---|---|---|
url |
String |
Any http/https URL |
URL of the model server. |
name |
String |
Any |
Name of the model server. |
authentication |
Object |
||
authentication.type |
String |
BasicAuth |
Type of authentication (currently, only BasicAuth is supported) |
authentication.user |
String |
Any |
Username for BasicAuth. |
authentication.password |
String |
Any |
Password for BasicAuth. |
timeout |
Integer |
60 |
Time before a request to a modelserver is given up. |
processes |
Object |
||
processes.result-storage |
String |
[“geoserver” | “remote”] |
Storage option for the process results. If the attribute is set to |
processes.result-path |
String |
Any |
If the results are stored in the Geoserver, you can specify the object path to the feature collection using |
processes.graph-properties |
Object |
root-path, x-path, y-path |
Configuration for graph properties. The sub-properties |
processes.anonymous-access |
Boolean |
[True | False] |
If set to |
processes.deterministic |
Boolean |
[True | False] |
If set to |
processes.exclude |
Boolean |
[True | False] |
If set to |