windkit.vector_map.vector_map_to_file
- windkit.vector_map.vector_map_to_file(gdf, filename: Path | str, lctable: LandCoverTable = None, driver: str = 'GPKG', **kwargs)[source]
Write a GeoDataFrame vector map to a vectorfile.
Filetypes are determined from the file extension. .map files passed to vector_to_mapfile() .gml files are passed to vector_to_gmlfile() all others use the geopandas .to_file() method
- Parameters:
gdf (geopandas.GeoDataFrame) – Vector map to write
filename (pathlib.Path or str) – Path to file to write to.
lctable (LandCoverTable) – Landcover table to map landcover and roughness / displacements. Defaults to None.
driver (str) – Name of the Fiona Driver to pass to geopandas.to_file(). Defaults to “GPKG”
kwargs (dict) – Keyword arguments to pass to writer.