diff --git a/build/fullgeneration/debian11.Dockerfile b/build/fullgeneration/debian11.Dockerfile index 885ac8a..7d4457d 100644 --- a/build/fullgeneration/debian11.Dockerfile +++ b/build/fullgeneration/debian11.Dockerfile @@ -7,7 +7,7 @@ ENV ROK4TILEMATRIXSETS_VERSION=$ROK4TILEMATRIXSETS_VERSION RUN curl -L -o rok4-tilematrixsets.deb https://github.com/rok4/tilematrixsets/releases/download/${ROK4TILEMATRIXSETS_VERSION}/rok4-tilematrixsets-${ROK4TILEMATRIXSETS_VERSION}-linux-all.deb && apt install ./rok4-tilematrixsets.deb ENV ROK4_TMS_DIRECTORY=/usr/share/rok4/tilematrixsets -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/build/generation/debian11.Dockerfile b/build/generation/debian11.Dockerfile index ca457da..f62d1ff 100644 --- a/build/generation/debian11.Dockerfile +++ b/build/generation/debian11.Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:20.04 RUN apt update && apt -y install curl procps wget gdal-bin -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/build/generation/debian12.Dockerfile b/build/generation/debian12.Dockerfile index 1c82d63..4f10c63 100644 --- a/build/generation/debian12.Dockerfile +++ b/build/generation/debian12.Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:22.04 RUN apt update && apt -y install curl procps wget gdal-bin -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/build/server/server.template.json b/build/server/server.template.json index 01cdc3a..38dd688 100644 --- a/build/server/server.template.json +++ b/build/server/server.template.json @@ -6,7 +6,6 @@ "threads": ${SERVER_NBTHREAD}, "port": ":9000", "backlog": ${SERVER_BACKLOG}, - "api": true, "cache": { "size": ${SERVER_CACHE_SIZE}, "validity": ${SERVER_CACHE_VALIDITY} diff --git a/build/server/services.template.json b/build/server/services.template.json index 5f32b4c..2e4c130 100644 --- a/build/server/services.template.json +++ b/build/server/services.template.json @@ -98,6 +98,7 @@ "abstract": "Ce service permet la visulation de couches de données raster IGN au travers d'un flux OGC API Tiles", "keywords": [ "OGC API Tiles" - ] + ], + "reprojection": true } } \ No newline at end of file diff --git a/build/server/ubuntu-2004-valgrind.Dockerfile b/build/server/ubuntu-2004-valgrind.Dockerfile index dfb127a..caa8819 100644 --- a/build/server/ubuntu-2004-valgrind.Dockerfile +++ b/build/server/ubuntu-2004-valgrind.Dockerfile @@ -6,7 +6,7 @@ ARG ROK4TILEMATRIXSETS_VERSION=4.3 ENV ROK4TILEMATRIXSETS_VERSION=$ROK4TILEMATRIXSETS_VERSION RUN curl -L -o rok4-tilematrixsets.deb https://github.com/rok4/tilematrixsets/releases/download/${ROK4TILEMATRIXSETS_VERSION}/rok4-tilematrixsets-${ROK4TILEMATRIXSETS_VERSION}-linux-all.deb && apt install ./rok4-tilematrixsets.deb -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/build/server/ubuntu-2004.Dockerfile b/build/server/ubuntu-2004.Dockerfile index baf60d5..9bd098d 100644 --- a/build/server/ubuntu-2004.Dockerfile +++ b/build/server/ubuntu-2004.Dockerfile @@ -6,7 +6,7 @@ ARG ROK4TILEMATRIXSETS_VERSION=4.3 ENV ROK4TILEMATRIXSETS_VERSION=$ROK4TILEMATRIXSETS_VERSION RUN curl -L -o rok4-tilematrixsets.deb https://github.com/rok4/tilematrixsets/releases/download/${ROK4TILEMATRIXSETS_VERSION}/rok4-tilematrixsets-${ROK4TILEMATRIXSETS_VERSION}-linux-all.deb && apt install ./rok4-tilematrixsets.deb -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/build/server/ubuntu-2204-valgrind.Dockerfile b/build/server/ubuntu-2204-valgrind.Dockerfile index 451f687..34d1dbc 100644 --- a/build/server/ubuntu-2204-valgrind.Dockerfile +++ b/build/server/ubuntu-2204-valgrind.Dockerfile @@ -6,7 +6,7 @@ ARG ROK4TILEMATRIXSETS_VERSION=4.3 ENV ROK4TILEMATRIXSETS_VERSION=$ROK4TILEMATRIXSETS_VERSION RUN curl -L -o rok4-tilematrixsets.deb https://github.com/rok4/tilematrixsets/releases/download/${ROK4TILEMATRIXSETS_VERSION}/rok4-tilematrixsets-${ROK4TILEMATRIXSETS_VERSION}-linux-all.deb && apt install ./rok4-tilematrixsets.deb -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/build/server/ubuntu-2204.Dockerfile b/build/server/ubuntu-2204.Dockerfile index 432e45b..c040b77 100644 --- a/build/server/ubuntu-2204.Dockerfile +++ b/build/server/ubuntu-2204.Dockerfile @@ -6,7 +6,7 @@ ARG ROK4TILEMATRIXSETS_VERSION=4.3 ENV ROK4TILEMATRIXSETS_VERSION=$ROK4TILEMATRIXSETS_VERSION RUN curl -L -o rok4-tilematrixsets.deb https://github.com/rok4/tilematrixsets/releases/download/${ROK4TILEMATRIXSETS_VERSION}/rok4-tilematrixsets-${ROK4TILEMATRIXSETS_VERSION}-linux-all.deb && apt install ./rok4-tilematrixsets.deb -ARG ROK4STYLES_VERSION=4.1 +ARG ROK4STYLES_VERSION=4.4 ENV ROK4STYLES_VERSION=$ROK4STYLES_VERSION RUN curl -L -o rok4-styles.deb https://github.com/rok4/styles/releases/download/${ROK4STYLES_VERSION}/rok4-styles-${ROK4STYLES_VERSION}-linux-all.deb && apt install ./rok4-styles.deb diff --git a/run/datasets/README.md b/run/datasets/README.md index 5c6e6e1..1a0bf1d 100644 --- a/run/datasets/README.md +++ b/run/datasets/README.md @@ -52,230 +52,11 @@ La génération complète se fait en utilisant les images `rok4/pregeneration`, * [PM](https://github.com/rok4/tilematrixsets/blob/master/PM.json) * [UTM20W84MART_1M_MNT](https://github.com/rok4/tilematrixsets/blob/master/UTM20W84MART_1M_MNT.json) -## Détails sur les jeux de données - -Jeux disponibles sous forme d'images Docker sur [Docker Hub](https://hub.docker.com/r/rok4/dataset) - -### rok4/dataset:bdalti-martinique - -1 pyramide, 1 couche - -* Type : pyramide raster - * Zone : Martinique - * Tile Matrix Set : UTM20W84MART_1M_MNT - * Niveau du bas : 6 (25m) - * Source des données : [Alti (25m)](https://geoservices.ign.fr/ressource/154713). Les données (format ASC) doivent être transformées en TIF pour être prise en charge par les outils de génération. Dans le dossier dézippé : -``` -cd BDALTIV2/1_DONNEES_LIVRAISON_2020-06-00407/BDALTIV2_MNT_25M_ASC_WGS84UTM20_MART87_D972 -gdalbuildvrt BDALTIV2_2-0_25M_ASC_WGS84UTM20-MART87_D972_2015-10-21.vrt BDALTIV2_25M_MTQ_0675_1625_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0675_1650_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0700_1600_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0700_1625_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0700_1650_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0725_1600_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0725_1625_MNT_WGS84UTM20_MART87.asc BDALTIV2_25M_MTQ_0725_1650_MNT_WGS84UTM20_MART87.asc -gdalwarp BDALTIV2_2-0_25M_ASC_WGS84UTM20-MART87_D972_2015-10-21.vrt BDALTIV2_2-0_25M_ASC_WGS84UTM20-MART87_D972_2015-10-21.tif -``` - -* Volume à monter : /pyramids/ALTI - -* Exemple de requête à jouer pour ajouter la couche (avec Get Feature Info activé sur la valeur du pixel) - -```bash -curl -X POST $ROK4SERVER_ENDPOINT/admin/layers/ALTI \ --H 'Content-Type: application/json; charset=utf-8' \ ---data-binary @- << EOF -{ - "wms" : { - "enabled" : true, - "crs" : [ - "IGNF:UTM20W84MART", - "CRS:84", - "IGNF:WGS84G", - "EPSG:3857", - "EPSG:4258", - "EPSG:4326" - ] - }, - "tms" : { - "enabled" : true - }, - "keywords" : [ - "UTM20W84MART_1M_MNT", - "RASTER" - ], - "wmts" : { - "enabled" : true - }, - "pyramids" : [ - { - "top_level" : "0", - "path" : "/pyramids/ALTI/ALTI.json", - "bottom_level" : "6" - } - ], - "title" : "ALTI", - "resampling" : "nn", - "abstract" : "Diffusion de la donnée ALTI.json", - "styles" : [ - "normal", - "hypso" - ], - "get_feature_info": { - "type": "PYRAMID" - } -} -EOF -``` - -### rok4/dataset:pente-martinique - -1 pyramide, 1 couche - -* Type : pyramide raster - * Zone : Martinique - * Tile Matrix Set : PM - * Niveau du bas : 13 (20m) - * Source des données : [Alti (250m)](https://geoservices.ign.fr/documentation/diffusion/telechargement-donnees-libres.html#bd-alti) - -* Volume à monter : /pyramids/PENTE - -* Exemple de requête à jouer pour ajouter la couche - -```bash -curl -X POST $ROK4SERVER_ENDPOINT/admin/layers/PENTE \ --H 'Content-Type: application/json; charset=utf-8' \ ---data-binary @- << EOF -{ - "wms" : { - "enabled" : true, - "crs" : [ - "EPSG:3857", - "CRS:84", - "IGNF:WGS84G", - "EPSG:3857", - "EPSG:4258", - "EPSG:4326" - ] - }, - "abstract" : "Diffusion de la donnée PENTE.json", - "title" : "PENTE", - "pyramids" : [ - { - "bottom_level" : "13", - "path" : "/pyramids/PENTE/PENTE.json", - "top_level" : "0" - } - ], - "styles" : [ - "normal" - ], - "tms" : { - "enabled" : true - }, - "wmts" : { - "enabled" : true - }, - "keywords" : [ - "PM", - "RASTER" - ] -} -EOF -``` - -### rok4/dataset:bdortho5m-martinique - -1 pyramides, 1 couches - -* Type : pyramide raster - * Zone : Martinique - * Tile Matrix Set : PM - * Niveau du bas : 15 (7m) - * Source des données : [BDOrtho (5m)](https://geoservices.ign.fr/documentation/diffusion/telechargement-donnees-libres.html#bd-ortho-5-m) - -* Volume à monter : /pyramids/BDORTHO - -* Exemple de requête à jouer pour ajouter la couche - -```bash -curl -X POST $ROK4SERVER_ENDPOINT/admin/layers/BDORTHO \ --H 'Content-Type: application/json; charset=utf-8' \ ---data-binary @- << EOF -{ - "title" : "BDORTHO", - "abstract" : "Diffusion de la donnée BDORTHO.json", - "wmts" : { - "enabled" : true - }, - "keywords" : [ - "PM", - "RASTER" - ], - "tms" : { - "enabled" : true - }, - "styles" : [ - "normal" - ], - "pyramids" : [ - { - "path" : "/pyramids/BDORTHO/BDORTHO.json", - "top_level" : "0", - "bottom_level" : "15" - } - ], - "wms" : { - "crs" : [ - "EPSG:3857", - "CRS:84", - "IGNF:WGS84G", - "EPSG:3857", - "EPSG:4258", - "EPSG:4326" - ], - "enabled" : true - } -} -EOF -``` - -### rok4/dataset:geofla-martinique - -1 pyramide, 1 couche - -* Type : pyramide vecteur - * Zone : Martinique - * Tile Matrix Set : PM - * Niveau du bas : 18 - * Source des données : [GEOFLA](https://geoservices.ign.fr/documentation/diffusion/telechargement-donnees-libres.html#geofla) - -* Volume à monter : /pyramids/LIMADM - -* Exemple de requête à jouer pour ajouter la couche - -```bash -curl -X POST $ROK4SERVER_ENDPOINT/admin/layers/LIMADM \ --H 'Content-Type: application/json; charset=utf-8' \ ---data-binary @- << EOF -{ - "tms" : { - "enabled" : true - }, - "keywords" : [ - "PM", - "RASTER" - ], - "abstract" : "Diffusion de la donnée LIMADM.json", - "title" : "LIMADM", - "pyramids" : [ - { - "top_level" : "0", - "path" : "/pyramids/LIMADM/LIMADM.json", - "bottom_level" : "18" - } - ] -} -EOF -``` +## Détails sur les jeux de données pré conteneurisé ### rok4/dataset:minio -Cette image, ayant pour base `minio/minio`, est un styockage S3 contenant les styles, les tile matrix sets, les pyramides et les descripteurs de couche. Ce stockage centralisé permet d'exploiter le fonctionnement du serveur ROK4 5.0.0. +Cette image, ayant pour base `minio/minio`, est un stockage S3 contenant les styles, les tile matrix sets, les pyramides et les descripteurs de couche. Ce stockage centralisé permet d'exploiter le fonctionnement du serveur ROK4 5.0.0. Ce stockage se lance via la commande `docker run -p 9000:9000 -p 9001:9001 rok4/dataset:minio` et une interface graphique de gestion est disponible à l'URL `http://localhost:9001/buckets` (accès : rok4 / rok4S3storage) @@ -283,5 +64,5 @@ Ce stockage contient les buckets suivants : * `styles` : tous les styles du projet ROK4 * `tilematrixsets` : tous les tile matrix sets du projet ROK4 -* `pyramids` : les pyramides BDORTHO, ALTI, PENTE et LIMADM -* `layers` : l'objet liste `list.txt` et les descripteurs de couche BDORTHO, ALTI, PENTE et LIMADM \ No newline at end of file +* `pyramids` : les pyramides BDORTHO, BDPACELLAIRE, ALTI, PENTE et LIMADM +* `layers` : l'objet liste `list.txt` et les descripteurs de couche BDORTHO, BDPACELLAIRE, ALTI, PENTE et LIMADM \ No newline at end of file