GeometryCollection
class GeometryCollection extends OGCObject implements Countable (View source)
OGC GeometryCollection type.
TODO: implements fromString and fromArray methods
Properties
protected string | $type | OGC type. | |
int | $srid | Spatial Reference System Identifier (SRID). | from OGCObject |
OGCObject[] | $geometries | OGCObject collection. |
Methods
static OGCObject
buildOGCObject(array $parsed)
Create an OGCObject instance from parsed WKB/WKT.
from OGCObject
static OGCObject
fromWKT(string $wkt, int|null $srid = null)
Create an OGCObject instance from WKT.
from OGCObject
static OGCObject
fromWKB($wkb, int|null $srid = null)
Create an OGCObject instance from WKB.
from OGCObject
array
toValueArray()
Array representation of instance coordinates.
string
__toString()
String representation of the instance.
void
__construct(array $ogcobjects, int|null $srid = null)
GeometryCollection constructor.
int
count()
Countable interface implementation.
Details
static OGCObject
buildOGCObject(array $parsed)
Create an OGCObject instance from parsed WKB/WKT.
static OGCObject
fromWKT(string $wkt, int|null $srid = null)
Create an OGCObject instance from WKT.
static OGCObject
fromWKB($wkb, int|null $srid = null)
Create an OGCObject instance from WKB.
at line 56
protected array
toValueArray()
Array representation of instance coordinates.
at line 66
string
__toString()
String representation of the instance.
at line 37
void
__construct(array $ogcobjects, int|null $srid = null)
GeometryCollection constructor.
at line 78
int
count()
Countable interface implementation.