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)]);