You are here

protected function GeoRSS::parsePoints in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/lib/adapters/GeoRSS.class.php \GeoRSS::parsePoints()
1 call to GeoRSS::parsePoints()
GeoRSS::geomFromXML in geoPHP/lib/adapters/GeoRSS.class.php

File

geoPHP/lib/adapters/GeoRSS.class.php, line 100

Class

GeoRSS
PHP Geometry/GeoRSS encoder/decoder

Code

protected function parsePoints() {
  $points = array();
  $pt_elements = $this->xmlobj
    ->getElementsByTagName('point');
  foreach ($pt_elements as $pt) {
    $point_array = $this
      ->getPointsFromCoords(trim($pt->firstChild->nodeValue));
    $points[] = $point_array[0];
  }
  return $points;
}