ProjectionService
extends AirlayService
in package
Class AirlayService
Table of Contents
- AVAILABLE_PROJ = ['aea', 'aeqd', 'cass', 'cea', 'eqc', 'eqdc', 'equi', 'gauss', 'gnom', 'gstmerc', 'krovak', 'laea', 'lcc', 'merc', 'mill', 'moll', 'nzmg', 'omerc', 'ortho', 'poly', 'sinu', 'somerc', 'stere', 'sterea', 'tmerc', 'utm', 'vandg', 'longlat', 'identity']
- $ : AirlayConfig
- $collection : ProjectionsCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- $proj4 : Proj4php
- __construct() : mixed
- convert() : array<string|int, mixed>
- getCollection() : mixed
- isArrayOfNumericPairs() : bool
- isValidProjection() : bool
Constants
AVAILABLE_PROJ
private
mixed
AVAILABLE_PROJ
= ['aea', 'aeqd', 'cass', 'cea', 'eqc', 'eqdc', 'equi', 'gauss', 'gnom', 'gstmerc', 'krovak', 'laea', 'lcc', 'merc', 'mill', 'moll', 'nzmg', 'omerc', 'ortho', 'poly', 'sinu', 'somerc', 'stere', 'sterea', 'tmerc', 'utm', 'vandg', 'longlat', 'identity']
Properties
$
public
AirlayConfig
$
config
$collection
public
ProjectionsCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
$proj4
private
Proj4php
$proj4
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —convert()
public
convert(string $from, string $to, array<string|int, array<string|int, float>> $coordinates) : array<string|int, mixed>
Parameters
- $from : string
- $to : string
- $coordinates : array<string|int, array<string|int, float>>
Return values
array<string|int, mixed> —getCollection()
public
getCollection() : mixed
Return values
mixed —isArrayOfNumericPairs()
public
isArrayOfNumericPairs(array<string|int, mixed> $input) : bool
Parameters
- $input : array<string|int, mixed>
Return values
bool —isValidProjection()
public
isValidProjection(string $parameters) : bool
Parameters
- $parameters : string