protected function GPX::geomFromXML in geoPHP 8
Same name and namespace in other branches
- 7 geoPHP/lib/adapters/GPX.class.php \GPX::geomFromXML()
1 call to GPX::geomFromXML()
- GPX::geomFromText in geoPHP/
lib/ adapters/ GPX.class.php
File
- geoPHP/
lib/ adapters/ GPX.class.php, line 69
Class
- GPX
- PHP Geometry/GPX encoder/decoder
Code
protected function geomFromXML() {
$geometries = array();
$geometries = array_merge($geometries, $this
->parseWaypoints());
$geometries = array_merge($geometries, $this
->parseTracks());
$geometries = array_merge($geometries, $this
->parseRoutes());
if (empty($geometries)) {
throw new Exception("Invalid / Empty GPX");
}
return geoPHP::geometryReduce($geometries);
}