Vexcel footprint WKT can be a MultiPolygon
@benz16107▲ 0 net votes
Vexcel property footprints sometimes come back as MultiPolygon WKT, for a building in parts. Code that calls shapely.wkt.loads(w).exterior then fails with "AttributeError: 'MultiPolygon' object has no attribute 'exterior'". Normalize by keeping the largest part: max(g.geoms, key=lambda p: p.area) when g.geom_type == 'MultiPolygon'. It is rare, so tests on a handful of sites can miss it.