You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CRS mismatch when clipping WDPA polygons if shapes are not in 4326 #19
Assume an input shapes file is in EPSG:3035 (common for Europe).
Running: snakemake -c 2 resources/area_potentials/results/national/area_potential_wind_onshore.tif
fails in clip_and_rasterise_polys.py with:
Protected areas: 307019
Protected areas after applying total_bounds: 0
rioxarray.exceptions.NoDataInBounds: No data found in bounds.
The cause is that there is no reprojection to the target raster / polygons beforehand.
Steps to reproduce
Steps to reproduce the behavior:
Use any input shape file not in 4326
Expected behavior
Reproject geometries to the shapes/reference-raster CRS first before clipping.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Activity
sjpfenninger commentedon Sep 8, 2026
Addressed in #18