Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annexe inconnue / 404 #56

Open
pathmapper opened this issue Sep 12, 2024 · 2 comments
Open

Annexe inconnue / 404 #56

pathmapper opened this issue Sep 12, 2024 · 2 comments
Labels
api About API Warehouse bug Something isn't working

Comments

@pathmapper
Copy link

pathmapper commented Sep 12, 2024

Entité(s) concernée(s)

annexe

Route API concernée

None

Méthode de la route API

GET

Description détaillée du bug

l'URL du glyphe

https://data.geopf.fr/annexes/ressources/vectorTiles/fonts/{fontstack}/{range}.pbf

https://data.geopf.fr/annexes/ressources/vectorTiles/fonts.json

de

https://data.geopf.fr/annexes/ressources/vectorTiles/styles/PLAN.IGN/gris.json

renvoie une erreur 404:

image

@pathmapper pathmapper added api About API Warehouse bug Something isn't working labels Sep 12, 2024
@azarz
Copy link

azarz commented Sep 12, 2024

Bonjour,

Cela est normal, car l'url https://data.geopf.fr/annexes/ressources/vectorTiles/fonts/{fontstack}/{range}.pbf est un template.

Normalement, l'URL brute https://data.geopf.fr/annexes/ressources/vectorTiles/fonts/{fontstack}/{range}.pbf n'est jamais appelée. Le moteur de tuiles vectorielle remplace {fontstack} et {range} en fonction des polices rencontrées dans le style.

Par exemple, pour la couche

{
            "id": "toponyme - parcellaire - section",
            "type": "symbol",
            "source": "plan_ign",
            "source-layer": "toponyme_parcellaire_section",
            "filter": ["==","txt_typo","SECTION"],
            "layout": {
                "symbol-placement": "line",
				"text-offset": [0, 0],
                "text-field": "{texte}",
                "text-size": 15,
                "text-anchor": "center",
                "text-keep-upright": true,
                "text-max-angle": 45,
                "text-font": ["Source Sans Pro Regular"]
            },
            "paint": {
                "text-color": "#5A5A5A"
            }
        }

La requête est faite à https://data.geopf.fr/annexes/ressources/vectorTiles/fonts/Source%20Sans%20Pro%20Regular/0-255.pbf qui n'est pas en 404.

@pathmapper
Copy link
Author

Désolé, j'ai posté une mauvaise URL. Voici la bonne:

https://data.geopf.fr/annexes/ressources/vectorTiles/fonts.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api About API Warehouse bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants