WmsvShomGt
extends WmsServer
in package
classe implémentant le serveur WMS-Vecteur de ShomGt.
La classe WmsvShomGt hérite de la classe WmsServer qui gère le protocole WMS. Le script appelle WmsServer::process() qui appelle les méthodes WmsvShomGt::getCapabilities() ou WmsvShomGt::getMap()
Table of Contents
Properties
- $debug : int
- $logfilename : string
Methods
- exception() : never
- Envoi d'une exception WMS
- getCapabilities() : never
- méthode GetCapabilities du serveur Shomgt
- getFeatureInfo() : never
- La classe concrète peut fournir une méthode getFeatureInfo()
- getMap() : never
- méthode GetMap du serveur WMS Shomgt
- init() : void
- possibilité de modifier le nom du fichier de log
- log() : void
- écrit un message dans le fichier des logs
- process() : never
- traite une requête WMS
- toGeo() : TPos
- wombox() : EBox
- calcul EBox en WorldMercator en fonction de crs
Properties
$debug
public
static int
$debug
= 0
$logfilename
public
static string
$logfilename
= __DIR__ . '/wmsserver_logfile.txt'
Methods
exception()
Envoi d'une exception WMS
public
static exception(int $httpErrorCode, string $mesUti[, string $wmsErrorCode = '' ][, string $mesSys = '' ]) : never
Parameters
- $httpErrorCode : int
-
code d'erreur HTTP
- $mesUti : string
-
message destiné à l'utilisateur
- $wmsErrorCode : string = ''
- $mesSys : string = ''
Return values
nevergetCapabilities()
méthode GetCapabilities du serveur Shomgt
public
getCapabilities([string $version = '' ]) : never
Parameters
- $version : string = ''
Return values
nevergetFeatureInfo()
La classe concrète peut fournir une méthode getFeatureInfo()
public
getFeatureInfo(array<int, string> $lyrnames, string $crs, TPos $pos, int $featureCount, array<int, float> $pixelSize, string $format) : never
Parameters
- $lyrnames : array<int, string>
- $crs : string
- $pos : TPos
- $featureCount : int
- $pixelSize : array<int, float>
- $format : string
Return values
nevergetMap()
méthode GetMap du serveur WMS Shomgt
public
getMap(string $version, array<int, string> $lyrnames, array<int, string> $styles, array<int, string> $bbox, string $crs, int $width, int $height, string $format, string $transparent, string $bgcolor) : never
Parameters
- $version : string
- $lyrnames : array<int, string>
- $styles : array<int, string>
- $bbox : array<int, string>
- $crs : string
- $width : int
- $height : int
- $format : string
- $transparent : string
- $bgcolor : string
Return values
neverinit()
possibilité de modifier le nom du fichier de log
public
static init(array<string, string> $params) : void
Parameters
- $params : array<string, string>
log()
écrit un message dans le fichier des logs
public
static log(string $message) : void
Parameters
- $message : string
process()
traite une requête WMS
public
process(array<string, string> $params) : never
Parameters
- $params : array<string, string>
-
copie de _GET
Return values
nevertoGeo()
private
toGeo(string $crs, TPos $geo) : TPos
Parameters
- $crs : string
- $geo : TPos
Return values
TPoswombox()
calcul EBox en WorldMercator en fonction de crs
private
wombox(string $crs, array<int, string> $bbox) : EBox
Parameters
- $crs : string
- $bbox : array<int, string>