add ability to write out a WFS Transaction without a geometry, r=tschaub (closes #2033)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2010-02-09 06:26:06 +00:00
parent 07437865db
commit 1b3af5d26d
2 changed files with 42 additions and 3 deletions

View File

@@ -226,9 +226,11 @@ OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
}
// add in geometry
this.writeNode(
"Property", {name: this.geometryName, value: feature}, node
);
if (this.geometryName !== null) {
this.writeNode(
"Property", {name: this.geometryName, value: feature}, node
);
}
// add in attributes
for(var key in feature.attributes) {