hydromt
hydromt copied to clipboard
test with new shapely v2 instead of pygeos
With geopandas v0.12, the new shapely v2 is supported and pygeos can be removed. I suggest to create different test environments, one with shapely v1.x and pygeos and one with geopandas>=v0.12 and shapely>-2
see geopandas changelog, shapely migration docs and shapely changlog
This now created an AttributeError in our tests, so moving to priority to see the consequences
I fixed the test by testing an error exception on a non-empty geodataframe.
There is a lot places in the code where we test on if gdf.crs is not None. These may be prone to error in case of empty or not properly defined GeoDataFrames.