Today I learned that #PyGEOS and #shapely merged in 2021 and that brought ufunc numpy capabilities to shapely.

https://shapely.readthedocs.io/en/stable/ #Python #GIS #GEOS #computationalGeometry #Python #numpy

Shapely — Shapely 2.0.1 documentation

Today's update is #Momepy and #Pysal may give unexpected results due to #PyGeos and #Shapely 2.0 compatibility.

The problem is here https://github.com/pysal/momepy/issues/472.

Based on the PR comments #473 https://github.com/pysal/momepy/pull/473, it is a Shapely 2.0 compatibility issue.

Based on guidance here https://github.com/pysal/momepy/pull/473#issuecomment-1465730704 and noting a GeoPandas discussion here https://github.com/geopandas/geopandas/issues/2691#issuecomment-1375890344 I have a workaround and the issue will be fixed.

Thanks to @martinfleis for his work on this and his timely help and advice.

TypeError when using momepy.remove_false_nodes with shapely.geometry.linestring.LineString · Issue #472 · pysal/momepy

Describe the problem The momepy.remove_false_nodes function call errors with a TypeError when called with a GeoSeries LineString created with GeoPandas 0.12.2 when using Shapely 2.0. momepy.remove_...

GitHub