xarray-contrib / xvec

Vector data cubes for Xarray
https://xvec.readthedocs.io
MIT License
101 stars 9 forks source link

BUG: export to a wide GeoDataFrame may fail assigning an active geometry #41

Open martinfleis opened 1 year ago

martinfleis commented 1 year ago

There are some issues with creation of a wide GeoDataFrame with a MultiIndex. Both are coming from GeoPandas and one is being if fixed in https://github.com/geopandas/geopandas/pull/2088 while the other is reported at https://github.com/geopandas/geopandas/issues/2806.

Depending on the resolution of the latter, we may need to apply a patch on our side passing an indexer like set_geometry(("geometry", "", "")) instead of a simple set_geometry("geometry"). But we still need a release of GeoPandas (coming soon!) with the fix of the former, so it may be all resolved there.