Skip to content

Commit 80b6907

Browse files
committed
add format check and pagination docs
1 parent ad92fb0 commit 80b6907

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/source/usage.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,19 @@ Download GML using ``typename``, ``bbox`` and ``srsname``.
113113
>>> str(response.read())
114114
'b\'<?xml version="1.0" encoding="UTF-8"?><dijken:dijklijnenkaart_rce...\''
115115
116-
Download in other formats (if supported by server).
116+
Download in other formats (if supported by server) and pagination.
117117

118118
.. code-block:: python
119119
120+
>>> # Check which output formats are available for GetFeature
121+
>>> [o.parameters['outputFormat']['values'] for o in wfs20.operations if o.name=='GetFeature']
122+
[['application/gml+xml; version=3.2', 'DXF', 'DXF-ZIP', 'GML2', 'KML', 'SHAPE-ZIP', 'application/json', 'application/vnd.google-earth.kml xml',
123+
'application/vnd.google-earth.kml+xml', 'csv', 'gml3', 'gml32', 'json', 'text/csv', 'text/xml; subtype=gml/2.1.2', 'text/xml; subtype=gml/3.1.1', 'text/xml; subtype=gml/3.2']]
120124
>>> response = wfs20.getfeature(typename='dijken:dijklijnenkaart_rce', bbox=(173700,440400,178700,441400), srsname='EPSG:28992', outputFormat='application/json')
121125
>>> response.read()
122126
b'{"type":"FeatureCollection","features":...'
127+
>>> response = wfs20.getfeature(typename='dijken:dijklijnenkaart_rce', srsname='EPSG:4326', maxfeatures=20, startindex=1)
128+
'b\'<?xml version="1.0" encoding="UTF-8"?><dijken:dijklijnenkaart_rce...\''
123129
124130
Return a FeatureType's schema via ``DescribeFeatureType``. The dictionary returned is
125131
compatible with a `Fiona schema object <https://fiona.readthedocs.io/en/latest/fiona.html#fiona.collection.Collection.schema>`_.

0 commit comments

Comments
 (0)