Polygon

Polygon data type in Postgres represented by lists of points (the vertexes of the polygon).

Polygons are very similar to closed paths, but are stored differently and have their own set of support routines.

package

Default

Methods

Polygon constructor

__construct( $polygon = null) 

Arguments

$polygon

mixed | null

getPoints

getPoints() : array

Response

array

setPoints

setPoints( $points) : $this

Arguments

$points

Point|array

Response

$this