I am looking for a method using python to remove a large amount of overlapping polygons from one collection. These polygons are grouped together based on imagery collection and have been stored as WKB in a database. I am able to pull the WKBs out per collection. My current approach is to create a list of geometries and iterate using shapely.intersects per polygon to an empty list. If polygon in listA does not intersect with polygon in listB the polygon in listA is appended to listB and removed from listA. My thinking is as this iterates I will be able to move polygons with no overlaps to one list and keep the overlapping polygons in another. When I run this code I get the error: "AttributeError 'list' object has no attribute '_geom'".
polygon_list_A = [<shapely.geometry.polygon.Polygon object at 0x000005B3A>, <shapely.geometry.polygon.Polygon object at 0x000006E7A>, ...] polygon_list_B =  for polygon_A in polygon_list_A: if polygon_A.intersects(polygon_list_B) == True: polygon_list_B.append(polygon_A) polygon_list_A.remove(polygon_A) else: pass