You are here

public function GPX::read in geoPHP 8

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

Read GPX string into geometry objects

Parameters

string $gpx A GPX string:

Return value

Geometry|GeometryCollection

Overrides GeoAdapter::read

File

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

Class

GPX
PHP Geometry/GPX encoder/decoder

Code

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