Question: We are writing a application in which a part of the job is to fetch a relatively large (>10000 features) and often updated dataset from a WFS server, store a local copy, and do geospatial analyses on it. We are stuck on the downloading part, as we hit the default 1000 features limit on the server side, which we do not control.

We see that QGIS for example can access this dataset completely, from which we can in principle manually save it in a suitable format for our application, but this is not the desirable way to go, as we want a completely automatic procedure. 

We are using OGR (ogr2ogr) and can get local copies of up to 1000 features. We wonder if there is an easy way to get the entire dataset using this approach. Hints to other approaches are also welcome.

Answer: 
If you are using Linux, you should be able to connect to a WFS server, and fetch a layer without any problem with `wget`. I was able to fetch a dataset consisting of 10209 features, which was 33.3 MB in size. My test command was the following:

```
wget -O output.gml "http://demo.opengeo.org/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=osm:admin_5678&srsname=EPSG:3857"

```

Be sure to endorse the URL in quotes, as they contain more than one parameters, and otherwise it would be interpreted by the shell incorrectly.

The `-O` flag writes the received data into a user specified file, but it has to be included before the URL.

![output](https://i.stack.imgur.com/jBDiR.png)
You could try the OGR WFS option "-dsco OGR\_WFS\_PAGING\_ALLOWED=ON" as described in the docs <http://www.gdal.org/drv_wfs.html>