Skip to content

Commit 82b33db

Browse files
authored
Add Guama River to to vector features (#188)
* Initial commit Guama River * Add Guama River to pygeoapi config * Update collection name
1 parent 6040014 commit 82b33db

File tree

3 files changed

+40
-42
lines changed

3 files changed

+40
-42
lines changed

workshop/content/docs/publishing/ogcapi-features.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,46 +38,45 @@ vector data source.
3838
It may be helpful to open the dataset in [QGIS](https://qgis.org) while adding and updating your pygeoapi server to easily evaluate table attributes, names, spatial properties and CRS.
3939

4040

41-
Let's add the file `workshop/exercises/data/tartu/cp-tartu2.gpkg.zip`:
41+
Let's add the file `workshop/exercises/data/brazil/guama_river.gpkg.zip`:
4242

4343
!!! question "Update the pygeoapi configuration"
4444

45-
First, let's unzip the file [cptartu2.gpkg.zip](https://github.com/geopython/diving-into-pygeoapi/tree/main/workshop/exercises/data/tartu/cptartu2.gpkg.zip) to `cptartu2.gpkg`.
45+
First, let's unzip the file [guama_river.gpkg.zip](https://github.com/geopython/diving-into-pygeoapi/tree/main/workshop/exercises/data/brazil/guama_river.gpkg.zip) to `guama_river.gpkg`.
4646

4747
Then, open the pygeoapi configuration file in a text editor.
48-
Find the line `# START - EXERCISE 2 - cadastral parcels Tartu`.
48+
Find the line `# START - EXERCISE 2 - flowlines Guama River`.
4949

5050
Add a new dataset section by uncommenting the lines up to `# END - EXERCISE 2 - cadastral parcels Tartu`:
5151

5252
``` {.yaml linenums="1"}
53-
cp-tartu:
53+
guama-river:
5454
type: collection
55-
title: Tartu Cadastral Parcels
56-
description: Cadastral parcels in downtown Tartu
55+
title: Guama River
56+
description: Guama River Basin mainstem flowlines
5757
keywords:
58-
- Cadastral parcels
59-
- Tartu
58+
- Guama River
59+
- Merit Hydro
6060
links:
61-
- type: OGC/WFS
61+
- type: text/html
6262
rel: canonical
6363
title: data
64-
href: https://metadata.geoportaal.ee/geonetwork/srv/metadata/9949ec81-f758-42e6-9c1c-6fb604a3f053
64+
href: https://www.sciencebase.gov/catalog/item/614a8864d34e0df5fb97572d
6565
hreflang: EE
6666
extents:
6767
spatial:
68-
bbox: [26.6, 58.3, 26.8, 58.5]
68+
bbox: [-49.16, -5.0, -46.8, -1.2]
6969
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
7070
providers:
7171
- type: feature
7272
name: SQLiteGPKG
73-
data: /data/tartu/cptartu2.gpkg # place correct path here
74-
id_field: nationalca
75-
title_field: label
76-
table: cptartu2 # table name within gpkg
73+
data: /data/brazil/guama_river.gpkg # place correct path here
74+
id_field: fid
75+
table: guama_river # table name within gpkg
7776
```
7877

7978
Save the file and restart Docker Compose. Navigate to <http://localhost:5000/collections> to evaluate whether the new dataset with
80-
title *"Tartu Cadastral Parcels"* has been published.
79+
title *"Guama River"* has been published.
8180

8281
!!! note
8382

Binary file not shown.

workshop/exercises/pygeoapi.config.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -226,32 +226,31 @@ resources:
226226
# storage_crs: http://www.opengis.net/def/crs/EPSG/0/3300
227227
### END - EXERCISE 1 - Your First Collection
228228

229-
## START - EXERCISE 2 - cadastral parcels Tartu
230-
# cp-tartu:
231-
# type: collection
232-
# title: Tartu Cadastral Parcels
233-
# description: Cadastral parcels in downtown Tartu
234-
# keywords:
235-
# - Cadastral parcels
236-
# - Tartu
237-
# links:
238-
# - type: OGC/WFS
239-
# rel: canonical
240-
# title: data
241-
# href: https://metadata.geoportaal.ee/geonetwork/srv/metadata/9949ec81-f758-42e6-9c1c-6fb604a3f053
242-
# hreflang: EE
243-
# extents:
244-
# spatial:
245-
# bbox: [26.6, 58.3, 26.8, 58.5]
246-
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
247-
# providers:
248-
# - type: feature
249-
# name: SQLiteGPKG
250-
# data: /data/tartu/cptartu2.gpkg # place correct path here
251-
# id_field: nationalca
252-
# title_field: label
253-
# table: cptartu2 # table name within gpkg
254-
## END - EXERCISE 2 - cadastral parcels Tartu
229+
## START - EXERCISE 2 - Guama River mainstems
230+
# guama-river:
231+
# type: collection
232+
# title: Guama River
233+
# description: Guama River Basin mainstem flowlines
234+
# keywords:
235+
# - Guama River
236+
# - Merit Hydro
237+
# links:
238+
# - type: text/html
239+
# rel: canonical
240+
# title: data
241+
# href: https://www.sciencebase.gov/catalog/item/614a8864d34e0df5fb97572d
242+
# hreflang: EE
243+
# extents:
244+
# spatial:
245+
# bbox: [49.16,-5.0, -46.8, -1.2]
246+
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
247+
# providers:
248+
# - type: feature
249+
# name: SQLiteGPKG
250+
# data: /data/brazil/guama_river.gpkg # place correct path here
251+
# id_field: fid
252+
# table: guama_river # table name within gpkg
253+
## END - EXERCISE 2 - Guama River mainstems
255254

256255
## START - EXERCISE 3 - Coverages
257256
# tartu-ntl:

0 commit comments

Comments
 (0)