You are here

public function GeoRSS::read in geoPHP 8

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

Read GeoRSS string into geometry objects

Parameters

string $georss - an XML feed containing geoRSS:

Return value

Geometry|GeometryCollection

Overrides GeoAdapter::read

File

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

Class

GeoRSS
PHP Geometry/GeoRSS encoder/decoder

Code

public function read($gpx) {
  return $this
    ->geomFromText($gpx);
}