SpatialRefSys
extends BaseQgisXmlObject
in package
QGIS Spatial Reference System classes.
Tags
Table of Contents
Properties
- $authid : string
- $description : null|string
- $proj4 : string
- $srid : null|int
- $childParsers : mixed
- $children : array<string|int, string>
- $childrenCollection : array<string, string>
- $defaultValues : array<string|int, mixed>
- $mandatoryChildren : array<string|int, string>
- $mandatoryProperties : array<string|int, string>
- $properties : array<string|int, string>
- $qgisLocalName : string
- $data : array<string|int, mixed>
- $instances : array<string|int, SpatialRefSys>
Methods
- __construct() : mixed
- Base QGIS object constructor.
- __get() : mixed
- __isset() : bool
- __set() : void
- __unset() : void
- allInstances() : array<string|int, SpatialRefSys>
- Get all Spatial Reference System instance stored.
- clearInstances() : array<string|int, SpatialRefSys>
- Get all Spatial Reference System instance stored.
- fromXmlReader() : BaseQgisObject
- Get an QGIS object instance from an XMLReader instance at an element.
- getData() : array<string|int, mixed>
- getInstance() : SpatialRefSys
- Get a Spatial Reference System instance from an array.
- jsonSerialize() : mixed
- registerChildParser() : mixed
- unRegisterChildParser() : mixed
- arrayToData() : array<string|int, mixed>
- buildInstance() : SpatialRefSys
- Build and instance with data as an array.
- getAttributes() : array<string|int, mixed>
- Get attributes from an XMLReader instance at an element.
- parseChild() : int|string
- Parse from an XMLReader instance at a child of an element.
- set() : void
Properties
$authid
public
string
$authid
$description
public
null|string
$description
$proj4
public
string
$proj4
$srid
public
null|int
$srid
$childParsers
protected
static mixed
$childParsers
$children
protected
static array<string|int, string>
$children
= array('authid', 'proj4', 'srid', 'description')
The XML element parsed children
$childrenCollection
protected
static array<string, string>
$childrenCollection
= array()
The XML element tagname associated with a collector property name
$defaultValues
protected
array<string|int, mixed>
$defaultValues
= array()
The default values for properties
$mandatoryChildren
protected
static array<string|int, string>
$mandatoryChildren
= array('authid', 'proj4')
The XML element needed children
$mandatoryProperties
protected
array<string|int, string>
$mandatoryProperties
= array('authid', 'proj4')
The not null properties
$properties
protected
array<string|int, string>
$properties
= array('authid', 'proj4', 'srid', 'description')
The instance properties
$qgisLocalName
protected
static string
$qgisLocalName
= 'spatialrefsys'
The XML element local name
$data
private
array<string|int, mixed>
$data
= array()
The instance data for properties
$instances
private
static array<string|int, SpatialRefSys>
$instances
= array()
The stored instances
Tags
Methods
__construct()
Base QGIS object constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
the instance data
__get()
public
__get(mixed $property) : mixed
Parameters
- $property : mixed
__isset()
public
__isset(mixed $property) : bool
Parameters
- $property : mixed
Return values
bool__set()
public
final __set(string $key, mixed $val) : void
Parameters
- $key : string
- $val : mixed
__unset()
public
final __unset(string $key) : void
Parameters
- $key : string
allInstances()
Get all Spatial Reference System instance stored.
public
static allInstances() : array<string|int, SpatialRefSys>
Return values
array<string|int, SpatialRefSys>clearInstances()
Get all Spatial Reference System instance stored.
public
static clearInstances() : array<string|int, SpatialRefSys>
Return values
array<string|int, SpatialRefSys>fromXmlReader()
Get an QGIS object instance from an XMLReader instance at an element.
public
static fromXmlReader(XMLReader $oXmlReader) : BaseQgisObject
Parameters
- $oXmlReader : XMLReader
-
An XMLReader instance at an element
Return values
BaseQgisObject —the QGIS object instance corresponding to the element
getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getInstance()
Get a Spatial Reference System instance from an array.
public
static getInstance(SpatialRefSysData $data) : SpatialRefSys
if the authid
is already stored, the Spatial Reference System in memory will be returned
else a new Spatial Reference System instance is constructed, stored and returned.
Parameters
- $data : SpatialRefSysData
-
An array describing Spatial Reference System
Return values
SpatialRefSys —the Spatial Reference System instance corresponding to the array
jsonSerialize()
public
jsonSerialize() : mixed
registerChildParser()
public
static registerChildParser(mixed $localName, mixed $parser) : mixed
Parameters
- $localName : mixed
- $parser : mixed
unRegisterChildParser()
public
static unRegisterChildParser(mixed $localName, mixed $parser) : mixed
Parameters
- $localName : mixed
- $parser : mixed
arrayToData()
protected
arrayToData(mixed $vArray) : array<string|int, mixed>
Parameters
- $vArray : mixed
Return values
array<string|int, mixed>buildInstance()
Build and instance with data as an array.
protected
static buildInstance(array<string|int, mixed> $data) : SpatialRefSys
Parameters
- $data : array<string|int, mixed>
-
the instance data
Return values
SpatialRefSys —the instance
getAttributes()
Get attributes from an XMLReader instance at an element.
protected
static getAttributes(XMLReader $oXmlReader) : array<string|int, mixed>
Parameters
- $oXmlReader : XMLReader
-
An XMLReader instance at an element
Return values
array<string|int, mixed> —the element attributes as keys / values
parseChild()
Parse from an XMLReader instance at a child of an element.
protected
static parseChild(XMLReader $oXmlReader) : int|string
Parameters
- $oXmlReader : XMLReader
-
An XMLReader instance at a child of an element
Return values
int|string —the result of the parsing
set()
protected
set(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>