the WFS 1.0 standard does not support specifying the SRS name (srsName) in GetFeature requests, but GeoServer has specific support for this, this patch introduces a boolean option (add srsNameInQuery) to force the addition of srsName, initial patch from fvanderbiest, r=bartvde (closes #2228)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9838 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2009-11-23 15:56:56 +00:00
parent d9a982f169
commit 9e81d4d332
2 changed files with 24 additions and 1 deletions
+11
View File
@@ -41,6 +41,13 @@
value: new OpenLayers.Bounds (1,2,3,4)
})
}
}, {
id: "query1",
writer: "wfs:Query",
arg: {
srsNameInQuery: true,
srsName: "EPSG:900913"
}
}, {
id: "getfeature0",
writer: "wfs:GetFeature",
@@ -94,6 +101,10 @@
</ogc:Filter>
</wfs:Query>
--></div>
<div id="query1"><!--
<wfs:Query xmlns:wfs="http://www.opengis.net/wfs" typeName="topp:states" srsName="EPSG:900913" xmlns:topp="http://www.openplans.org/topp">
</wfs:Query>
--></div>
<div id="getfeature0"><!--
<wfs:GetFeature service="WFS" version="1.0.0" xmlns:topp="http://www.openplans.org/topp"
xmlns:wfs="http://www.opengis.net/wfs"