@@ -11,20 +11,12 @@ kindly provided by [Estonian Health Board](https://terviseamet.ee).
1111
1212You can find this dataset in ` workshop/exercises/data/tartu/bathingwater-estonia.csv ` .
1313
14- This exercise consists of two steps:
15-
16- * adjust ` workshop/exercises/pygeoapi.config.yml ` to define this dataset as an OGC API - Features * collection*
17- * ensure that pygeoapi can find and connect to the data file
18-
19- We will use the ` workshop/exercises/docker-compose.yml ` file provided.
14+ This exercise consists of adjusting ` workshop/exercises/pygeoapi.config.yml ` to define this dataset as an OGC API - Features * collection*
2015
2116## Verify the existing Docker Compose config
2217
2318Before making any changes, we will make sure that the initial Docker Compose
24- setup provided to you is actually working. Two files are relevant:
25-
26- * ` workshop/exercises/docker-compose.yml `
27- * ` workshop/exercises/pygeoapi.config.yml `
19+ setup provided to you is actually working.
2820
2921To test:
3022
@@ -80,6 +72,7 @@ To test:
8072 docker compose down --remove-orphans
8173 ```
8274 </div>
75+
8376## Publish first dataset
8477
8578You are now ready to publish your first dataset.
@@ -143,30 +136,6 @@ and `lat` in the CSV file. Notice the `storage_crs` parameter, which indicates t
143136 a connection to your dataset of choice. You can always copy a relevant example configuration and place it in the datasets section of
144137 the pygeoapi configuration file for your future project.
145138
146- ## Making data available in the Docker container
147-
148- As the Docker container (named ` pygeoapi ` ) cannot directly access files on your
149- local host system, we will use Docker volume mounts. This can be defined
150- in the ` docker-compose.yml ` file as follows:
151-
152- !!! question "Configure access to the data"
153-
154- 1. Open the file `workshop/exercises/docker-compose.yml`
155- 1. Look for the commented section `# Exercise 1 - `
156- 1. Uncomment that line `- ./data:/data`
157-
158- The relevant lines read:
159-
160- ``` {.yml linenums="43"}
161- volumes:
162- - ./pygeoapi/pygeoapi.config.yml:/pygeoapi/local.config.yml
163- - ./data:/data # Exercise 1 - Ready to pull data from here
164- - ./plugins/process/squared.py:/pygeoapi/pygeoapi/process/squared.py # Exercise 8
165- ```
166-
167- The local ` ./pygeoapi/pygeoapi.config.yml ` file was already mounted. Now
168- we have also mounted (made available) the entire local directory ` ./data ` .
169-
170139## Test
171140
172141!!! question "Start with updated configuration"
0 commit comments