public function Collection::getPoints in geoPHP 8
Same name and namespace in other branches
- 7 geoPHP/lib/geometry/Collection.class.php \Collection::getPoints()
Overrides Geometry::getPoints
6 calls to Collection::getPoints()
- Collection::equals in geoPHP/
lib/ geometry/ Collection.class.php - LineString::explode in geoPHP/
lib/ geometry/ LineString.class.php - LineString::greatCircleLength in geoPHP/
lib/ geometry/ LineString.class.php - LineString::haversineLength in geoPHP/
lib/ geometry/ LineString.class.php - LineString::length in geoPHP/
lib/ geometry/ LineString.class.php
File
- geoPHP/
lib/ geometry/ Collection.class.php, line 213
Class
- Collection
- Collection: Abstract class for compound geometries
Code
public function getPoints() {
$points = array();
foreach ($this->components as $component) {
$points = array_merge($points, $component
->getPoints());
}
return $points;
}