GeometryCollection
in package
Liste d'objets géométriques de ka classe Geometry
Table of Contents
Constants
- ErrorCenterOfEmpty = 'GeometryCollection::ErrorCenterOfEmpty'
- ErrorPosOfEmpty = 'GeometryCollection::ErrorPosOfEmpty'
Properties
- $geometries : array<int, Geometry>
Methods
- __construct() : mixed
- prend en paramètre une liste d'objets Geometry
- __toString() : string
- aPos() : TPos
- asArray() : }">TGJSimpleGeometry>}
- center() : TPos
- decompose() : array<int, Point|LineString|Polygon>
- Décompose une géométrie en un array de géométries élémentaires (Point/LineString/Polygon)
- distanceToPos() : float
- ebox() : EBox
- eltTypes() : array<int, string>
- retourne la liste des types élémentaires ('Point','LineString','Polygon') contenus dans la géométrie
- gbox() : GBox
- nbreOfPos() : int
- reproject() : GeometryCollection
Constants
ErrorCenterOfEmpty
public
mixed
ErrorCenterOfEmpty
= 'GeometryCollection::ErrorCenterOfEmpty'
ErrorPosOfEmpty
public
mixed
ErrorPosOfEmpty
= 'GeometryCollection::ErrorPosOfEmpty'
Properties
$geometries read-only
public
array<int, Geometry>
$geometries
Methods
__construct()
prend en paramètre une liste d'objets Geometry
public
__construct(array<int, Geometry> $geometries) : mixed
Parameters
- $geometries : array<int, Geometry>
__toString()
public
__toString() : string
Return values
stringaPos()
public
aPos() : TPos
Return values
TPosasArray()
public
asArray() : }">TGJSimpleGeometry>}
Return values
}">TGJSimpleGeometry>}center()
public
center() : TPos
Return values
TPosdecompose()
Décompose une géométrie en un array de géométries élémentaires (Point/LineString/Polygon)
public
decompose() : array<int, Point|LineString|Polygon>
Return values
array<int, Point|LineString|Polygon>distanceToPos()
public
distanceToPos(TPos $pos) : float
Parameters
- $pos : TPos
Return values
floatebox()
public
ebox() : EBox
Return values
EBoxeltTypes()
retourne la liste des types élémentaires ('Point','LineString','Polygon') contenus dans la géométrie
public
eltTypes() : array<int, string>
Return values
array<int, string>gbox()
public
gbox() : GBox
Return values
GBoxnbreOfPos()
public
nbreOfPos() : int
Return values
intreproject()
public
reproject(callable $reprojPos) : GeometryCollection
Parameters
- $reprojPos : callable