Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #80 from dstelljes/master

Support for line breaks between KML coordinate tuples
  • Loading branch information...
commit 0aae7c3d35f3a875bf58ff8abfc5fa27c0ca1408 2 parents a89637d + 9e2b44a
@phayes authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/adapters/KML.class.php
View
2  lib/adapters/KML.class.php
@@ -169,7 +169,7 @@ protected function _extractCoordinates($xml) {
$coord_elements = $this->childElements($xml, 'coordinates');
$coordinates = array();
if (count($coord_elements)) {
- $coord_sets = explode(' ', $coord_elements[0]->nodeValue);
+ $coord_sets = explode(' ', preg_replace('/[\r\n]+/', ' ', $coord_elements[0]->nodeValue));
foreach ($coord_sets as $set_string) {
$set_string = trim($set_string);
if ($set_string) {
Please sign in to comment.
Something went wrong with that request. Please try again.