windkit.map_conversion.lines2poly
- windkit.map_conversion.lines2poly(line_gdf, bbox=None, buffer=0)[source]
Convert a geodataframe of lines to a geodataframe of polygons.
- Parameters:
line_gdf (GeoDataFrame) – A geodataframe including the columns geometry filled with LineString and id filled with integers or float.
bbox (4-uple, optional. Default: None) – x_left, y_down, x_right, y_up
buffer (float, optional. Default: 0) – If lines of the gdf touches the border continuously, this border will be moved by the value of the buffer. The buffer has to be non negative. null buffer may cause invalid polygons if a line touches a border continuously.