Adds srsDimension to the pos and posList nodes when writing a WFS transaction

The WFS transaction failed if the srsDimension was not present on the
geometries.
Unit tests have been changed to accomodate the srsDimension attribute.
This commit is contained in:
Joao Gouveia
2017-08-16 10:20:22 +02:00
parent 44558b7c89
commit 5fce1b0351
9 changed files with 97 additions and 62 deletions
+2 -2
View File
@@ -524,7 +524,7 @@ describe('ol.format.WFS', function() {
' <gml:Polygon xmlns:gml="http://www.opengis.net/gml">' +
' <gml:exterior>' +
' <gml:LinearRing>' +
' <gml:posList>' +
' <gml:posList srsDimension="2">' +
' 10 20 10 25 15 25 15 20 10 20' +
' </gml:posList>' +
' </gml:LinearRing>' +
@@ -561,7 +561,7 @@ describe('ol.format.WFS', function() {
' <gml:Polygon xmlns:gml="http://www.opengis.net/gml">' +
' <gml:exterior>' +
' <gml:LinearRing>' +
' <gml:posList>' +
' <gml:posList srsDimension="2">' +
' 10 20 10 25 15 25 15 20 10 20' +
' </gml:posList>' +
' </gml:LinearRing>' +