Skip to content

Inclure les métadonnées de type "STYLE_SHEET"#28

Open
lowzonenose wants to merge 1 commit intonew-urlfrom
feature/new_tag_style_tms
Open

Inclure les métadonnées de type "STYLE_SHEET"#28
lowzonenose wants to merge 1 commit intonew-urlfrom
feature/new_tag_style_tms

Conversation

@lowzonenose
Copy link
Contributor

@lowzonenose lowzonenose commented Feb 23, 2026

cf. https://geoplateforme-jira.ign.fr/browse/IGNGPF-5233

⚠️ Prévenir la production qu'il faut utiliser le tag STYLE_SHEET sur les styles des TMS Vecteurs !

Exemple de procédure pour ajouter le tag STYLE_SHEET :

// on récupère la configuration compléte
curl --request GET \
  --url https://data.geopf.fr/api/datastores/{datastore}/configurations/{configuration}
  
// on ajoute les styles avec la configuration complète
curl -X 'PUT' \
  'https://data.geopf.fr/api/datastores/{datastore}/configurations/{configuration}' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ... \
  -H 'Content-Type: application/json' \
  -d '{
  (...)
  "metadata": [
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/gris.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/standard.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/sans_toponymes.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/transparent.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/attenue.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/classique.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/epure.json",
      "type": "STYLE_SHEET"
    },
    {
      "format": "application/json",
      "url": "https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/toponymes.json",
      "type": "STYLE_SHEET"
    },
  ]
}'

// on met à jour l'offre
curl -X 'PUT' \
  'https://data.geopf.fr/api/datastores/{datastore}/offerings/{offering}' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ...

…s pour inclure les métadonnées de type "STYLE_SHEET".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant