protected function KML::parsePoint in geoPHP 7
Same name and namespace in other branches
- 8 geoPHP/lib/adapters/KML.class.php \KML::parsePoint()
File
- geoPHP/
lib/ adapters/ KML.class.php, line 115
Class
- KML
- PHP Geometry/KML encoder/decoder
Code
protected function parsePoint($xml) {
$coordinates = $this
->_extractCoordinates($xml);
if (!empty($coordinates)) {
return new Point($coordinates[0][0], $coordinates[0][1]);
}
else {
return new Point();
}
}