From 493896130de329b9b8b8fc16756338e9429e32c7 Mon Sep 17 00:00:00 2001 From: Philippe Lafreniere Date: Tue, 26 Jan 2021 10:11:36 -0500 Subject: [PATCH 1/3] add docs and case figure for forced properties attribute --- docs/config_json.rst | 64 +++++++++++++++++++++++++++++---- docs/properties.rst | 2 ++ src/environments/environment.ts | 38 ++++++++++++++++++++ 3 files changed, 98 insertions(+), 6 deletions(-) diff --git a/docs/config_json.rst b/docs/config_json.rst index 0034376f1..45b206886 100644 --- a/docs/config_json.rst +++ b/docs/config_json.rst @@ -404,10 +404,10 @@ Exemples "title": "(composite catalog) with group imposed", "composite": [ { - "id": "tq_swtq", - "url": "https://geoegl.msp.gouv.qc.ca/apis/ws/swtq", - "regFilters": ["zpegt"], - "groupImpose": {"id": "zpegt", "title": "zpegt"} + "id": "tq_swtq", + "url": "https://geoegl.msp.gouv.qc.ca/apis/ws/swtq", + "regFilters": ["zpegt"], + "groupImpose": {"id": "zpegt", "title": "zpegt"} }, { "id": "Gououvert", @@ -425,8 +425,44 @@ Exemples "groupImpose": {"id": "cartetopo", "title": "Carte topo échelle 1/20 000"} } ] - } - ] + }, + { + "id": "forced_properties", + "title": "Forced properties catalog (layer name and abstract)", + "composite": [ + { + "id": "forcedProperties_wmts", + "url": "https://servicesmatriciels.mern.gouv.qc.ca/erdas-iws/ogc/wmts/Cartes_Images", + "type": "wmts", + "setCrossOriginAnonymous": true, + "matrixSet": "EPSG_3857", + "version": "1.0.0", + "forcedProperties": [{ + layerName: "BDTQ-20K_Allegee", + title: "Nouveau nom pour cette couche WMTS" + }] + }, + { + "id": "forcedProperties_wms", + "url": "https://geoegl.msp.gouv.qc.ca/apis/ws/swt", + "type": "wms", + "forcedProperties": [{ + layerName: "lieuhabite", + title: "Nouveau nom pour cette couche WMS" + }] + }, + { + "id": "forcedProperties_arcgisrest", + "url": "https://gisp.dfo-mpo.gc.ca/arcgis/rest/services/FGP/Seafloor_SubstratBenthique/MapServer", + "type": "arcgisrest", + "forcedProperties": [{ + layerName: "Sediment substrate / Substrat sédimentaire", + title: "Nouveau nom pour cette couche ArcGIS REST" + }] + }, + ] + }, + ] } Propriétés @@ -477,6 +513,12 @@ Propriétés - Objet Catalog - .. line-block:: Nombre de résultats retournés par le serveur lors de requêtes **WMS** de GetFeatureInfo - + - + * - abstract + - String + - .. line-block:: + Résumé des données contenues dans le catalogue + - - 5 * - **id*** - String @@ -495,6 +537,16 @@ Propriétés - Objet Catalog - title: Titre pour le groupe qui sera utilisé dans l'outil Catalog. - - + * - forcedProperties + - .. line-block:: + layerName*: String, + title*: String + - .. line-block:: + Permet d'imposer un nom à une couche spécifique. + - layerName: Nom de la couche dans le catalogue d'origine (propriété layer name). Permet d'aller chercher la couche en question dans le service. + - title: Nouveau titre pour la couche. + - + - * - matrixSet - String - .. line-block:: diff --git a/docs/properties.rst b/docs/properties.rst index 405ffa99b..b5a016094 100644 --- a/docs/properties.rst +++ b/docs/properties.rst @@ -211,6 +211,8 @@ Propriétés la source wms à l'option optionsFromCapabilities : true, l'application ira récupérer le lien dans le service WMS. La valeur pilotée à préséance sur la valeur récupérée du service. + Pour les sources WMS, WMTS et ArcGISREST, si celui-ci n'est pas + défini, c'est l'abstract du catalogue qui sera utilisé. Les propriété permises sont: - url - extern diff --git a/src/environments/environment.ts b/src/environments/environment.ts index ae6315489..c1cb6dc6a 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -92,6 +92,44 @@ export const environment: Environment = { } ] }, + { + id: 'forced_properties', + title: 'Forced properties catalog (layer name and abstract)', + url:'', + composite: [ + { + id: 'forcedProperties_wmts', + url: + 'https://servicesmatriciels.mern.gouv.qc.ca/erdas-iws/ogc/wmts/Cartes_Images', + type: 'wmts', + setCrossOriginAnonymous: true, + matrixSet: 'EPSG_3857', + version: '1.0.0', + forcedProperties: [{ + layerName: 'BDTQ-20K_Allegee', + title: 'Nouveau nom pour cette couche WMTS' + }] + }, + { + id: 'forcedProperties_wms', + url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/swtq', + type: 'wms', + forcedProperties: [{ + layerName: 'lieuhabite', + title: 'Nouveau nom pour cette couche WMS' + }] + }, + { + id: 'forcedProperties_arcgisrest', + url: 'https://gisp.dfo-mpo.gc.ca/arcgis/rest/services/FGP/Seafloor_SubstratBenthique/MapServer', + type: 'arcgisrest', + forcedProperties: [{ + layerName: 'Sediment substrate / Substrat sédimentaire', + title: 'Nouveau nom pour cette couche ArcGIS REST' + }] + } + ] + }, { id: 'group_impose', title: From d5cfe1ad439bb106377fee60042b5dd08f22de98 Mon Sep 17 00:00:00 2001 From: Philippe Lafreniere Date: Tue, 26 Jan 2021 10:14:27 -0500 Subject: [PATCH 2/3] lint --- docs/config_json.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/config_json.rst b/docs/config_json.rst index 45b206886..abda8bd1b 100644 --- a/docs/config_json.rst +++ b/docs/config_json.rst @@ -438,8 +438,8 @@ Exemples "matrixSet": "EPSG_3857", "version": "1.0.0", "forcedProperties": [{ - layerName: "BDTQ-20K_Allegee", - title: "Nouveau nom pour cette couche WMTS" + "layerName": "BDTQ-20K_Allegee", + "title": "Nouveau nom pour cette couche WMTS" }] }, { @@ -447,8 +447,8 @@ Exemples "url": "https://geoegl.msp.gouv.qc.ca/apis/ws/swt", "type": "wms", "forcedProperties": [{ - layerName: "lieuhabite", - title: "Nouveau nom pour cette couche WMS" + "layerName": "lieuhabite", + "title": "Nouveau nom pour cette couche WMS" }] }, { @@ -456,8 +456,8 @@ Exemples "url": "https://gisp.dfo-mpo.gc.ca/arcgis/rest/services/FGP/Seafloor_SubstratBenthique/MapServer", "type": "arcgisrest", "forcedProperties": [{ - layerName: "Sediment substrate / Substrat sédimentaire", - title: "Nouveau nom pour cette couche ArcGIS REST" + "layerName": "Sediment substrate / Substrat sédimentaire", + "title": "Nouveau nom pour cette couche ArcGIS REST" }] }, ] From 2356c19efb88dcc0bc3d0ef0a7196ad98175a046 Mon Sep 17 00:00:00 2001 From: Philippe Lafreniere Date: Tue, 26 Jan 2021 10:29:19 -0500 Subject: [PATCH 3/3] lint --- src/environments/environment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environments/environment.ts b/src/environments/environment.ts index c1cb6dc6a..ef6282685 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -95,7 +95,7 @@ export const environment: Environment = { { id: 'forced_properties', title: 'Forced properties catalog (layer name and abstract)', - url:'', + url: '', composite: [ { id: 'forcedProperties_wmts',