You are here

public function Collection::getPoints in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/geometry/Collection.class.php \Collection::getPoints()

Overrides Geometry::getPoints

8 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

... See full list

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;
}