class GisFactory

Factory class that handles the creation of geometric objects.

Methods

factory(string $type)

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

Details

at line 28
static GisMultiPolygon|GisPolygon|GisMultiPoint|GisPoint|GisMultiLineString|GisLineString|GisGeometryCollection|false factory(string $type)

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

Parameters

string $type type of the geometric object

Return Value

GisMultiPolygon|GisPolygon|GisMultiPoint|GisPoint|GisMultiLineString|GisLineString|GisGeometryCollection|false the singleton instance of geometric class of the given type