From 6052d19c2fd26fde8bde466d67571684fc1e24fc Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 14 Jun 2012 15:26:13 +0200 Subject: [PATCH] Note about mysterious "dimension" attribute. --- lib/OpenLayers/Format/GML/v3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/GML/v3.js b/lib/OpenLayers/Format/GML/v3.js index dfaecc3b1d..29e780da32 100644 --- a/lib/OpenLayers/Format/GML/v3.js +++ b/lib/OpenLayers/Format/GML/v3.js @@ -144,8 +144,10 @@ OpenLayers.Format.GML.v3 = OpenLayers.Class(OpenLayers.Format.GML.Base, { this.regExes.trimSpace, "" ); var coords = str.split(this.regExes.splitSpace); + // The "dimension" attribute is not part of the spec, it is + // only used in an example (OGC 03-105r1, page 235). var dim = obj.srsDimension || - parseInt(node.getAttribute("dimension") || node.getAttribute("srsDimension"), 10) || 2; + parseInt(node.getAttribute("srsDimension") || node.getAttribute("dimension"), 10) || 2; var j, x, y, z; var numPoints = coords.length / dim; var points = new Array(numPoints);