diff --git a/lib/OpenLayers/BaseTypes/Bounds.js b/lib/OpenLayers/BaseTypes/Bounds.js index 4c93029005..ebcfbfaa09 100644 --- a/lib/OpenLayers/BaseTypes/Bounds.js +++ b/lib/OpenLayers/BaseTypes/Bounds.js @@ -637,14 +637,8 @@ OpenLayers.Bounds.fromString = function(str, reverseAxisOrder) { */ OpenLayers.Bounds.fromArray = function(bbox, reverseAxisOrder) { return reverseAxisOrder === true ? - new OpenLayers.Bounds(parseFloat(bbox[1]), - parseFloat(bbox[0]), - parseFloat(bbox[3]), - parseFloat(bbox[2])) : - new OpenLayers.Bounds(parseFloat(bbox[0]), - parseFloat(bbox[1]), - parseFloat(bbox[2]), - parseFloat(bbox[3])); + new OpenLayers.Bounds(bbox[1], bbox[0], bbox[3], bbox[2]) : + new OpenLayers.Bounds(bbox[0], bbox[1], bbox[2], bbox[3]); }; /** diff --git a/lib/OpenLayers/Format/ArcXML.js b/lib/OpenLayers/Format/ArcXML.js index bd27eab284..5d2393ba06 100644 --- a/lib/OpenLayers/Format/ArcXML.js +++ b/lib/OpenLayers/Format/ArcXML.js @@ -885,7 +885,7 @@ OpenLayers.Format.ArcXML = OpenLayers.Class(OpenLayers.Format.XML, { coordArr = coordArr.split(/;/); for (var cn = 0; cn < coordArr.length; cn++) { var coordItems = coordArr[cn].split(/ /); - ringPoints.push(new OpenLayers.Geometry.Point(parseFloat(coordItems[0]), parseFloat(coordItems[1]))); + ringPoints.push(new OpenLayers.Geometry.Point(coordItems[0], coordItems[1])); } coords = null; } else { diff --git a/lib/OpenLayers/Format/Atom.js b/lib/OpenLayers/Format/Atom.js index 9dec3036c3..708f3dfff5 100644 --- a/lib/OpenLayers/Format/Atom.js +++ b/lib/OpenLayers/Format/Atom.js @@ -607,12 +607,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, { point[i].firstChild.nodeValue ).split(/\s*,\s*/); } - components.push( - new OpenLayers.Geometry.Point( - parseFloat(xy[1]), - parseFloat(xy[0]) - ) - ); + components.push(new OpenLayers.Geometry.Point(xy[1], xy[0])); } } @@ -627,10 +622,7 @@ OpenLayers.Format.Atom = OpenLayers.Class(OpenLayers.Format.XML, { ).split(/\s+/); points = []; for (var j=0, jj=coords.length; j 0) { var coords = OpenLayers.String.trim(this.concatChildValues(line[0])).split(/\s+/); var components = []; var point; for (var i=0, len=coords.length; i 3) { - point = new OpenLayers.Geometry.Point(parseFloat(coords[1]), - parseFloat(coords[0])); + point = new OpenLayers.Geometry.Point(coords[1], coords[0]); components.push(point); - point = new OpenLayers.Geometry.Point(parseFloat(coords[1]), - parseFloat(coords[2])); + point = new OpenLayers.Geometry.Point(coords[1], coords[2]); components.push(point); - point = new OpenLayers.Geometry.Point(parseFloat(coords[3]), - parseFloat(coords[2])); + point = new OpenLayers.Geometry.Point(coords[3], coords[2]); components.push(point); - point = new OpenLayers.Geometry.Point(parseFloat(coords[3]), - parseFloat(coords[0])); + point = new OpenLayers.Geometry.Point(coords[3], coords[0]); components.push(point); - point = new OpenLayers.Geometry.Point(parseFloat(coords[1]), - parseFloat(coords[0])); + point = new OpenLayers.Geometry.Point(coords[1], coords[0]); components.push(point); } geometry = new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(components)]); diff --git a/lib/OpenLayers/Format/WMC/v1.js b/lib/OpenLayers/Format/WMC/v1.js index da72668411..4238385200 100644 --- a/lib/OpenLayers/Format/WMC/v1.js +++ b/lib/OpenLayers/Format/WMC/v1.js @@ -147,10 +147,8 @@ OpenLayers.Format.WMC.v1 = OpenLayers.Class(OpenLayers.Format.XML, { read_wmc_BoundingBox: function(context, node) { context.projection = node.getAttribute("SRS"); context.bounds = new OpenLayers.Bounds( - parseFloat(node.getAttribute("minx")), - parseFloat(node.getAttribute("miny")), - parseFloat(node.getAttribute("maxx")), - parseFloat(node.getAttribute("maxy")) + node.getAttribute("minx"), node.getAttribute("miny"), + node.getAttribute("maxx"), node.getAttribute("maxy") ); },