class GisFactory (View source)

Factory class that handles the creation of geometric objects.

Methods

static GisGeometry|null
fromType(string $type)

Returns the singleton instance of geometric class of the given type.

static GisGeometry|null
fromWkt(string $wkt)

Returns the singleton instance of geometric class of the given wkt type.

Details

static GisGeometry|null fromType(string $type)

Returns the singleton instance of geometric class of the given type.

Parameters

string $type

type of the geometric object

Return Value

GisGeometry|null

the singleton instance of geometric class of the given type

static GisGeometry|null fromWkt(string $wkt)

Returns the singleton instance of geometric class of the given wkt type.

Parameters

string $wkt

Return Value

GisGeometry|null