osmnx icon indicating copy to clipboard operation
osmnx copied to clipboard

Replace deprecated GeoPandas unary_union with union_all()

Open EwoutH opened this issue 1 month ago • 4 comments

Replace the deprecated GeoPandas .unary_union attribute with the .union_all() method, as recommended in https://github.com/geopandas/geopandas/pull/3007.

Closes #1178 and should help make OSMnx be compatible with GeoPandas 1.0.0.

Furthermore, note that unary_union is also imported from shapely.ops somewhere:

https://github.com/gboeing/osmnx/blob/a99fc4d7dd9ee13b256347af7cdcb58d214e8915/osmnx/features.py#L32

This PR doesn't adres that, but maybe we should?

EwoutH avatar May 30 '24 11:05 EwoutH