class GEOSGeometry (View source)

Class GEOSGeometry

Methods

__construct()

GEOSGeometry constructor.

string
__toString()

No description

project(GEOSGeometry $geom)

No description

interpolate(float $distance, bool $normalized = false)

No description

buffer(float $distance, array $styleArray = ['quad_segs' => 8, 'endcap' => GEOSBUF_CAP_ROUND, 'join' => GEOSBUF_JOIN_ROUND, 'mitre_limit' => 5.0, 'single_sided' => false])

No description

offsetCurve(float $distance, array $styleArray = ['quad_segs' => 8, 'join' => GEOSBUF_JOIN_ROUND, 'mitre_limit' => 5.0])

No description

envelope()

No description

intersection(GEOSGeometry $geom)

No description

convexHull()

No description

difference(GEOSGeometry $geom)

No description

symDifference(GEOSGeometry $geom)

No description

boundary()

No description

union(GEOSGeometry $geom = null)

No description

pointOnSurface()

No description

centroid()

No description

bool|string
relate(GEOSGeometry $geom, string $pattern = null)

No description

string
relateBoundaryNodeRule(GEOSGeometry $geom, int $rule = GEOSRELATE_BNR_OGC)

No description

simplify(float $tolerance, bool $preserveTopology = false)

No description

normalize()

No description

setPrecision(float $gridSize, int $flags = 0)

No description

float
getPrecision()

No description

bool
disjoint(GEOSGeometry $geom)

No description

bool
touches(GEOSGeometry $geom)

No description

bool
intersects(GEOSGeometry $geom)

No description

bool
crosses(GEOSGeometry $geom)

No description

bool
within(GEOSGeometry $geom)

No description

bool
contains(GEOSGeometry $geom)

No description

bool
overlaps(GEOSGeometry $geom)

No description

bool
covers(GEOSGeometry $geom)

No description

bool
coveredBy(GEOSGeometry $geom)

No description

bool
equals(GEOSGeometry $geom)

No description

bool
equalsExact(GEOSGeometry $geom, float $tolerance = 0)

No description

bool
isEmpty()

No description

array
checkValidity()

No description

bool
isSimple()

No description

bool
isRing()

No description

bool
hasZ()

No description

bool
isClosed()

No description

string
typeName()

No description

int
typeId()

No description

int
getSRID()

No description

void
setSRID(int $srid)

No description

int
numGeometries()

No description

geometryN(int $n)

No description

int
numInteriorRings()

No description

int
numPoints()

No description

float
getX()

No description

float
getY()

No description

interiorRingN(int $n)

No description

exteriorRing()

No description

int
numCoordinates()

No description

int
dimension()

No description

int
coordinateDimension()

No description

pointN(int $n)

No description

startPoint()

No description

endPoint()

No description

float
area()

No description

float
length()

No description

float
distance(GEOSGeometry $geom)

No description

float
hausdorffDistance(GEOSGeometry $geom)

No description

snapTo(GEOSGeometry $geom, float $tolerance)

No description

node()

No description

delaunayTriangulation(float $tolerance = 0.0, bool $onlyEdges = false)

No description

voronoiDiagram(float $tolerance = 0.0, bool $onlyEdges = false, GEOSGeometry $extent = null)

No description

clipByRect(float $xmin, float $ymin, float $xmax, float $ymax)

No description

Details

__construct()

GEOSGeometry constructor.

string __toString()

No description

Return Value

string

Exceptions

Exception

GEOSGeometry project(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry interpolate(float $distance, bool $normalized = false)

No description

Parameters

float $distance
bool $normalized

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry buffer(float $distance, array $styleArray = ['quad_segs' => 8, 'endcap' => GEOSBUF_CAP_ROUND, 'join' => GEOSBUF_JOIN_ROUND, 'mitre_limit' => 5.0, 'single_sided' => false])

No description

Parameters

float $distance
array $styleArray

Keys supported: 'quad_segs' Type: int Number of segments used to approximate a quarter circle (defaults to 8). 'endcap' Type: long Endcap style (defaults to GEOSBUF_CAP_ROUND) 'join' Type: long Join style (defaults to GEOSBUF_JOIN_ROUND) 'mitre_limit' Type: double mitre ratio limit (only affects joins with GEOSBUF_JOIN_MITRE style) 'miter_limit' is also accepted as a synonym for 'mitre_limit'. 'single_sided' Type: bool If true buffer lines only on one side, so that the input line will be a portion of the boundary of the returned polygon. Only applies to lineal input. Defaults to false.

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry offsetCurve(float $distance, array $styleArray = ['quad_segs' => 8, 'join' => GEOSBUF_JOIN_ROUND, 'mitre_limit' => 5.0])

No description

Parameters

float $distance
array $styleArray

Keys supported: 'quad_segs' Type: int Number of segments used to approximate a quarter circle (defaults to 8). 'join' Type: long Join style (defaults to GEOSBUF_JOIN_ROUND) 'mitre_limit' Type: double mitre ratio limit (only affects joins with GEOSBUF_JOIN_MITRE style) 'miter_limit' is also accepted as a synonym for 'mitre_limit'.

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry envelope()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry intersection(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry convexHull()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry difference(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry symDifference(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry boundary()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry union(GEOSGeometry $geom = null)

No description

Parameters

GEOSGeometry $geom

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry pointOnSurface()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry centroid()

No description

Return Value

GEOSGeometry

Exceptions

Exception

bool|string relate(GEOSGeometry $geom, string $pattern = null)

No description

Parameters

GEOSGeometry $geom
string $pattern

Return Value

bool|string

Exceptions

Exception

string relateBoundaryNodeRule(GEOSGeometry $geom, int $rule = GEOSRELATE_BNR_OGC)

No description

Parameters

GEOSGeometry $geom
int $rule

Return Value

string

Exceptions

Exception

GEOSGeometry simplify(float $tolerance, bool $preserveTopology = false)

No description

Parameters

float $tolerance
bool $preserveTopology

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry normalize()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry setPrecision(float $gridSize, int $flags = 0)

No description

Parameters

float $gridSize
int $flags

Return Value

GEOSGeometry

Exceptions

Exception

float getPrecision()

No description

Return Value

float

GEOSGeometry extractUniquePoints()

No description

Return Value

GEOSGeometry

Exceptions

Exception

bool disjoint(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool touches(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool intersects(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool crosses(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool within(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool contains(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool overlaps(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool covers(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool coveredBy(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool equals(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

bool

Exceptions

Exception

bool equalsExact(GEOSGeometry $geom, float $tolerance = 0)

No description

Parameters

GEOSGeometry $geom
float $tolerance

Return Value

bool

Exceptions

Exception

bool isEmpty()

No description

Return Value

bool

Exceptions

Exception

array checkValidity()

No description

Return Value

array

Exceptions

Exception

bool isSimple()

No description

Return Value

bool

Exceptions

Exception

bool isRing()

No description

Return Value

bool

Exceptions

Exception

bool hasZ()

No description

Return Value

bool

Exceptions

Exception

bool isClosed()

No description

Return Value

bool

Exceptions

Exception

string typeName()

No description

Return Value

string

Exceptions

Exception

int typeId()

No description

Return Value

int

Exceptions

Exception

int getSRID()

No description

Return Value

int

void setSRID(int $srid)

No description

Parameters

int $srid

Return Value

void

Exceptions

Exception

int numGeometries()

No description

Return Value

int

Exceptions

Exception

GEOSGeometry geometryN(int $n)

No description

Parameters

int $n

Return Value

GEOSGeometry

Exceptions

Exception

int numInteriorRings()

No description

Return Value

int

Exceptions

Exception

int numPoints()

No description

Return Value

int

Exceptions

Exception

float getX()

No description

Return Value

float

Exceptions

Exception

float getY()

No description

Return Value

float

Exceptions

Exception

GEOSGeometry interiorRingN(int $n)

No description

Parameters

int $n

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry exteriorRing()

No description

Return Value

GEOSGeometry

Exceptions

Exception

int numCoordinates()

No description

Return Value

int

Exceptions

Exception

int dimension()

No description

Return Value

int

Exceptions

Exception

int coordinateDimension()

No description

Return Value

int

Exceptions

Exception

GEOSGeometry pointN(int $n)

No description

Parameters

int $n

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry startPoint()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry endPoint()

No description

Return Value

GEOSGeometry

Exceptions

Exception

float area()

No description

Return Value

float

Exceptions

Exception

float length()

No description

Return Value

float

Exceptions

Exception

float distance(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

float

Exceptions

Exception

float hausdorffDistance(GEOSGeometry $geom)

No description

Parameters

GEOSGeometry $geom

Return Value

float

Exceptions

Exception

GEOSGeometry snapTo(GEOSGeometry $geom, float $tolerance)

No description

Parameters

GEOSGeometry $geom
float $tolerance

Return Value

GEOSGeometry

GEOSGeometry node()

No description

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry delaunayTriangulation(float $tolerance = 0.0, bool $onlyEdges = false)

No description

Parameters

float $tolerance

Snapping tolerance to use for improved robustness

bool $onlyEdges

if true, will return a MULTILINESTRING, otherwise (the default) it will return a GEOMETRYCOLLECTION containing triangular POLYGONs.

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry voronoiDiagram(float $tolerance = 0.0, bool $onlyEdges = false, GEOSGeometry $extent = null)

No description

Parameters

float $tolerance

Snapping tolerance to use for improved robustness

bool $onlyEdges

If true will return a MULTILINESTRING, otherwise (the default) it will return a GEOMETRYCOLLECTION containing POLYGONs.

GEOSGeometry $extent

Clip returned diagram by the extent of the given geometry

Return Value

GEOSGeometry

Exceptions

Exception

GEOSGeometry clipByRect(float $xmin, float $ymin, float $xmax, float $ymax)

No description

Parameters

float $xmin
float $ymin
float $xmax
float $ymax

Return Value

GEOSGeometry

Exceptions

Exception