phpDocumentor

TempMapCat
in package

charge le catalogue de cartes et sait retourner pour un gtname les infos correspondantes

Table of Contents

Constants

MAPCAT_TEMP_PATH  = __DIR__ . '/../sgupdt/temp/mapcat.json'

Properties

$cat  : array<string, TempMapCat>
$map  : array<string, mixed>
$name  : string

Methods

__construct()  : mixed
allZonesToDelete()  : array<string, array<string, array<int, mixed>>>
extrait de TempMapCat ceux ayant un champ toDelete et retourne un array [{gtname}=> {toDelete}] / {toDelete} défini par mapcat.schema.yaml
fromGtname()  : self|null
retourne la carte ou le cartouche correspondant à $gtname, $temp indique si la carte est dans temp ou dans maps
gtInfo()  : array<string, mixed>
init()  : void
si $option == 'download' ou si le fichier mapcat.json n'existe pas alors télécharge mapcat.json depuis $SHOMGT3_SERVER_URL puis initialise self::$cat à partir du fichier
insetMap()  : self
insetMaps()  : array<int, array<string, mixed>>
scaleDen()  : int|null
toDeleteByGtname()  : array<string, array<string, array<int, mixed>>>
retourne pour la carte $mapid les champs toDelete par gtname ou [] s'il n'y en a pas
insetMapFromRect()  : self|null
sélectionne le cartouche qui correspond le mieux au rectangle passé en paramètre et en construit un objet TempMapCat

Constants

MAPCAT_TEMP_PATH

public mixed MAPCAT_TEMP_PATH = __DIR__ . '/../sgupdt/temp/mapcat.json'

Properties

Methods

__construct()

public __construct(string $name, array<string, mixed> $map) : mixed
Parameters
$name : string
$map : array<string, mixed>

allZonesToDelete()

extrait de TempMapCat ceux ayant un champ toDelete et retourne un array [{gtname}=> {toDelete}] / {toDelete} défini par mapcat.schema.yaml

public static allZonesToDelete() : array<string, array<string, array<int, mixed>>>
Return values
array<string, array<string, array<int, mixed>>>

fromGtname()

retourne la carte ou le cartouche correspondant à $gtname, $temp indique si la carte est dans temp ou dans maps

public static fromGtname(string $gtname, bool $temp) : self|null
Parameters
$gtname : string
$temp : bool
Return values
self|null

gtInfo()

public gtInfo() : array<string, mixed>
Return values
array<string, mixed>

init()

si $option == 'download' ou si le fichier mapcat.json n'existe pas alors télécharge mapcat.json depuis $SHOMGT3_SERVER_URL puis initialise self::$cat à partir du fichier

public static init([string $option = '' ]) : void
Parameters
$option : string = ''

insetMap()

public insetMap(int $no) : self
Parameters
$no : int
Return values
self

insetMaps()

public insetMaps() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>>

scaleDen()

public scaleDen() : int|null
Return values
int|null

toDeleteByGtname()

retourne pour la carte $mapid les champs toDelete par gtname ou [] s'il n'y en a pas

public static toDeleteByGtname(string $mapid) : array<string, array<string, array<int, mixed>>>
Parameters
$mapid : string
Return values
array<string, array<string, array<int, mixed>>>

insetMapFromRect()

sélectionne le cartouche qui correspond le mieux au rectangle passé en paramètre et en construit un objet TempMapCat

private insetMapFromRect(GBox $georefrect) : self|null
Parameters
$georefrect : GBox
Return values
self|null

        
On this page

Search results