Correctly parse GML coordinates with capital E in scientific notation

This commit is contained in:
Bart van den Eijnden
2014-09-23 15:35:12 +02:00
parent 69877de0d0
commit 2e18f077c8
2 changed files with 20 additions and 1 deletions

View File

@@ -699,7 +699,7 @@ ol.format.GML.readFlatCoordinatesFromNode_ = function(node, objectStack) {
*/
ol.format.GML.readFlatPos_ = function(node, objectStack) {
var s = ol.xml.getAllTextContent(node, false);
var re = /^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*/;
var re = /^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/;
/** @type {Array.<number>} */
var flatCoordinates = [];
var m;