ipeaGIT / geobr

Easy access to official spatial data sets of Brazil in R and Python
https://ipeagit.github.io/geobr/
786 stars 118 forks source link

ShapelyDeprecationWarning: multi-part geometries is deprecated #271

Closed rafapereirabr closed 4 months ago

rafapereirabr commented 2 years ago

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.

JoaoCarabetta commented 2 years ago

I couldn't reproduce the warning.

My current shapely version is 1.8.0 which is the latest.

luiz-dejesus commented 2 years ago

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

shapely 1.8.0 py310h94bff20_4 conda-forge

rafapereirabr commented 4 months ago

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