From 63ac8fcd5841ab262a7a97567ae93d9d0f1fac2f Mon Sep 17 00:00:00 2001 From: krishnaglodha Date: Thu, 27 Jun 2024 17:18:39 +0530 Subject: [PATCH 1/4] updated coverage and volume mapping --- .../exercises/data/tartu/estonia_light.tif | Bin 0 -> 10358 bytes workshop/exercises/docker-compose.yml | 2 +- workshop/exercises/pygeoapi.config.yml | 46 +++++++++--------- 3 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 workshop/exercises/data/tartu/estonia_light.tif diff --git a/workshop/exercises/data/tartu/estonia_light.tif b/workshop/exercises/data/tartu/estonia_light.tif new file mode 100644 index 0000000000000000000000000000000000000000..dbd78cfd4b2f2f661685e41e2ff8588ca6d0770e GIT binary patch literal 10358 zcma)>+iP9d5r?-dS&}W;lJ7pg$htW4ExyWkJJ#|2c6^HyVl{3W5^zhQrL9Y#P>5*S zxB<5m0%?^eKNLR|n)Lhwdg_y!r?z1FVsIlcgwh}rY-~*T+4FsC$H%2~gEVKYHEY(a z-^`ksz4qzT8?(+V%X+h{r8R5Ge{IYETKK&p|2>P})%wIa-+MD^G5#r(;Kr2?Z4kpD1Y9`=~w;vj}JfZ9PRnxX!gmWj)FD@|Ht#@pZ?Z$ z_16CC=YPHWkDGhWRb_1{5b4OWwj7gu)qI;d%@@fbYssd2TRK0zk&kBWMf=x7b2>k{ z(HQS4XqNr*dq4hY_3wYwkXOC^%9X>foxI$?cjr&Dogc`fvRft>rJ!S_X?>Jj|+N130=XFKTK zH1FB*yUe?r_7&q#;P0*$+a6g^4LQB&H=BLjOY>c)nTn77uHQ@@mpV^A+wQx$ZGX(q zGI6m#o)6Uzw5gX=c$kLq>ev3{~>yG;3q@ap`Z5B zYRF#&?M(inJgIX3U#i~fr{2nQ+y+mr)}NK;$Gk6- z9Q6x2Kk+FyO?H8ge$$KSX;e>&;DeXvQPfDgEickC(VO zE`3(dG9H9J{%=0#51#X1<+y*T{UNEuDR5~?aVzv`qpg1~28VUvumK!4&>ny;W?mQV zcIeaOAF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ThB*kJn+7Zd%I!cK*fB= z`;T>tb~4ZB_olHQ@BRFKSk}|A5A)&@^cq0#wai}!PSP#x*Yj=M>8IbiT>ooNcxT09 zo^5A6zx(oUd9dY+sq3kjrFXXj9Y&HpCPV!t{&6Yzm|ftd4qg7VLk455^*2IZ+s8* zyQTKB9#VE+P$UvA2Vxo AK>z>% literal 0 HcmV?d00001 diff --git a/workshop/exercises/docker-compose.yml b/workshop/exercises/docker-compose.yml index 8003eb4a..356e9205 100644 --- a/workshop/exercises/docker-compose.yml +++ b/workshop/exercises/docker-compose.yml @@ -42,5 +42,5 @@ services: volumes: - ./pygeoapi.config.yml:/pygeoapi/local.config.yml - # - ./data:/data # Exercise 1 - First - Ready to pull data from here + - ./data/tartu:/data # Exercise 1 - First - Ready to pull data from here - ./plugins/process/squared.py:/pygeoapi/pygeoapi/process/squared.py # Exercise 8 diff --git a/workshop/exercises/pygeoapi.config.yml b/workshop/exercises/pygeoapi.config.yml index e1417985..12c683ff 100644 --- a/workshop/exercises/pygeoapi.config.yml +++ b/workshop/exercises/pygeoapi.config.yml @@ -254,29 +254,29 @@ resources: ## END - EXERCISE 2 - cadastral parcels Tartu ## START - EXERCISE 3 - Coverages -# firenze-terrains: -# type: collection -# title: Administrative boundaries before 2014 -# description: Cadastral parcels (terrains) from the cadastre. Territory Agency; SIT and Information Networks; -# keywords: -# - Cadastral parcels -# links: -# - type: text/html -# rel: canonical -# title: Administrative boundaries before 2014 -# href: http://dati.cittametropolitana.fi.it/geonetwork/srv/metadata/cmfi:419774cb-e812-4ca4-991d-97f0b747e017 -# hreflang: it -# extents: -# spatial: -# bbox: [10.70,43.43,11.76,44.25] -# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84 -# providers: -# - type: coverage -# name: rasterio -# data: /data/53_ED1_G.tif # place correct path here -# format: -# name: GTiff -# mimetype: application/tiff + # tartu-ntl: + # type: collection + # title: Night Time Light Data + # description: Night Time Light Data averaged for 2023 in Tartu region. + # keywords: + # - Night Time Light + # links: + # - type: text/html + # rel: canonical + # title: Nasa's Black Marble + # href: https://blackmarble.gsfc.nasa.gov/ + # hreflang: it + # extents: + # spatial: + # bbox: [26.6264,58.32569 , 26.82632,58.433989] + # crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84 + # providers: + # - type: coverage + # name: rasterio + # data: /data/estonia_light.tif # place correct path here + # format: + # name: GTiff + # mimetype: application/tiff ## END - EXERCISE 3 - Coverages ## START - EXERCISE 4 - Tiles # bathingwater-estonia: From 3d68611f095f64e5e6236a9bedb8ab01cbb4a27a Mon Sep 17 00:00:00 2001 From: krishnaglodha Date: Thu, 27 Jun 2024 17:20:09 +0530 Subject: [PATCH 2/4] added /tartu/ to data in coverage --- workshop/exercises/docker-compose.yml | 2 +- workshop/exercises/pygeoapi.config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/workshop/exercises/docker-compose.yml b/workshop/exercises/docker-compose.yml index 356e9205..072432c5 100644 --- a/workshop/exercises/docker-compose.yml +++ b/workshop/exercises/docker-compose.yml @@ -42,5 +42,5 @@ services: volumes: - ./pygeoapi.config.yml:/pygeoapi/local.config.yml - - ./data/tartu:/data # Exercise 1 - First - Ready to pull data from here + - ./data:/data # Exercise 1 - First - Ready to pull data from here - ./plugins/process/squared.py:/pygeoapi/pygeoapi/process/squared.py # Exercise 8 diff --git a/workshop/exercises/pygeoapi.config.yml b/workshop/exercises/pygeoapi.config.yml index 12c683ff..1094372c 100644 --- a/workshop/exercises/pygeoapi.config.yml +++ b/workshop/exercises/pygeoapi.config.yml @@ -273,7 +273,7 @@ resources: # providers: # - type: coverage # name: rasterio - # data: /data/estonia_light.tif # place correct path here + # data: /data/tartu/estonia_light.tif # place correct path here # format: # name: GTiff # mimetype: application/tiff From 63f98dcaaf113a47d1178fdd93a1583ff83d3882 Mon Sep 17 00:00:00 2001 From: krishnaglodha Date: Thu, 27 Jun 2024 17:27:02 +0530 Subject: [PATCH 3/4] commented data folder --- workshop/exercises/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workshop/exercises/docker-compose.yml b/workshop/exercises/docker-compose.yml index 072432c5..8003eb4a 100644 --- a/workshop/exercises/docker-compose.yml +++ b/workshop/exercises/docker-compose.yml @@ -42,5 +42,5 @@ services: volumes: - ./pygeoapi.config.yml:/pygeoapi/local.config.yml - - ./data:/data # Exercise 1 - First - Ready to pull data from here + # - ./data:/data # Exercise 1 - First - Ready to pull data from here - ./plugins/process/squared.py:/pygeoapi/pygeoapi/process/squared.py # Exercise 8 From ee5d651e17b2b6c32b268d1ce5117295726fddfc Mon Sep 17 00:00:00 2001 From: krishnaglodha Date: Sat, 29 Jun 2024 20:41:47 +0300 Subject: [PATCH 4/4] fixed doc --- .../docs/publishing/ogcapi-coverages.md | 48 +++++++------------ workshop/exercises/pygeoapi.config.yml | 2 +- 2 files changed, 18 insertions(+), 32 deletions(-) diff --git a/workshop/content/docs/publishing/ogcapi-coverages.md b/workshop/content/docs/publishing/ogcapi-coverages.md index 21bb11f8..a2250fc3 100644 --- a/workshop/content/docs/publishing/ogcapi-coverages.md +++ b/workshop/content/docs/publishing/ogcapi-coverages.md @@ -21,51 +21,37 @@ as well as [CoverageJSON](https://covjson.org) and native output. ## Publish a raster dataset -In the previous exercises we have demonstrated the steps involved to publish vector data and update the pygeoapi configuration. In this section we are going to -publish a raster file in GeoTIFF format, from a [rasterio](https://rasterio.readthedocs.io) source provider. +In the previous exercises we have demonstrated the steps involved to publish vector data and update the pygeoapi configuration. In this section we are going to publish a raster file in GeoTIFF format, from a [rasterio](https://rasterio.readthedocs.io) source provider. -Download and unzip the GeoTIFF file: - -
-```bash -cd workshop/exercises/data -curl -O http://dati.cittametropolitana.fi.it/geonetwork/srv/api/records/cmfi:419774cb-e812-4ca4-991d-97f0b747e017/attachments/53.zip -unzip 53.zip -``` -
- -If you do not have curl installed, copy the URL above to your web browser and save locally. - -You can now add `53_ED1_G.tif` to pygeoapi: !!! question "Update the pygeoapi configuration" Open the pygeoapi configuration file in a text editor. Add a new dataset section as follows: ``` {.yaml linenums="1"} - firenze-terrains: + tartu-ntl: type: collection - title: Administrative boundaries before 2014 - description: Cadastral parcels (terrains) from the cadastre. Territory Agency; SIT and Information Networks; + title: Night Time Light Data + description: Night Time Light Data averaged for 2023 in Tartu region. keywords: - - Cadastral parcels + - Night Time Light links: - - type: text/html - rel: canonical - title: Administrative boundaries before 2014 - href: http://dati.cittametropolitana.fi.it/geonetwork/srv/metadata/cmfi:419774cb-e812-4ca4-991d-97f0b747e017 - hreflang: it + - type: text/html + rel: canonical + title: Nasa's Black Marble + href: https://blackmarble.gsfc.nasa.gov/ + hreflang: it extents: spatial: - bbox: [10.70,43.43,11.76,44.25] + bbox: [26.6264,58.32569,26.82632,58.433989] crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84 providers: - - type: coverage - name: rasterio - data: /data/53_ED1_G.tif # place correct path here - format: - name: GTiff - mimetype: application/tiff + - type: coverage + name: rasterio + data: /data/tartu/estonia_light.tif # place correct path here + format: + name: GTiff + mimetype: application/tiff ``` !!! tip diff --git a/workshop/exercises/pygeoapi.config.yml b/workshop/exercises/pygeoapi.config.yml index 1094372c..4b54d488 100644 --- a/workshop/exercises/pygeoapi.config.yml +++ b/workshop/exercises/pygeoapi.config.yml @@ -268,7 +268,7 @@ resources: # hreflang: it # extents: # spatial: - # bbox: [26.6264,58.32569 , 26.82632,58.433989] + # bbox: [26.6264,58.32569,26.82632,58.433989] # crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84 # providers: # - type: coverage