Skip to content

Commit f883d82

Browse files
committed
this introduces an estonian dataset, and removes some of the kosovo data
creating the PR now, to understand if the cc-by-sa license of this data may be problematic to the mit license? what is your view on that?
1 parent f29384b commit f883d82

File tree

4 files changed

+56
-4660
lines changed

4 files changed

+56
-4660
lines changed

workshop/content/docs/publishing/first.md

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ In this section you are going to publish a vector dataset.
99
For this exercise, we will use a CSV dataset of [Bathing waters in Estonia](https://github.com/geopython/diving-into-pygeoapi/tree/main/workshop/exercises/data/bathingwater-estonia.csv),
1010
kindly provided by [Estonian Health Board](https://terviseamet.ee).
1111

12-
You can find this dataset in `workshop/exercises/data/osm_poi_kosovo.csv`.
12+
You can find this dataset in `workshop/exercises/data/bathingwater-estonia.csv`.
1313

14-
This exercise consists of two key steps:
14+
This exercise consists of two steps:
1515

16-
* adapt `workshop/exercises/pygeoapi.config.yml` to define this dataset as an OGC API - Features *collection*
16+
* adjust `workshop/exercises/pygeoapi.config.yml` to define this dataset as an OGC API - Features *collection*
1717
* ensure that pygeoapi can find and connect to the data file
1818

1919
We will use the `workshop/exercises/docker-compose.yml` file provided.
@@ -70,38 +70,40 @@ Make sure that the indentation aligns (hint: directly under `# START ...`)
7070
The config section reads:
7171

7272
``` {.yml linenums="185"}
73-
poi_kosovo:
74-
type: collection
75-
title: Points of Interest Kosovo
76-
description: The dataset shows the location of the places of interest in Kosovo.
77-
keywords:
78-
- places of interest
79-
- kosovo
80-
links:
81-
- type: text/csv
82-
rel: canonical
83-
title: data
84-
href: https://download.geofabrik.de/europe/kosovo.html
85-
hreflang: AL
86-
extents:
87-
spatial:
88-
bbox: [20,41.9,21.7,43.2]
89-
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
90-
providers:
91-
- type: feature
92-
name: CSV
93-
data: /data/osm_poi_kosovo.csv
94-
id_field: osm_id
95-
geometry:
96-
x_field: x
97-
y_field: y
73+
Bathing_Water_Estonia:
74+
type: collection
75+
title: Bathing Water Estonia
76+
description: Locations where the Estonian Health Board monitors the bathing water quality
77+
keywords:
78+
- bathing water
79+
- estonia
80+
links:
81+
- type: text/csv
82+
rel: canonical
83+
title: data
84+
href: https://avaandmed.eesti.ee/datasets/joogiveeallikad
85+
hreflang: EE
86+
extents:
87+
spatial:
88+
bbox: [20,57,29,60]
89+
crs: http://www.opengis.net/def/crs/EPSG/0/4326
90+
providers:
91+
- type: feature
92+
name: CSV
93+
data: /data/bathingwater-estonia.csv
94+
id_field: id
95+
title_field: Name
96+
geometry:
97+
x_field: x
98+
y_field: y
99+
storage_crs: http://www.opengis.net/def/crs/EPSG/0/3300
98100
```
99101

100102
The most relevant part is the `providers` section. Here, we define a `CSV Provider`,
101103
pointing the file path to the `/data` directory we will mount (see next) from the local
102104
directory into the Docker container above. Because a CSV is not a spatial file, we explicitly
103105
configure pygeoapi so that the longitude and latitude (x and y) is mapped from the columns `lon`
104-
and `lat` in the CSV file.
106+
and `lat` in the CSV file. Notice the `storage_crs` parameter, which indicates the coordinate system which is used in the source data.
105107

106108
!!! Tip
107109

workshop/exercises/data/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ This directory provides sample data to demonstrate functionality.
44

55
## Sources
66

7-
### OSM POI Kosovo
8-
- title: [osm_poi_kosovo.csv](osm_poi_kosovo.csv)
9-
- url: https://download.geofabrik.de/europe/kosovo.html
10-
- description: Data coverted to csv from kosovo-latest-free.shp.zip. The file was last modified 23-6-2023
11-
- copyright: OSM Contributors
12-
- license: ODbL
7+
### Bathingwater Estonia
8+
- title: [Supluskohad](./bathingwater-estonia.csv) (Bathing places)
9+
- url: https://avaandmed.eesti.ee/datasets/joogiveeallikad
10+
- description: Locations where the Estonian Health Board monitors the bathing water quality
11+
- copyright: [Terviseamet](https://terviseamet.ee)
12+
- license: CC-BY-SA 3.0
13+
- projection: epsg:3300
1314

1415
### Cadastral Parcels Estonia
1516
- title: [cptartu2.gpkg.zip](./cptartu2.gpkg.zip)

0 commit comments

Comments
 (0)