holoviz / spatialpandas

Pandas extension arrays for spatial/geometric operations
BSD 2-Clause "Simplified" License
305 stars 24 forks source link

Don't use dtype=object when converting arrays to pass to shapely 2 #103

Closed ianthomas23 closed 1 year ago

ianthomas23 commented 1 year ago

Potential fix for #102. The code change is to avoid using numpy arrays with dtype=object as shapely 2.0 quite rightly is not expecting this.

ianthomas23 commented 1 year ago

Forcing shapely >= 2.0 in CI works for Python 3.8+ on all 3 platforms. It fails for Python 3.7 as there are no conda-forge packages for shapely 2.0 for Python 3.7.

Reverting the shapely pin so that this is ready for merging.