How can i fix invalid geometries in a Geopandas dataframe. From:
gpdf_gml_geom_invalid = gpdf_gml_files[gpdf_gml_files.is_valid ==False]
gpdf_gml_geom_invalid.info()
I can see have invalid geoms. I have attempted using Shapely to understand what might be the source of invalid geom using
gpdf_gml_geom_invalid = gpdf_gml_geom_invalid.set_geometry('geometry')
explain_validity(gpdf_gml_geom_invalid.geometry)
Which throws the error
AttributeError: 'GeoDataFrame' object has no attribute '_geom'
Edit, adding data
4 MULTIPOLYGON (((526079.599 251118.907, 526080....
13 MULTIPOLYGON (((541228.102 252251.403, 541203....
16 MULTIPOLYGON (((546165.813 277723.432, 546164....
30 MULTIPOLYGON (((510680.266 267340.564, 510680....
37 MULTIPOLYGON (((520711.924 279690.049, 520721....
Name: geometry, dtype: geometry