Closed Zeitsperre closed 3 years ago
GeoServer might have limits on GET requests as well.
One possible solution is to use POST requests, which usually have higher size limits.
With WFS2.0.0, getfeature
has a method
parameter that you can set to "Post". https://github.com/geopython/OWSLib/blob/3338340e6a9c19dd3388240815d35d60a0d0cf4c/owslib/feature/wfs200.py#L225
Not clear however if it is really implemented.
This is a follow-up on the some of the strange behaviour I noted in #287.
Presently, WFS feature requests using FlyingPigeon, specifically
wps_subset_wfs_polygon.py
, seem to be working for the most part. The issue I'm currently dealing with now has to do with the built-in functionget_feature
fromsubset_base.py
https://github.com/bird-house/flyingpigeon/blob/56b5f4e9d4b8fa9354fe8151f58d7596762a07ea/flyingpigeon/processes/subset_base.py#L50The issue I've found is that If I send a WFS request with more than a few hundred features requested (>~220), the request fails abruptly and without much reasoning. Exception handling in Flyingpigeon is clear enough to show that my request is seen and well-parsed:
Following the stack down, I believe the error may be due to a limit set in the OWSLib WFS request parser:
https://github.com/geopython/OWSLib/blob/3338340e6a9c19dd3388240815d35d60a0d0cf4c/owslib/feature/wfs100.py#L191
My theory is that there's a limit to how long a request can be before OWSLib throws it out. Is this a possible explanation?