diff --git a/libs/api/metadata-converter/src/lib/fixtures/geo2france.iso19139.service+eaux-usees.xml b/libs/api/metadata-converter/src/lib/fixtures/geo2france.iso19139.service+eaux-usees.xml new file mode 100644 index 0000000000..01910d67fa --- /dev/null +++ b/libs/api/metadata-converter/src/lib/fixtures/geo2france.iso19139.service+eaux-usees.xml @@ -0,0 +1,506 @@ + + + + be052079-f1f6-4f6f-a722-cbf11deb40eb + + + + + + + + + + + + Service + + + + + Sandre + + + + + + + OIEau + + + 15 rue Edouard Chamberland + + + 87000 + + + France + + + sandre@sandre.eaufrance.fr + + + + + + + + + + + + 2024-05-29T11:58:54.326Z + + + ISO 19115:2003/19139 + + + 1.0 + + + + + + + Service web géographique OGC (WFS) du référentiel des Stations de traitement des eaux usées - Ouvrages de dépollution + + + + + + 2019-12-02 + + + + + + + + + + https://id.eaufrance.fr/meta/ODP_WFS + + + + + + + Le service web (WFS) du référentiel des Stations de traitement des eaux permet de télécharger les ouvrages impliqués dans la dépollution des eaux usées. Les différents concepts définis dans le scénario d'échange du référentiel Stations de traitement des eaux usées du Sandre sont diffusés par ce service. + + + + + Sandre + + + + + + + OIEau + + + 15 Rue Edouad Chamberland + + + 87000 + + + France + + + sandre@sandre.eaufrance.fr + + + + + + + + + + + + + + WFS + + + Ouvrage de dépollution + + + Rapportage + + + ODP + + + SysTraitementEauxUsees + + + Données ouvertes + + + Services d'utilité publique et services publics + + + France métropolitaine + + + hvd + + + + + + + + + + National + + + + + Champ géographique + + + + + 2019-05-22 + + + + + + + + + + + + + + Services d'utilité publique et services publics + + + + + + + + GEMET - INSPIRE themes, version 1.0 + + + + + 2008-06-01 + + + + + + + + + + Registre de thème INSPIRE + + + + + + + + + + + Service d’accès aux éléments + + + + + COMMISSION REGULATION (EC) No 1205/2008 of 3 December 2008 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards metadata, Part D 4, Classification of Spatial Data Services + + + + + 2008-12-03 + + + + + + + + + + + + + + Directive 2012/18/EU + + + Urban waste-water treatment plants (Urban Waste Water Treatment Directive) + + + + + INSPIRE priority data set + + + + + 2018-04-04 + + + + + + + + + + + + + + Observation de la terre et environnement + + + + + + + + High-value dataset categories + + + + + 2024-05-13 + + + + + + + + + + geonetwork.thesaurus.external.theme.high-value-dataset-category-skos-ap-eu + + + + + + + + + + + + + + No limitations on public access + + + + + + + + + + No conditions apply to access and use + + + + + download + + + 2.0.0 + + + + + + + + + + + + + + -61.798 + + + 55.855 + + + -21.371 + + + 51.088 + + + + + + + + + + + + GetCapabilities + + + + + + + + https://services.sandre.eaufrance.fr/geo/odp? + + + OGC:WFS-2.0.0-http-get-capabilities + + + + + + + + + GetFeature + + + + + + + + https://services.sandre.eaufrance.fr/geo/odp? + + + OGC:WFS + + + + + + + + + DescribeFeatureType + + + + + + + + https://services.sandre.eaufrance.fr/geo/odp? + + + OGC:WFS + + + + + + + + + + + + + + + + https://services.sandre.eaufrance.fr/geo/odp?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities + + + OGC:WFS + + + Service de téléchargement + + + sa:SysTraitementEauxUsees + + + Ouvrages de dépollution - Système de traitement des eaux usées - France entière + + + + + + + + + + + + + + + + + + Service + + + + + + + + + + + + + COMMISSION REGULATION (EU) No 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards interoperability of spatial data sets and services + + + + + 2010-12-08 + + + + + + + + + + cf. la spécification citée + + + true + + + + + + + + + Localisation par un ponctuel de l'ouvrage de dépollution a partir d'un fichier csv collecté sur le site du ministère : http://assainissement.developpement-durable.gouv.fr/. +La table des ponctuels comprend désormais tous les points de localisation des stations d'épuration calculés à partir des centroïdes de leur emprise. +Fréquence de mise à jour : annuel. +Qualité des données : Variable selon le type de saisie. + + + + + + + diff --git a/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts b/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts new file mode 100644 index 0000000000..b622bd8c7a --- /dev/null +++ b/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts @@ -0,0 +1,187 @@ +import { ServiceRecord } from '@geonetwork-ui/common/domain/model/record' + +export const GEO2FRANCE_SERVICE_EAUXUSEES_RECORD: ServiceRecord = { + uniqueIdentifier: 'be052079-f1f6-4f6f-a722-cbf11deb40eb', + resourceIdentifier: 'https://id.eaufrance.fr/meta/ODP_WFS', + kind: 'service', + otherLanguages: [], + defaultLanguage: 'fr', + recordUpdated: new Date('2024-05-29T11:58:54.326Z'), + resourceCreated: new Date('2019-12-02T00:00:00.000Z'), + title: + 'Service web géographique OGC (WFS) du référentiel des Stations de traitement des eaux usées - Ouvrages de dépollution', + abstract: + "Le service web (WFS) du référentiel des Stations de traitement des eaux permet de télécharger les ouvrages impliqués dans la dépollution des eaux usées. Les différents concepts définis dans le scénario d'échange du référentiel Stations de traitement des eaux usées du Sandre sont diffusés par ce service.", + ownerOrganization: { + name: 'Sandre', + translations: {}, + }, + contacts: [ + { + email: 'sandre@sandre.eaufrance.fr', + role: 'point_of_contact', + organization: { + name: 'Sandre', + translations: {}, + }, + address: 'OIEau, 15 rue Edouard Chamberland, 87000, France', + }, + ], + contactsForResource: [ + { + email: 'sandre@sandre.eaufrance.fr', + role: 'custodian', + organization: { + name: 'Sandre', + translations: {}, + }, + address: 'OIEau, 15 Rue Edouad Chamberland, 87000, France', + }, + ], + keywords: [ + { + label: 'WFS', + type: 'theme', + translations: {}, + }, + { + label: 'Ouvrage de dépollution', + type: 'theme', + translations: {}, + }, + { + label: 'Rapportage', + type: 'theme', + translations: {}, + }, + { + label: 'ODP', + type: 'theme', + translations: {}, + }, + { + label: 'SysTraitementEauxUsees', + type: 'theme', + translations: {}, + }, + { + label: 'Données ouvertes', + type: 'theme', + translations: {}, + }, + { + label: "Services d'utilité publique et services publics", + type: 'theme', + translations: {}, + }, + { + label: 'France métropolitaine', + type: 'theme', + translations: {}, + }, + { + label: 'hvd', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: null, + name: 'Champ géographique', + }, + label: 'National', + type: 'other', + translations: {}, + }, + { + thesaurus: { + id: 'Registre de thème INSPIRE', + name: 'GEMET - INSPIRE themes, version 1.0', + url: new URL('http://inspire.ec.europa.eu/theme'), + }, + label: "Services d'utilité publique et services publics", + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: null, + name: 'COMMISSION REGULATION (EC) No 1205/2008 of 3 December 2008 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards metadata, Part D 4, Classification of Spatial Data Services', + }, + label: 'Service d’accès aux éléments', + type: 'other', + translations: {}, + }, + { + thesaurus: { + id: null, + name: 'INSPIRE priority data set', + }, + label: 'Directive 2012/18/EU', + type: 'other', + translations: {}, + }, + { + thesaurus: { + id: null, + name: 'INSPIRE priority data set', + }, + label: + 'Urban waste-water treatment plants (Urban Waste Water Treatment Directive)', + type: 'other', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.high-value-dataset-category-skos-ap-eu', + name: 'High-value dataset categories', + url: new URL( + 'https://www.sandre.eaufrance.fr/atlas/srv/api/registries/vocabularies/external.theme.high-value-dataset-category-skos-ap-eu' + ), + }, + label: 'Observation de la terre et environnement', + type: 'theme', + translations: {}, + }, + ], + topics: [], + licenses: [], + legalConstraints: [ + { + url: new URL( + 'http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations' + ), + text: 'No limitations on public access', + translations: {}, + }, + { + url: new URL( + 'http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply' + ), + text: 'No conditions apply to access and use', + translations: {}, + }, + ], + securityConstraints: [], + spatialExtents: [ + { + bbox: [-61.798, -21.371, 55.855, 51.088], + translations: {}, + }, + ], + otherConstraints: [], + overviews: [], + onlineResources: [ + { + type: 'endpoint', + endpointUrl: new URL( + 'https://services.sandre.eaufrance.fr/geo/odp?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetCapabilities' + ), + protocol: 'wfs', + description: + 'Ouvrages de dépollution - Système de traitement des eaux usées - France entière', + translations: {}, + }, + ], + translations: {}, +} diff --git a/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts b/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts index f57d786347..e38de17dba 100644 --- a/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +++ b/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts @@ -803,7 +803,7 @@ export const GEOCAT_CH_SERVICE_RECORD: ServiceRecord = { bbox: [ 8.749927283333331, 46.853613697777774, 9.697637729444445, 47.5586926625, ], - translations: {} + translations: {}, }, ], } diff --git a/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts b/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts index c2d76808e4..140a10a242 100644 --- a/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +++ b/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts @@ -657,4 +657,10 @@ export const METAWAL_SERVICE_RECORD: ServiceRecord = { landingPage: new URL( 'https://metawal.wallonie.be/geonetwork/srv/api/records/6d2b6fdb-f1ea-4d48-8697-a0c05512f1dc' ), + spatialExtents: [ + { + bbox: [2.75, 49.45, 6.5, 50.85], + translations: {}, + }, + ], } diff --git a/libs/api/metadata-converter/src/lib/fixtures/wallonie.iso19139.service+napitswallonia.xml b/libs/api/metadata-converter/src/lib/fixtures/wallonie.iso19139.service+napitswallonia.xml new file mode 100644 index 0000000000..e52db1f406 --- /dev/null +++ b/libs/api/metadata-converter/src/lib/fixtures/wallonie.iso19139.service+napitswallonia.xml @@ -0,0 +1,696 @@ + + + + + + fe1c1a3d-c75b-435c-a1d1-48426818f54d + + + urn:uuid + + + + + + + + + + + + + + + + + + + + Service + + + + + + + + + + + + Gestion et valorisation de la donnée (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée) + + + + + + + helpdesk.carto@spw.wallonie.be + + + + + + + + + + + + + 2023-12-18T12:25:26.465Z + + + + + + + + + + 2023-12-18T10:15:40.854Z + + + + + + + + + + 2024-10-15T07:37:39.350704Z + + + + + + + + + + 2019-04-02T12:31:13 + + + + + + + + + + ISO 19119 + + + 2005/Amd.1:2008 + + + + + + + https://metawal.wallonie.be/geonetwork/srv/api/records/fe1c1a3d-c75b-435c-a1d1-48426818f54d + + + + + + + + + + + + Service OGC API Records du catalogue NAP-ITS-Wallonia + + + + + 2023-12-18 + + + + + + + + + + 2023-12-18 + + + + + + + + + + fe1c1a3d-c75b-435c-a1d1-48426818f54d + + + http://geodata.wallonie.be/id/ + + + + + + + Point d'accès OGC API Records du catalogue NAP-ITS-Wallonia contenant la description des données régionales de mobilité telles que demandé par la législation sur les systèmes de transport intelligents. + + + + + + + + + + Helpdesk carto du SPW (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée) + + + + + + + helpdesk.carto@spw.wallonie.be + + + + + + + + + + + + + + + + + + Gestion et valorisation de la donnée (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée) + + + + + + + helpdesk.carto@spw.wallonie.be + + + + + + + + + + + + + + + + + + Service public de Wallonie (SPW) + + + + + + + + + + https://geoportail.wallonie.be + + + WWW:LINK + + + Géoportail de la Wallonie + + + Géoportail de la Wallonie + + + + + + + + + + + + + + transportation + + + + + Région wallonne + + + + + 2.75 + + + 6.50 + + + 49.45 + + + 50.85 + + + + + + + + + https://metawal.wallonie.be/geonetwork/srv/api/records/fe1c1a3d-c75b-435c-a1d1-48426818f54d/attachments/echangeur.png + + + echangeur.png + + + + + + + Mobilité (autre) + + + Données de base (autre) + + + Mobilité + + + Données de base + + + + + + + + Thèmes du géoportail wallon + + + + + 2014-01-01 + + + + + + + + + + 2014-06-26 + + + + + + + + + + geonetwork.thesaurus.external.theme.Themes_geoportail_wallon_hierarchy + + + + + + + + + + + métadonnées + + + ISO + + + CSW + + + 19115 + + + 19139 + + + description + + + MobilityDCAT + + + DCAT + + + MMTIS + + + SRTI + + + ITS + + + NAP + + + transportdata + + + RTTI + + + SSTP + + + + + + + Reporting INSPIRENO + + + + + + + + Mots-clés InfraSIG + + + + + 2022-10-03 + + + + + + + + + + 2022-10-03 + + + + + + + + + + geonetwork.thesaurus.external.theme.infraSIG + + + + + + + + + + + Service de catalogue + + + + + + + + Classification of spatial data services + + + + + 2008-01-01 + + + + + + + + + + 2008-12-03 + + + + + + + + + + geonetwork.thesaurus.external.theme.httpinspireeceuropaeumetadatacodelistSpatialDataServiceCategory-SpatialDataServiceCategory + + + + + + + + + + + Régional + + + + + + + + Champ géographique + + + + + 2019-01-01 + + + + + + + + + + 2019-05-22 + + + + + + + + + + geonetwork.thesaurus.external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope + + + + + + + + + + + transport + + + + + + + + GEMET themes + + + + + 2009-01-01 + + + + + + + + + + 2009-09-22 + + + + + + + + + + geonetwork.thesaurus.external.theme.gemet-theme + + + + + + + + + + + + + + No limitations to public access + + + + + + + Aucune condition ne s'applique + + + + + + + + + + Aucune contrainte d'utilisation ne s'applique + + + + + discovery + + + + + + + + + + + GetCapabilities + + + + + + + + https://metawal.wallonie.be/geonetwork/api/collections/napits + + + OGC API - Records + + + Point d'accès OGC API Records pour NAP-ITS-Wallonia + + + Point d'accès OGC API Records pour NAP-ITS-Wallonia. + + + + + + + + + + + + + + + + + + + + + + + + + Service public de Wallonie (SPW) + + + + + + + helpdesk.carto@spw.wallonie.be + + + + + + + + + + + + + Connexion libre pour la visualisation du contenu du catalogue. + + + + + + + + + + + https://metawal.wallonie.be/geonetwork/api/collections/napits + + + OGC API - Records + + + Point d'accès OGC API Records pour NAP-ITS-Wallonia + + + Point d'accès OGC API Records pour NAP-ITS-Wallonia. + + + + + + + + + + + \ No newline at end of file diff --git a/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts b/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts new file mode 100644 index 0000000000..e66764c235 --- /dev/null +++ b/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts @@ -0,0 +1,289 @@ +import { ServiceRecord } from '@geonetwork-ui/common/domain/model/record' + +export const WALLONIE_SERVICE_NAPITSWALLONIA_RECORD: ServiceRecord = { + uniqueIdentifier: 'fe1c1a3d-c75b-435c-a1d1-48426818f54d', + resourceIdentifier: 'fe1c1a3d-c75b-435c-a1d1-48426818f54d', + kind: 'service', + otherLanguages: [], + defaultLanguage: 'fr', + recordCreated: new Date('2023-12-18T12:25:26.465Z'), + recordUpdated: new Date('2024-10-15T07:37:39.350Z'), + resourceUpdated: new Date('2023-12-18T00:00:00.000Z'), + resourcePublished: new Date('2023-12-18T00:00:00.000Z'), + title: 'Service OGC API Records du catalogue NAP-ITS-Wallonia', + abstract: + "Point d'accès OGC API Records du catalogue NAP-ITS-Wallonia contenant la description des données régionales de mobilité telles que demandé par la législation sur les systèmes de transport intelligents.", + ownerOrganization: { + name: 'Gestion et valorisation de la donnée (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée)', + translations: {}, + }, + contacts: [ + { + email: 'helpdesk.carto@spw.wallonie.be', + organization: { + name: 'Gestion et valorisation de la donnée (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée)', + translations: {}, + }, + role: 'point_of_contact', + }, + ], + contactsForResource: [ + { + email: 'helpdesk.carto@spw.wallonie.be', + organization: { + name: 'Helpdesk carto du SPW (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée)', + translations: {}, + }, + role: 'point_of_contact', + }, + { + email: 'helpdesk.carto@spw.wallonie.be', + organization: { + name: 'Gestion et valorisation de la donnée (SPW - Secrétariat général - SPW Digital - Département Données transversales - Gestion et valorisation de la donnée)', + translations: {}, + }, + role: 'custodian', + }, + { + email: 'missing@missing.com', + organization: { + name: 'Service public de Wallonie (SPW)', + website: new URL('https://geoportail.wallonie.be/'), + translations: {}, + }, + role: 'owner', + }, + { + email: 'helpdesk.carto@spw.wallonie.be', + organization: { + name: 'Service public de Wallonie (SPW)', + translations: {}, + }, + role: 'distributor', + }, + ], + keywords: [ + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.Themes_geoportail_wallon_hierarchy', + name: 'Thèmes du géoportail wallon', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.Themes_geoportail_wallon_hierarchy' + ), + }, + label: 'Mobilité (autre)', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.Themes_geoportail_wallon_hierarchy', + name: 'Thèmes du géoportail wallon', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.Themes_geoportail_wallon_hierarchy' + ), + }, + label: 'Données de base (autre)', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.Themes_geoportail_wallon_hierarchy', + name: 'Thèmes du géoportail wallon', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.Themes_geoportail_wallon_hierarchy' + ), + }, + label: 'Mobilité', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.Themes_geoportail_wallon_hierarchy', + name: 'Thèmes du géoportail wallon', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.Themes_geoportail_wallon_hierarchy' + ), + }, + label: 'Données de base', + type: 'theme', + translations: {}, + }, + { + label: 'métadonnées', + type: 'other', + translations: {}, + }, + { + label: 'ISO', + type: 'other', + translations: {}, + }, + { + label: 'CSW', + type: 'other', + translations: {}, + }, + { + label: '19115', + type: 'other', + translations: {}, + }, + { + label: '19139', + type: 'other', + translations: {}, + }, + { + label: 'description', + type: 'other', + translations: {}, + }, + { + label: 'MobilityDCAT', + type: 'other', + translations: {}, + }, + { + label: 'DCAT', + type: 'other', + translations: {}, + }, + { + label: 'MMTIS', + type: 'other', + translations: {}, + }, + { + label: 'SRTI', + type: 'other', + translations: {}, + }, + { + label: 'ITS', + type: 'other', + translations: {}, + }, + { + label: 'NAP', + type: 'other', + translations: {}, + }, + { + label: 'transportdata', + type: 'other', + translations: {}, + }, + { + label: 'RTTI', + type: 'other', + translations: {}, + }, + { + label: 'SSTP', + type: 'other', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.infraSIG', + name: 'Mots-clés InfraSIG', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.infraSIG' + ), + }, + label: 'Reporting INSPIRENO', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.httpinspireeceuropaeumetadatacodelistSpatialDataServiceCategory-SpatialDataServiceCategory', + name: 'Classification of spatial data services', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.httpinspireeceuropaeumetadatacodelistSpatialDataServiceCategory-SpatialDataServiceCategory' + ), + }, + label: 'Service de catalogue', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope', + name: 'Champ géographique', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope' + ), + }, + label: 'Régional', + type: 'theme', + translations: {}, + }, + { + thesaurus: { + id: 'geonetwork.thesaurus.external.theme.gemet-theme', + name: 'GEMET themes', + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/registries/vocabularies/external.theme.gemet-theme' + ), + }, + label: 'transport', + type: 'theme', + translations: {}, + }, + ], + topics: ['transportation'], + licenses: [], + legalConstraints: [ + { + url: new URL( + 'http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations' + ), + text: 'No limitations to public access', + translations: {}, + }, + { + text: "Aucune contrainte d'utilisation ne s'applique", + translations: {}, + }, + ], + securityConstraints: [], + spatialExtents: [ + { + bbox: [2.75, 49.45, 6.5, 50.85], + translations: {}, + }, + ], + otherConstraints: [ + { + text: "Aucune condition ne s'applique", + translations: {}, + }, + ], + overviews: [ + { + url: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/records/fe1c1a3d-c75b-435c-a1d1-48426818f54d/attachments/echangeur.png' + ), + description: 'echangeur.png', + }, + ], + onlineResources: [ + { + type: 'endpoint', + endpointUrl: new URL( + 'https://metawal.wallonie.be/geonetwork/api/collections/napits' + ), + protocol: 'other', + description: "Point d'accès OGC API Records pour NAP-ITS-Wallonia.", + translations: {}, + }, + ], + translations: {}, + landingPage: new URL( + 'https://metawal.wallonie.be/geonetwork/srv/api/records/fe1c1a3d-c75b-435c-a1d1-48426818f54d' + ), +} diff --git a/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.spec.ts b/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.spec.ts index 8802f5d31a..78e3c650cb 100644 --- a/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.spec.ts +++ b/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.spec.ts @@ -11,6 +11,11 @@ import METAWAL_DATASET from '../fixtures/metawal.iso19115-3.dataset.xml' import METAWAL_SERVICE from '../fixtures/metawal.iso19115-3.service.xml' // @ts-ignore import SEXTANT_CURRENTS_DATASET from '../fixtures/sextant.iso19115-3.dataset.xml' +// @ts-ignore +import { WALLONIE_SERVICE_NAPITSWALLONIA_RECORD } from '../fixtures/wallonie.records.service+napitswallonia' +// @ts-ignore +import WALLONIE_SERVICE_NAPITSWALLONIA from '../fixtures/wallonie.iso19139.service+napitswallonia.xml' + import { METAWAL_DATASET_RECORD, METAWAL_SERVICE_RECORD, @@ -43,6 +48,10 @@ describe('ISO19115-3 converter', () => { const record = await converter.readRecord(SEXTANT_CURRENTS_DATASET) expect(record).toStrictEqual(SEXTANT_CURRENTS_DATASET_RECORD) }) + it('produces the corresponding record (wallonie napitswallonia service)', async () => { + const record = await converter.readRecord(WALLONIE_SERVICE_NAPITSWALLONIA) + expect(record).toStrictEqual(WALLONIE_SERVICE_NAPITSWALLONIA_RECORD) + }) it('produces the corresponding record (generic dataset)', async () => { const record = await converter.readRecord(GENERIC_DATASET) // exclude unsupported fields @@ -112,6 +121,13 @@ describe('ISO19115-3 converter', () => { ) expect(backAndForth).toStrictEqual(formatXml(METAWAL_SERVICE)) }) + it('keeps the record unchanged (wallonie napitswallonia service)', async () => { + const backAndForth = await converter.writeRecord( + await converter.readRecord(WALLONIE_SERVICE_NAPITSWALLONIA), + WALLONIE_SERVICE_NAPITSWALLONIA + ) + expect(backAndForth).toStrictEqual(formatXml(WALLONIE_SERVICE_NAPITSWALLONIA)) + }) }) }) describe('with a native record', () => { diff --git a/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.spec.ts b/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.spec.ts index 6f5daff0bf..052eb5b8ee 100644 --- a/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.spec.ts +++ b/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.spec.ts @@ -10,6 +10,10 @@ import { GENERIC_DATASET_RECORD } from '../fixtures/generic.records' // @ts-ignore import GEO2FRANCE_PLU_DATASET from '../fixtures/geo2france.iso19139.plu.xml' // @ts-ignore +import { GEO2FRANCE_SERVICE_EAUXUSEES_RECORD } from '../fixtures/geo2france.records.service+eaux-usees' +// @ts-ignore +import GEO2FRANCE_SERVICE_EAUXUSEES from '../fixtures/geo2france.iso19139.service+eaux-usees.xml' +// @ts-ignore import GENERIC_DATASET_PLUS_GEO2FRANCE_DATASET from '../fixtures/generic-dataset+geo2france-plu.iso19139.xml' // @ts-ignore import GEOCAT_CH_DATASET from '../fixtures/geocat-ch.iso19139.dataset.xml' @@ -35,6 +39,10 @@ describe('ISO19139 converter', () => { const record = await converter.readRecord(GEO2FRANCE_PLU_DATASET) expect(record).toStrictEqual(GEO2FRANCE_PLU_DATASET_RECORD) }) + it('produces the corresponding record (geo2france service traitement des eaux usées)', async () => { + const record = await converter.readRecord(GEO2FRANCE_SERVICE_EAUXUSEES) + expect(record).toStrictEqual(GEO2FRANCE_SERVICE_EAUXUSEES_RECORD) + }) it('produces the corresponding record (geocat.ch dataset)', async () => { const record = await converter.readRecord(GEOCAT_CH_DATASET) expect(record).toStrictEqual(GEOCAT_CH_DATASET_RECORD) @@ -75,6 +83,13 @@ describe('ISO19139 converter', () => { ) expect(backAndForth).toStrictEqual(formatXml(GEO2FRANCE_PLU_DATASET)) }) + it('keeps the record unchanged (geo2france service traitement des eaux usées)', async () => { + const backAndForth = await converter.writeRecord( + await converter.readRecord(GEO2FRANCE_SERVICE_EAUXUSEES), + GEO2FRANCE_SERVICE_EAUXUSEES + ) + expect(backAndForth).toStrictEqual(formatXml(GEO2FRANCE_SERVICE_EAUXUSEES)) + }) it('keeps the record unchanged (service)', async () => { const backAndForth = await converter.writeRecord( await converter.readRecord(GEOCAT_CH_SERVICE),