pyrosm icon indicating copy to clipboard operation
pyrosm copied to clipboard

ShapelyDeprecationWarning in OSM.get_pois()

Open EwoutH opened this issue 2 years ago • 1 comments

Using the OSM.get_pois() function in Pyrosm 0.6.1 I got the following warning:

pyrosm\pyrosm.py:576: ShapelyDeprecationWarning: The array interface is deprecated and will no longer work in Shapely 2.0. Convert the '.coords' to a numpy array instead.

It looks like pyrosm.py#L576 needs to be updated to account for https://github.com/Toblerity/Shapely/pull/955.

EwoutH avatar Oct 28 '21 10:10 EwoutH

@EwoutH Thanks! Yes, the new Shapely 1.8 was just released, so need to update pyrosm accordingly in the next release. 👍🏻

HTenkanen avatar Oct 28 '21 13:10 HTenkanen