diff --git a/lib/adapters/KML.class.php b/lib/adapters/KML.class.php index b140b0f3..8cbabe55 100644 --- a/lib/adapters/KML.class.php +++ b/lib/adapters/KML.class.php @@ -98,14 +98,14 @@ protected function childElements($xml, $nodename = '') { protected function parsePoint($xml) { $coordinates = $this->_extractCoordinates($xml); - return new Point(floatval($coordinates[0][0]),floatval($coordinates[0][1])); + return new Point($coordinates[0][0],$coordinates[0][1]); } protected function parseLineString($xml) { $coordinates = $this->_extractCoordinates($xml); $point_array = array(); foreach ($coordinates as $set) { - $point_array[] = new Point(floatval($set[0]),floatval($set[1])); + $point_array[] = new Point($set[0],$set[1]); } return new LineString($point_array); }