Deal with srsDimension

This commit is contained in:
Bart van den Eijnden
2014-02-20 14:57:03 +01:00
parent 877d5a445e
commit 95bbb849bb
2 changed files with 23 additions and 3 deletions

View File

@@ -38,6 +38,21 @@ describe('ol.format.GML', function() {
});
describe('linestring 3D', function() {
it('can read a linestring 3D geometry', function() {
var text =
'<gml:LineString xmlns:gml="http://www.opengis.net/gml" ' +
' srsName="foo" srsDimension="3">' +
' <gml:posList>1 2 3 4 5 6</gml:posList>' +
'</gml:LineString>';
var g = format.readGeometry(text);
expect(g).to.be.an(ol.geom.LineString);
expect(g.getCoordinates()).to.eql([[1, 2, 3], [4, 5, 6]]);
});
});
describe('polygon', function() {
it('can read a polygon geometry', function() {