tile.php
webservice au standard XYZ d'accès aux GéoTIFF du Shom
Affichage des cartes Shom conformément au standard XYZ (voir https://en.wikipedia.org/wiki/Tiled_web_map) facile à utiliser dans une carte Leaflet.
- L'utilisation de l'option GET verbose=1 permet d'afficher des commentaires
Point d'accès:
end_point API:
http://localhost/geoapi/shomgt/view/tile.php
https://geoapi.fr/shomgt/view/tile.php
end_point layer:
http://localhost/geoapi/shomgt/view/tile.php/{layer}
https://geoapi.fr/shomgt/view/tile.php/{layer}
end_point tile:
http://localhost/geoapi/shomgt/view/tile.php/{layer}/{z}/{x}/{y}.png
https://geoapi.fr/shomgt/view/tile.php/{layer}/{z}/{x}/{y}.png
Test:
http://localhost/geoapi/shomgt/view/tile.php/gtpyr/17/63957/45506.png
journal: |
28-31/7/2022:
- correction suite à analyse PhpStan level 6 2/7/2022:
- ajout du log 6/6/2022:
- mise en constantes du débrayage des caches 30/5/2022:
- modif initialisation Layer 26/5/2022:
- activation des headers de mise en cache
- ajout du cache de tuiles 24/5/2022:
- correction du code affichant la version 1/5/2022: création par copie de la version de shomgt2
Table of Contents
Constants
- NB_SECONDS_IN_CACHE = 0.5 * 24 * 60 * 60
- nb secondes en cache pour le navigateur si <> 0
- SERVER_TILECACHE = \true
- mise en cache des tuiles sur le serveur
Functions
- logRecord() : void
- enregistrement d'un log temporaire pour afficher des infos, par ex. estimer les performances
Constants
NB_SECONDS_IN_CACHE
nb secondes en cache pour le navigateur si <> 0
public
mixed
NB_SECONDS_IN_CACHE
= 0.5 * 24 * 60 * 60
SERVER_TILECACHE
mise en cache des tuiles sur le serveur
public
mixed
SERVER_TILECACHE
= \true
Functions
logRecord()
enregistrement d'un log temporaire pour afficher des infos, par ex. estimer les performances
logRecord(array<string|int, mixed> $log) : void
Parameters
- $log : array<string|int, mixed>