Lines Matching refs:GPX
25 * PHP Geometry/GPX encoder/decoder
27 class GPX implements GeoAdapter
47 * Read GPX string into geometry object
49 * @param string $gpx A GPX string
50 * @param array|null $allowedElements Which elements can be read from each GPX type
51 * If not specified, every element defined in the GPX specification can be read
55 * @throws \Exception If GPX is not a valid XML
68 throw new \Exception("Invalid GPX: " . $gpx);
76 $this->xpath->registerNamespace('gpx', 'http://www.topografix.com/GPX/1/1');
100 throw new \Exception("Cannot Read Geometry From GPX: " . $gpx);
107 * Parses the GPX XML and returns a geometry
109 * @return GeometryCollection|Geometry Returns the geometry representation of the GPX (@see geoPHP::buildGeometry)
289 // As of the GPX specification text node cannot have attributes, thus this never happens
307 * Serialize geometries into a GPX string.
311 * @param array|null $allowedElements Which elements can be added to each GPX type
312 * If not specified, every element defined in the GPX specification can be added
315 * @return string The GPX string representation of the input geometries
328 xmlns="http://www.topografix.com/GPX/1/1"
329 xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" >
387 * Writes a LineString or MultiLineString to the GPX