ElevationService
extends Injectable
in package
Table of Contents
- $ : AirlayConfig
- $adapter : SrtmAdapter
- __construct() : mixed
- getAverageElevation() : float
- getElevation() : array<string|int, int>
- convertElevationToGeometryStructure() : array<string|int, mixed>
- getPoints() : array<string|int, mixed>
Properties
$
public
AirlayConfig
$
config
$adapter read-only
private
SrtmAdapter
$adapter
Methods
__construct()
public
__construct(SrtmAdapter $adapter) : mixed
Parameters
- $adapter : SrtmAdapter
Return values
mixed —getAverageElevation()
public
getAverageElevation(Geometry $geometry) : float
Parameters
- $geometry : Geometry
Tags
Return values
float —getElevation()
public
getElevation(Geometry $geometry) : array<string|int, int>
Parameters
- $geometry : Geometry
Tags
Return values
array<string|int, int> —convertElevationToGeometryStructure()
private
convertElevationToGeometryStructure(array<string|int, mixed> $elevations, Geometry $geometry) : array<string|int, mixed>
Parameters
- $elevations : array<string|int, mixed>
- $geometry : Geometry
Return values
array<string|int, mixed> —getPoints()
private
getPoints(Geometry $geometry) : array<string|int, mixed>
Parameters
- $geometry : Geometry