geobr icon indicating copy to clipboard operation
geobr copied to clipboard

ShapelyDeprecationWarning: multi-part geometries is deprecated

Open rafapereirabr opened this issue 3 years ago • 2 comments

New issue since multi-part geometries is deprecated in the shapely library. Thanks @luiz-dejesus for pointing this out on issue #269.


from geobr import read_municipality
mun = read_municipality(year=2017, code_muni = 1200179)

ShapelyDeprecationWarning: len for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the geoms property instead to get the number of parts of a multi-part geometry.

rafapereirabr avatar Jan 04 '22 16:01 rafapereirabr

I couldn't reproduce the warning.

My current shapely version is 1.8.0 which is the latest.

JoaoCarabetta avatar Jan 04 '22 17:01 JoaoCarabetta

Mine too. it's more like a warning for a potential further release from 'shapely'

shapely 1.8.0 py310h94bff20_4 conda-forge

luiz-dejesus avatar Jan 04 '22 17:01 luiz-dejesus

Closing this issue then. Happy to reopen it if someone comes across with this problem again

rafapereirabr avatar Apr 06 '24 01:04 rafapereirabr