phpDocumentor

GdalInfo
in package

Read onlyYes

extrait des infos d'un fichier JSON généré par gdalinfo

La méthode __construct() lit le fichier JSON, en extrait les infos intéressantes et les stocke dans l'objet ainsi créé Les autres méthodes extraient des infos de l'objet.

Table of Contents

Constants

ErrorFileNotFound  = 'GdalInfo::ErrorFileNotFound'
ErrorNoMatch  = 'GdalInfo::ErrorNoMatch'

Properties

$ebox  : EBox|null
$gbox  : GBox|null
$size  : array<string, int>

Methods

__construct()  : mixed
asArray()  : array<string, mixed>
ebox()  : EBox|null
filepath()  : string
retourne le chemin du fichier info.json correspondant à un gtname, temp indique si la carte est dans temp ou dans maps
size()  : array{width: int, height: int}

Constants

ErrorFileNotFound

public mixed ErrorFileNotFound = 'GdalInfo::ErrorFileNotFound'

ErrorNoMatch

public mixed ErrorNoMatch = 'GdalInfo::ErrorNoMatch'

Properties

Methods

__construct()

public __construct(string $filename) : mixed
Parameters
$filename : string

asArray()

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

filepath()

retourne le chemin du fichier info.json correspondant à un gtname, temp indique si la carte est dans temp ou dans maps

public static filepath(string $gtname, bool $temp) : string
Parameters
$gtname : string
$temp : bool

vrai si dans temp, false sinon

Return values
string

size()

public size() : array{width: int, height: int}
Return values
array{width: int, height: int}

        
On this page

Search results