1 | <?php |
||
24 | abstract class GeometryCollection extends ArrayCollection implements GeometryInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var Ellipsoid |
||
28 | */ |
||
29 | private $ellipsoid; |
||
30 | |||
31 | /** |
||
32 | * @var integer |
||
33 | */ |
||
34 | private $precision; |
||
35 | |||
36 | /** |
||
37 | * CoordinateCollection constructor. |
||
38 | * |
||
39 | * @param GeometryInterface[] $geometries |
||
40 | * @param Ellipsoid $ellipsoid |
||
41 | */ |
||
42 | 20 | public function __construct(array $geometries = array(), Ellipsoid $ellipsoid = null) |
|
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | abstract public function getGeometryType(); |
||
57 | |||
58 | /** |
||
59 | * @return integer |
||
60 | */ |
||
61 | 1 | public function getPrecision() |
|
65 | |||
66 | /** |
||
67 | * @return Coordinate |
||
68 | */ |
||
69 | 2 | public function getCoordinate() |
|
77 | |||
78 | /** |
||
79 | * @return CoordinateCollection |
||
80 | */ |
||
81 | 1 | public function getCoordinates() |
|
92 | |||
93 | /** |
||
94 | * @return boolean |
||
95 | */ |
||
96 | 2 | public function isEmpty() |
|
100 | |||
101 | /** |
||
102 | * @return BoundingBoxInterface |
||
103 | */ |
||
104 | 1 | public function getBoundingBox() |
|
115 | |||
116 | /** |
||
117 | * @param string $key |
||
118 | * |
||
119 | * @param GeometryInterface $value |
||
120 | */ |
||
121 | 3 | public function set($key, $value) |
|
126 | |||
127 | /** |
||
128 | * @param GeometryInterface $value |
||
129 | * |
||
130 | * @return bool |
||
131 | */ |
||
132 | 3 | public function add($value) |
|
139 | |||
140 | /** |
||
141 | * @return Ellipsoid |
||
142 | */ |
||
143 | 1 | public function getEllipsoid() |
|
147 | |||
148 | /** |
||
149 | * @param array GeometryInterface[] $geometries |
||
150 | */ |
||
151 | 20 | private function checkGeometriesArray(array $geometries) |
|
160 | |||
161 | /** |
||
162 | * @param GeometryInterface $geometry |
||
163 | * |
||
164 | * @throws InvalidArgumentException |
||
165 | */ |
||
166 | 17 | private function checkEllipsoid(GeometryInterface $geometry) |
|
178 | |||
179 | /** |
||
180 | * @param ArrayCollection $collection |
||
181 | * |
||
182 | * @return ArrayCollection |
||
183 | */ |
||
184 | 2 | public function merge(ArrayCollection $collection) |
|
192 | } |
||
193 |