Adding support for writing wfs:Query with limited property names. Patch from bartvde, tests and mods from me. r=me,ahocevar. (closes #1827)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8928 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -107,12 +107,26 @@ OpenLayers.Format.WFST.v1_1_0 = OpenLayers.Class(
|
||||
if(options.featureNS) {
|
||||
node.setAttribute("xmlns:" + options.featurePrefix, options.featureNS);
|
||||
}
|
||||
if(options.propertyNames) {
|
||||
for(var i=0,len = options.propertyNames.length; i<len; i++) {
|
||||
this.writeNode(
|
||||
"wfs:PropertyName",
|
||||
{property: options.propertyNames[i]},
|
||||
node
|
||||
);
|
||||
}
|
||||
}
|
||||
if(options.filter) {
|
||||
this.setFilterProperty(options.filter);
|
||||
this.writeNode("ogc:Filter", options.filter, node);
|
||||
}
|
||||
return node;
|
||||
}
|
||||
},
|
||||
"PropertyName": function(obj) {
|
||||
return this.createElementNSPlus("wfs:PropertyName", {
|
||||
value: obj.property
|
||||
});
|
||||
}
|
||||
}, OpenLayers.Format.WFST.v1.prototype.writers["wfs"]),
|
||||
"gml": OpenLayers.Format.GML.v3.prototype.writers["gml"],
|
||||
"feature": OpenLayers.Format.GML.v3.prototype.writers["feature"],
|
||||
|
||||
Reference in New Issue
Block a user