Format.WFST.v1: Query writer can be removed, r=tschaub (closes #2249)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -188,31 +188,6 @@ OpenLayers.Format.WFST.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
this.writeNode("Query", options, node);
|
||||
return node;
|
||||
},
|
||||
"Query": function(options) {
|
||||
options = OpenLayers.Util.extend({
|
||||
featureNS: this.featureNS,
|
||||
featurePrefix: this.featurePrefix,
|
||||
featureType: this.featureType,
|
||||
srsName: this.srsName
|
||||
}, options);
|
||||
// TODO: this is still version specific and should be separated out
|
||||
// v1.0.0 does not allow srsName on wfs:Query
|
||||
var node = this.createElementNSPlus("wfs:Query", {
|
||||
attributes: {
|
||||
typeName: (options.featureNS ? options.featurePrefix + ":" : "") +
|
||||
options.featureType,
|
||||
srsName: options.srsName
|
||||
}
|
||||
});
|
||||
if(options.featureNS) {
|
||||
node.setAttribute("xmlns:" + options.featurePrefix, options.featureNS);
|
||||
}
|
||||
if(options.filter) {
|
||||
this.setFilterProperty(options.filter);
|
||||
this.writeNode("ogc:Filter", options.filter, node);
|
||||
}
|
||||
return node;
|
||||
},
|
||||
"Transaction": function(features) {
|
||||
var node = this.createElementNSPlus("wfs:Transaction", {
|
||||
attributes: {
|
||||
|
||||
Reference in New Issue
Block a user