I'm following the example from the official OL site for WFS, but I cannot get it to work with a different Feature Server when I add srsname=
to the query string as specified in the example:
GET http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_spielplatzbestand/?service=WFS&version=2.0.0&request=GetFeature&typenames=fis:re_spielplatzbestand&outputFormat=application/json&srsname=EPSG:3857&bbox=1451195.2005082138,6878797.486467866,1529696.0285570899,6909372.297781937,EPSG:3857
Status Code: 400 Bad Request
Response Body:
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" version="2.0.0">
<ows:Exception exceptionCode="InvalidParameterValue" locator="service">
<ows:ExceptionText>parameter SRSNAME invalid</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
Leaving srsname
out produces a response with 0 features:
GET http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_spielplatzbestand/?service=WFS&version=2.0.0&request=GetFeature&typenames=fis:re_spielplatzbestand&outputFormat=application/json&bbox=1451195.2005082138,6878797.486467866,1529696.0285570899,6909372.297781937
{
"type":"FeatureCollection",
"totalFeatures":0,
"features":[],
"crs":{"type":"name","properties":{"name":"EPSG:25833"}}
}
I also tried with srsname=EPSG:25833
and appending .EPSG:25833
for the respective bits in url: function(extent)
since it is the default projection that appears in GetCapabilities
, but got the same result.
Without the bbox
filter, the URL for GetFeatures
returns 1809 features, so it's definitely not a problem from the Feature Service. The same WFS vector layer works flawlessly in QGIS:
Also tried changing version
to 1.0.0
and 1.1.0
without success.