GdalInfoBo
in package
Read onlyYes
contenu du gdalinfo d'un fichier .tif ou .pdf.
Un fichier peut être géoréférencé, non géoréférencé ou mal géoréférencé. Il est géoréférencé ssi les champs coordinateSystem, cornerCoordinates et wgs84Extent sont définis. Il est mal géoréférencé ssi son géoréférencement est erroné. Voir la définition de mal géoréférencé dans goodGeoref()
Table of Contents
Properties
- $info : array<string, mixed>
Methods
- __construct() : mixed
- asArray() : array<string, mixed>
- gbox() : GBoxBo|null
- retourne le GBox ssi il est défini dans le gdalinfo
- georef() : string|null
- indique si le géoréférencement est absent, correct ou incorrect.
- goodGeoref() : bool
- Teste si le géoréférencement fourni par gdalinfo est correct.
- test() : void
- testGoodGeoref() : void
- Test de goodGeoref()
Properties
$info
public
array<string, mixed>
$info
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
asArray()
public
asArray() : array<string, mixed>
Return values
array<string, mixed>gbox()
retourne le GBox ssi il est défini dans le gdalinfo
public
gbox() : GBoxBo|null
Return values
GBoxBo|nullgeoref()
indique si le géoréférencement est absent, correct ou incorrect.
public
georef() : string|null
retourne
- null si non géoréférencé cad champ 'coordinateSystem/wkt' non défini ou vide
- 'ok' si géoréférencé correctement cad champ 'coordinateSystem/wkt' défini et non vide
- 'KO' si géoréférencé incorrectement
Return values
string|nullgoodGeoref()
Teste si le géoréférencement fourni par gdalinfo est correct.
public
goodGeoref([bool $debug = false ]) : bool
Le principe est fondé sur la compraison entre wgs84Extent et la conversion en geo de cornerCoordinates
Parameters
- $debug : bool = false
Return values
booltest()
public
static test(string $path7z, string $entry) : void
Parameters
- $path7z : string
- $entry : string
testGoodGeoref()
Test de goodGeoref()
public
static testGoodGeoref(string $PF_PATH) : void
Parameters
- $PF_PATH : string