Skip to content

Commit fe90caa

Browse files
committed
Add download_kadaster_percelen
1 parent 33561dd commit fe90caa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nlmod/read/administrative.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,3 +243,23 @@ def download_waterboards_gdf(**kwargs):
243243
polygons of the Netherlands
244244
"""
245245
return waterboard.download_polygons(**kwargs)
246+
247+
248+
def download_kadaster_percelen(extent):
249+
"""Download percelen (cadastral parcels) from the Dutch Kadaster.
250+
251+
Parameters
252+
----------
253+
extent : list, tuple or np.array
254+
The extent to be downloaded, consisting of 4 floats: xmin, xmax, ymin, ymax.
255+
256+
Returns
257+
-------
258+
gdf : gpd.GeoDataFrame
259+
GeoDataFrame with polygons of the parcels
260+
261+
"""
262+
url = "https://service.pdok.nl/kadaster/kadastralekaart/wfs/v5_0?service=WFS"
263+
layer = "kadastralekaartv5:perceel"
264+
gdf = webservices.wfs(url, layer, extent)
265+
return gdf

0 commit comments

Comments
 (0)