WmsServerTest
extends WmsServer
in package
Test d'utilisation de la classe WmsServer
Table of Contents
Properties
- $debug : int
- $logfilename : string
Methods
- exception() : never
- Envoi d'une exception WMS
- getCapabilities() : never
- La classe concrète doit fournir une méthode getCapabilities()
- getFeatureInfo() : never
- La classe concrète peut fournir une méthode getFeatureInfo()
- getMap() : never
- La classe concrète doit fournir une méthode getMap()
- 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
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()
La classe concrète doit fournir une méthode getCapabilities()
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()
La classe concrète doit fournir une méthode getMap()
public
getMap(string $version, array<string|int, mixed> $lyrnames, array<string|int, mixed> $styles, array<string|int, mixed> $bbox, string $crs, int $width, int $height, string $format, string $transparent, string $bgcolor) : never
Parameters
- $version : string
- $lyrnames : array<string|int, mixed>
- $styles : array<string|int, mixed>
- $bbox : array<string|int, mixed>
- $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