Closed philipc2 closed 10 months ago
After the Pandas 2.1.0 release, construction of GeoDataFrames runs into a RecursionError
GeoDataFrames
RecursionError
from spatialpandas import GeoDataFrame from spatialpandas.geometry import PolygonArray # Square from (0, 0) to (1, 1) in CCW order outline0 = [0, 0, 1, 0, 1, 1, 0, 1, 0, 0] # Square from (2, 2) to (5, 5) in CCW order outline1 = [2, 2, 5, 2, 5, 5, 2, 5, 2, 2] # Triangle hole in CW order hole1 = [3, 3, 4, 3, 3, 4, 3, 3] polygon_array = PolygonArray([ [outline0], [outline1, hole1] ]) GeoDataFrame({"geometry": polygon_array})
Description of expected behavior and the observed behavior
After the Pandas 2.1.0 release, construction of
GeoDataFrames
runs into aRecursionError
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output