import geopandas as gpd from pyproj import CRS
I'm working with a lot of shapefiles.
- I've checked their geometry to be valid
- I have updated to
geopandas 0.81 shapely 1.7.0 python 3.6.10
- I have reprojected my coordinated systems to projected one
Still, everytime I check the file for a simple
geo.head() query, I get the warning from
geopandas which is great, but has very scarce documentation...
UserWarning: Only Polygon objects have interior rings. For other geometry types, None is returned. "Only Polygon objects have interior rings. For other "
I have searched around quite a lot. Found this #issue here https://github.com/geopandas/geopandas/issues/1331 which is closed and did not help.
In the end, what I think is wrong is that there is at least one
interior.ringinside my shape which is not an empty list.
How can I set a specific interiors line to
And in order to set it automatically, I would also need a test that returns which observations have interior rings.
I'm using PyCharm 2020.2
EDIT You can find the data here: https://github.com/BAFurtado/firms_growth_by_APs/ Download all 5 example.* files (shapefile format)