From 7e0da7a805324d28ce1f647ff28d2fea3209ba2f Mon Sep 17 00:00:00 2001 From: Patrick Hayes Date: Tue, 12 Apr 2011 18:55:07 -0700 Subject: [PATCH] KML no longer needs to cast to floatval --- lib/adapters/KML.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }