I have a map on QGIS that looks like this:
I would like to clean the weird-looking polygons (inside a red circle for example) and keep the normal-looking ones. My initial approach was to compute the area of all polygons and deleted by size (i.e. deleting large polygons)
#convert to MERCHICH NORD and compute area in km2
gpd= gpd.to_crs({'init': 'epsg:26191'})
gpd["area_km2"] = gpd['geometry'].area/ 10**6
But deleting large polygons (by size) is misleading because some large polygons are valid. Then I tried to look for a different approach and compute by shape
type by using a function similar to geopandas.GeoSeries.geom_type
but this function only outputs: centroid, polygon or linestring
.
My question is: how can we delete weird looking polygons like the one circled in red and only keep the normal ones (polygons related to buildings or residential area)?