phpDocumentor

WmsShomGt extends WmsServer
in package

classe implémentant le serveur WMS de ShomGt.

La classe WmsShomGt hérite de la classe WmsServer qui gère le protocole WMS. Le script appelle WmsServer::process() qui appelle les méthodes WmsShomGt::getCapabilities() ou WmsShomGt::getMap()

Table of Contents

Constants

BASE  = 20037508.342789248
xmax en Web Mercator en mètres
OUTLINE_COLOR  = [0, 0, 0xff]
couleur des silhouettes sous la forme [R,V,B]
STD_PIXEL_SIZE  = 0.00028
taille du pixel définie par WMS en mètres, soit 90,7 dpi (1 inch = 25,4 mm)

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
tooSmallScale()  : bool
indique si l'échelle demandée est considérée comme trop petite pour la couche
wombox()  : EBox
calcul EBox en WorldMercator en fonction de crs
zoom()  : float

Constants

BASE

xmax en Web Mercator en mètres

public mixed BASE = 20037508.342789248

OUTLINE_COLOR

couleur des silhouettes sous la forme [R,V,B]

public mixed OUTLINE_COLOR = [0, 0, 0xff]

STD_PIXEL_SIZE

taille du pixel définie par WMS en mètres, soit 90,7 dpi (1 inch = 25,4 mm)

public mixed STD_PIXEL_SIZE = 0.00028

Properties

$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
never

getCapabilities()

méthode GetCapabilities du serveur Shomgt

public getCapabilities([string $version = '' ]) : never
Parameters
$version : string = ''
Return values
never

getFeatureInfo()

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
never

getMap()

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
never

init()

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
never

tooSmallScale()

indique si l'échelle demandée est considérée comme trop petite pour la couche

private tooSmallScale(float $scaleden, string $lyrname) : bool
Parameters
$scaleden : float
$lyrname : string
Return values
bool

wombox()

calcul EBox en WorldMercator en fonction de crs

private wombox(string $crs, array<int, string> $bbox) : EBox
Parameters
$crs : string
$bbox : array<int, string>
Return values
EBox

zoom()

private zoom(EBox $wombox, int $width) : float
Parameters
$wombox : EBox
$width : int
Return values
float

        
On this page

Search results