Implement writeFeatures

This commit is contained in:
Bart van den Eijnden
2014-02-28 17:23:03 +01:00
parent 3e09ea4a00
commit 8dce3249d6
2 changed files with 111 additions and 3 deletions

View File

@@ -706,7 +706,7 @@ describe('ol.format.GML', function() {
describe('when parsing TOPP states GML from WFS', function() {
var features, feature;
var features, feature, text, wfsFormat;
before(function(done) {
afterLoadText('spec/ol/format/gml/topp-states-wfs.xml', function(xml) {
try {
@@ -714,7 +714,9 @@ describe('ol.format.GML', function() {
'featureNS': 'http://www.openplans.org/topp',
'featureType': 'states'
};
features = new ol.format.GML(config).readFeatures(xml);
text = xml;
wfsFormat = new ol.format.GML(config);
features = wfsFormat.readFeatures(xml);
} catch (e) {
done(e);
}