Skip to main content

vissim2wgs1984

Convert vissim files (.inpx and .fzp to geojson, .fhz to csv).

This tool help user convert vissim files to wgs1984 and csv files.

specifically,

  1. convert .inpx to .geojson file
  2. convert .fzp file to .geojson and csv files. comment: will return two files, one is geojson file and anther is csv file.
  3. convert .fhz file to csv file.

Need to know before using this tool

  1. Vissim Simulation This tool is to conver files geneated by PTV Vissim. You design you own network or get network from other sources.

    You will get the layer file (.inpx). the .inpx can only open by PTV Vissim and you can use this tool to convert layer file to wgs1984 so that you can see your layer at different platform (QGIS, Kepler.gl, ArcMap...)

    You will get simulation results (.fzp and .fhz). you can open these files by PTV Vissim but you can not other platform. you can use this tool to convert .fzp file to (.geojson and .csv), .fhz file to .geojson.

  2. Prepare data for this tool

    In order to use this tool , you need to prepare several data for the map conversion.

    There are for digital nubmers from Background maps:

    Everytime you are using PTV Vissim, the software will generate these nubmers at Base Data -> Network settings -> Display

    Reference point in map: (-9772791.018, 5317836.791) you will need to replace these numbers by yours

    Reference point in network: (0.000, 0.000) you will need to replace these numbers by yours

    1655246139117

How to use the tool

  1. install from pypi pip install vissim2geojson

  2. dependencies

    Fiona==1.8.13.post1
    geojson==2.5.0
    geopandas==0.9.0
    pandas==1.4.2
    Shapely==1.7.1
    
  3. use case

    Sample user case at intersection 1655249626589

    import  vissim2geojson
    
    if__name__=="main":
    
        file_inpx ="./vissim_data/xl_002.inpx"
        file_fhz ="./vissim_data/xl_002_001.fhz"
        file_fzp ="./vissim_data/xl_002_001.fzp"
        file_folder ="./vissim_data"
    
        # prepare map reference info from Vissim
        x_refmap =-9772791.018
        y_refmap =5317836.791
    
        x_refnet =0
        y_refnet =0
    
        # for covert fzp files, if you don't need to convert fzp file, leave these value to default values.
        x_col_name ="POS"
        y_col_name ="POSLAT"
    
        # using vissim folder as input path, will generate four files: inpx.geojson, fzp.geojson, fzp.csv, fhz.csv.
        # all result files will save to the same folder as the input folder.
    
        vissim2wgs1984(file_folder, x_refmap, y_refmap, x_refnet, y_refnet, x_col_name, y_col_name).main()
    
    

Enjoy it!

Release files for vissim2geojson 1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vissim2geojson 1.5.3
File Size Uploaded
vissim2geojson-1.5.3.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vissim2geojson 1.5.3
File Interpreter ABI Platform
vissim2geojson-1.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / vissim2geojson-1.5.3.tar.gz

Download URL vissim2geojson-1.5.3.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
84c8010828184647173500eecee0a6f856c6881c4fc0f802933adbd540bca40c
BLAKE2b-256 checksum
How to use checksums
f550c033f43ecb14b060811a4025e3686d9565d6fdfc66d42d6d995b15c140bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / vissim2geojson-1.5.3-py3-none-any.whl

Download URL vissim2geojson-1.5.3-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5b56ed6e203696816f9d69f416262c97d3d444e66b92e53fbded952c2e87d55
BLAKE2b-256 checksum
How to use checksums
7a17fd6c5ff4bf8653a8c7e04393177b382c3bdb77517adc9f2158f3e4e97cbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.5.3 This release

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

1 release file

1.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page