windkit.vector_map
Readers and writers for vectormap objects.
VectorMaps are defined as collections of linestrings and metadata that represent either elevations, or the land-cover information. When working with land-cover lines, an additional LandCoverTable is required to map the land-cover ids to relevant parameters.
Here VectorMaps are represented as geopandas.GeoDataFrame objects. They can be read from and written to several different formats to support interoperability with different tools. We recommend using the Geopackage (.gpkg) format if you do not need to use one of the other formats. For interoperability with WAsP, you should use the .map format for elevation maps, and .gml for land-cover maps.
Functions
|
Create a square flat elevation map, with bbox (-dist, -dist, dist, dist). |
|
Read a vector_map from a file. |
Split a combo mapfile into elevation and roughness files. |
|
|
Write a GeoDataFrame vector map to a vectorfile. |
|
Write vectormap in GeoDataFrame format to GML format. |
|
Write vector_map in GeoDataFrame format to WAsP mapfile format. |