interface PolygonInterface

Methods

string
getGeometryType()

Returns the geometry type.

int
getPrecision()

Returns the precision of the geometry.

getCoordinate()

Returns a vertex of this Geometry (usually, but not necessarily, the first one).

getCoordinates()

Returns a collection containing the values of all the vertices for this geometry.

bool
isEmpty()

Returns true if the geometry is empty.

getBounds()

Returns the bounding box of the Geometry

bool
pointInPolygon(CoordinatesInterface $coordinate)

No description

Details

at line 12
string getGeometryType()

Returns the geometry type.

Return Value

string

at line 19
int getPrecision()

Returns the precision of the geometry.

Return Value

int

at line 29
CoordinatesInterface getCoordinate()

Returns a vertex of this Geometry (usually, but not necessarily, the first one).

The returned coordinate should not be assumed to be an actual Coordinate object used in the internal representation.

Return Value

CoordinatesInterface

if there's a coordinate in the collection

at line 38
CoordinatesCollection getCoordinates()

Returns a collection containing the values of all the vertices for this geometry.

If the geometry is a composite, the array will contain all the vertices for the components, in the order in which the components occur in the geometry.

Return Value

CoordinatesCollection

the vertices of this Geometry

at line 45
bool isEmpty()

Returns true if the geometry is empty.

Return Value

bool

at line 52
Bounds getBounds()

Returns the bounding box of the Geometry

Return Value

Bounds

at line 58
bool pointInPolygon(CoordinatesInterface $coordinate)

No description

Parameters

CoordinatesInterface $coordinate

Return Value

bool