Permalink
Browse files

Merge pull request #80 from dstelljes/master

Support for line breaks between KML coordinate tuples
  • Loading branch information...
phayes committed Jul 16, 2013
2 parents a89637d + 9e2b44a commit 0aae7c3d35f3a875bf58ff8abfc5fa27c0ca1408
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) {

0 comments on commit 0aae7c3

Please sign in to comment.