protected function KML::parseLineString in geoPHP 8
Same name and namespace in other branches
- 7 geoPHP/lib/adapters/KML.class.php \KML::parseLineString()
1 call to KML::parseLineString()
- KML::parsePolygon in geoPHP/
lib/ adapters/ KML.class.php
File
- geoPHP/
lib/ adapters/ KML.class.php, line 121
Class
- KML
- PHP Geometry/KML encoder/decoder
Code
protected function parseLineString($xml) {
$coordinates = $this
->_extractCoordinates($xml);
$point_array = array();
foreach ($coordinates as $set) {
$point_array[] = new Point($set[0], $set[1]);
}
return new LineString($point_array);
}