GIS IO¶
- buildingmodel.io.gis.clean_geometry(buildings)[source]¶
Ensures that building geometries are Polygons. If they are MultiPolygons, the first Polygon is taken. If they
are neither, an exception is raised * Removes 3rd coordinate if it is present * Orients the polygon in counter clockwise order
- Parameters:
buildings
Returns:
- buildingmodel.io.gis.load_data(building_data, parameters)[source]¶
Loads GIS building data
loads a GeoDataframe describing building data, orients the polygons in CCW and checks the validity of the parameters and geometry
- Parameters:
building_data (GeoDataframe or str) – either a GeoDataframe containing building data or a path to a GIS file
parameters (Parameters) – global parameter
- Returns:
GeoDataframe containing validated geometry and building description data
- Return type:
GeoDataframe