MultiLineString extends Collection
Collection: Abstract class for compound geometries
A geometry is a collection if it is made up of other component geometries. Therefore, everything but a Point is a Collection. For example a LineString is a collection of Points. A Polygon is a collection of LineStrings etc.
Table of Contents
Methods
- __construct() : mixed
- Constructor: Checks and sets component geometries
- asArray() : array<string|int, mixed>
- contains() : bool|null
- getComponents() : array<string|int, BaseGeometry>
- getComponentsCount() : int
- getGeometryType() : string
Methods
__construct()
Constructor: Checks and sets component geometries
public
__construct([array<string|int, mixed> $components = [] ]) : mixed
Parameters
- $components : array<string|int, mixed> = []
-
array of geometries
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>contains()
public
contains(BaseGeometry $geometry) : bool|null
Parameters
- $geometry : BaseGeometry
Return values
bool|nullgetComponents()
public
getComponents() : array<string|int, BaseGeometry>
Return values
array<string|int, BaseGeometry>getComponentsCount()
public
getComponentsCount() : int
Return values
intgetGeometryType()
public
getGeometryType() : string