Skip to content

Harmoniser les balises metadata et metadata_urls #17

Description

@lowzonenose

Harmoniser les balises metadata issue du GetCapabilities et metadata_urls isuue du service de recherche.

La balise metadata me semble plus exploitable car on connait le format (mime-type)...
Et, il serait intéressant que les métadonnées soient regroupées dans une même balise afin que l'exploitation du coté client soit plus simple à gèrer.

Exemple de configuration JSON sur un WMS Vecteur realisé sur cartes.gouv.fr

{
    "name": "adminexpress_departement_gpkg_08-09-2025_wmsv",
    "title": "adminexpress-dep-test-jpb",
    "description": "tests **JPB**",
    "globalConstraint": {
        "minScaleDenominator": 0,
        "maxScaleDenominator": 62236752975597,
        "bbox": {
            "left": -61.875,
            "right": 55.8984375,
            "top": 51.27109375,
            "bottom": -21.421484375
        }
    },
    "serviceParams": {
        "id": "OGC:WMS",
        "version": "1.3.0",
        "serverUrl": {
            "full": "https://data.geopf.fr/wms-v/ows"
        }
    },
    "defaultProjection": "EPSG:4326",
    "queryable": true,
    "metadata": [
        {
            "format": "text/html",
            "url": "https://cartes.gouv.fr/catalogue/dataset/adminexpress_departement-jpb"
        },
        {
            "format": "application/xml",
            "url": "https://data.geopf.fr/csw?REQUEST=GetRecordById&SERVICE=CSW&VERSION=2.0.2&OUTPUTSCHEMA=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&elementSetName=full&ID=adminexpress_departement-jpb"
        }
    ],
    "styles": [
        {
            "name": "default-style-adminexpress_departement_gpkg_08-09-2025_wmsv",
            "title": "adminexpress_departement_gpkg_08-09-2025_wmsv style"
        }
    ],
    "legends": [
        {
            "format": "image/png",
            "url": "https://data.geopf.fr/wms-v/ows?service=WMS&version=1.3.0&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=adminexpress_departement_gpkg_08-09-2025_wmsv"
        }
    ],
    "formats": [
        {
            "name": "image/png",
            "current": true
        },
        {
            "name": "application/atom+xml",
            "current": false
        },
        {
            "name": "application/json;type=utfgrid",
            "current": false
        },
        {
            "name": "application/pdf",
            "current": false
        },
        {
            "name": "application/rss+xml",
            "current": false
        },
        {
            "name": "application/vnd.google-earth.kml+xml",
            "current": false
        },
        {
            "name": "application/vnd.google-earth.kml+xml;mode=networklink",
            "current": false
        },
        {
            "name": "application/vnd.google-earth.kmz",
            "current": false
        },
        {
            "name": "image/geotiff",
            "current": false
        },
        {
            "name": "image/geotiff8",
            "current": false
        },
        {
            "name": "image/gif",
            "current": false
        },
        {
            "name": "image/jpeg",
            "current": false
        },
        {
            "name": "image/png; mode=8bit",
            "current": false
        },
        {
            "name": "image/svg+xml",
            "current": false
        },
        {
            "name": "image/tiff",
            "current": false
        },
        {
            "name": "image/tiff8",
            "current": false
        },
        {
            "name": "image/vnd.jpeg-png",
            "current": false
        },
        {
            "name": "image/vnd.jpeg-png8",
            "current": false
        },
        {
            "name": "text/html; subtype=openlayers",
            "current": false
        },
        {
            "name": "text/html; subtype=openlayers2",
            "current": false
        },
        {
            "name": "text/html; subtype=openlayers3",
            "current": false
        }
    ],
    "thumbnail": "https://data.geopf.fr/annexes/cartes.gouv.fr-config/thumbnail/f6876c32-f294-43fc-bd20-00a5a66a1882.png",
    "thematic": [
        "Autres"
    ],
    "metadata_urls": [
        "https://cartes.gouv.fr/catalogue/dataset/adminexpress_departement-jpb",
        "https://data.geopf.fr/csw?REQUEST=GetRecordById&SERVICE=CSW&VERSION=2.0.2&OUTPUTSCHEMA=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&elementSetName=full&ID=adminexpress_departement-jpb"
    ],
    "producer": [
        "Autres"
    ],
    "base": false,
    "key": "adminexpress_departement_gpkg_08-09-2025_wmsv$GEOPORTAIL:OGC:WMS"
}

⚠️ la balise metadata n'est pas disponible pour le WMTS !?
⚠️ les balises metadata et metadata_urls ne sont pas disponible pour le TMS !?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions