MultiLineString
extends Geometry
in package
Class Geometry
Table of Contents
- $coordinates : array<string|int, mixed>
- $lines : array<string|int, mixed>
- $type : string
- __construct() : mixed
- addFewLines() : $this
- addLine() : self
- bsonSerialize() : array<string|int, mixed>
- bsonUnserialize() : void
- deleteLine() : self
- getCoordinates() : array<string|int, array<string|int, array<string|int, float>>>
- getLines() : array<string|int, LineString>
- getType() : string
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$coordinates
protected
array<string|int, mixed>
$coordinates
$lines
protected
array<string|int, mixed>
$lines
= []
$type
protected
string
$type
= 'MultiLineString'
Methods
__construct()
public
__construct(array<string|int, mixed> $positions) : mixed
Parameters
- $positions : array<string|int, mixed>
Return values
mixed —addFewLines()
public
addFewLines(array<string|int, LineString> $lines) : $this
Parameters
- $lines : array<string|int, LineString>
Return values
$this —addLine()
public
addLine(LineString $line) : self
Parameters
- $line : LineString
Return values
self —bsonSerialize()
public
bsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —bsonUnserialize()
public
bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
Return values
void —deleteLine()
public
deleteLine(int $index) : self
Parameters
- $index : int
Return values
self —getCoordinates()
public
getCoordinates() : array<string|int, array<string|int, array<string|int, float>>>
Return values
array<string|int, array<string|int, array<string|int, float>>> —getLines()
public
getLines() : array<string|int, LineString>
Return values
array<string|int, LineString> —getType()
public
getType() : string
Return values
string —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —toArray()
public
toArray() : array<string|int, mixed>