0

I need to download features from this WFS but there are too many features for the server to handle my request. So I thought I should filter my request using the XML Filter Expression Editor. However I cannot find any information on how to write such an expression into the editor.

I only need features with the attribute "FBL" having the value '8' (it is a string and not a numerical field).

1 Answer 1

0
https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_Fahrbahnmarkierung_Linie?service=WFS&request=GetFeature&typenames=fis:s_Fahrbahnmarkierung_Linie&version=2.0.0&Filter=<Filter><PropertyIsEqualTo><PropertyName>FBL</PropertyName><Literal>8</Literal></PropertyIsEqualTo></Filter>&resultType=hits&

Tells us the query will give 41381 results, so you'll probably need to add some paging, like:

https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_Fahrbahnmarkierung_Linie?service=WFS&request=GetFeature&typenames=fis:s_Fahrbahnmarkierung_Linie&version=2.0.0&Filter=<Filter><PropertyIsEqualTo><PropertyName>FBL</PropertyName>%20%20<Literal>8</Literal></PropertyIsEqualTo></Filter>&startindex=0&count=5&

then

https://fbinter.stadt-berlin.de/fb/wfs/data/senstadt/s_Fahrbahnmarkierung_Linie?service=WFS&request=GetFeature&typenames=fis:s_Fahrbahnmarkierung_Linie&version=2.0.0&Filter=<Filter><PropertyIsEqualTo><PropertyName>FBL</PropertyName>%20%20<Literal>8</Literal></PropertyIsEqualTo></Filter>&startindex=6&count=5&

etc.

You'll need to work out how many results you can fetch at a time

3
  • thanks @nmtoken! I can fetch 50000 features but I have no idea how to use it with the ArcGIS interoperability tool and its inbuild XML Filter expression feature. Pasting in your URL code does not work but I didnt expect that. I am not a coder
    – jpg
    Jul 22, 2019 at 7:02
  • 1
    @jpg Did you paste just the filter from the request <Filter><PropertyIsEqualTo><PropertyName>FBL</PropertyName><Literal>8</Literal></PropertyIsEqualTo></Filter>
    – nmtoken
    Jul 22, 2019 at 10:34
  • I did it withouth <filter> because I thought this should come automatically in a feature called "filter expression". But there is no way to see the actual query sent by the inteoperability tool. Anyway, it worked with the code you posted in your above comment. Thx a lot!
    – jpg
    Jul 22, 2019 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.