vissim2gmns.VISSIM2GMNS
- class vissim2gmns.VISSIM2GMNS(input_dir: str, *, x_col_name: str = 'POS', y_col_name: str = 'POSLAT')[source]
A tool to convert vissim files to csv, geojson and shp files.
- Parameters:
input_dir (str) – the folder or file path to the vissim file
x_col_name (str) – the longitude column name in fzp file to convert fzp file to geojson. Defaults to “POS”.
y_col_name (str) – the latitude column name in fzp file to convert fzp file to geojson. Defaults to “POSLAT”.
Notes
convert .inpx file to geopandas dataframe and csv/geojson/shp file
convert .fzp file to geopandas dataframe and csv/geojson/shp file
convert .fhz file to csv file
See also
GMNS: General Modeling Network Specification(https://github.com/zephyr-data-specs/GMNS)
Example
>>> from vissim2gmns import VISSIM2GMNS >>> vissim = VISSIM2GMNS("./vissim_data/dir") >>> vissim.vissim_to_gmns()
- __init__(input_dir: str, *, x_col_name: str = 'POS', y_col_name: str = 'POSLAT')[source]
Initialize the VISSIM2GMNS class.
Methods
__init__(input_dir, *[, x_col_name, y_col_name])Initialize the VISSIM2GMNS class.
vissim_to_gmns(**kwargs)Convert vissim files to csv files in GMNS format.