Skip to main content

vissim2gmns converts VISSIM files (.inpx, .fzp, .fhz) into GMNS format with WGS 1984 coordinates for easy GIS visualization and analysis.

Project description

vissim2gmns

vissim2gmns converts VISSIM files (.inpx, .fzp, .fhz) into GMNS format with WGS 1984 coordinates for easy GIS visualization and analysis.

Specifically:

  1. convert .inpx to .geojson and .csv files
  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.

[!Warning]

We have deprecated the development of vissim2geojson and the latest update have move to vissim2gmns

Background Knowledge Before Use This Tool

  1. Vissim Simulation

    This tool is to conver files geneated by PTV Vissim.

    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 open the layer using different platform (QGIS, Kepler.gl, ArcMap...)

    You will get simulation results (such as .fzp and .fhz, these files can open by PTV Vissim but not other platforms). You can use this tool to convert .fzp file to .geojson and .csv, .fhz file to .geojson and .csv, and then perform analysis based on the simulation results.

  2. Prepare data for this tool

    In order to use this tool , you need to prepare information from VISSIM for the map conversion.

    There are for digital numbers from Background maps:

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

[!NOTE]

You will need to replace following numbers

Reference point in map (x_refmap, y_refmap): (-9772791.018, 5317836.791)

Reference point in network (x_refnet, y_refnet): (0.000, 0.000)

1655246139117

How to use the tool

  1. install from pypi

    pip install vissim2gmns

  2. use case

    Sample user case at intersection 1655249626589

    import  vissim2gmns as vg
    
    if__name__=="main":
    
        file_folder ="./datasets/one_intersection/"
        file_inpx ="./datasets/one_intersection/xl_002_001.inpx"
        file_fhz ="./datasets/one_intersection/xl_002_001.fhz"
        file_fzp ="./datasets/one_intersection/xl_002_001.fzp"
    
        # 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.
    
        net = vg.VISSIM2GMNS(file_folder, x_refmap, y_refmap, x_refnet, y_refnet, x_col_name, y_col_name)
        net.vissim_to_gmns()
    

Enjoy it!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vissim2gmns-1.5.7.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vissim2gmns-1.5.7-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file vissim2gmns-1.5.7.tar.gz.

File metadata

  • Download URL: vissim2gmns-1.5.7.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vissim2gmns-1.5.7.tar.gz
Algorithm Hash digest
SHA256 4e106a61a201e742c3293db731b9d4af66b9ea9a71b735a42b8838f3ff6b6479
MD5 9e5ece6cecdb6a1bb2ec1692b9b194ba
BLAKE2b-256 0ee4253387adaf8783aaf49fd7cd3af8b06f6bccfa1c7ccca2b65c7de3ff0615

See more details on using hashes here.

File details

Details for the file vissim2gmns-1.5.7-py3-none-any.whl.

File metadata

  • Download URL: vissim2gmns-1.5.7-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vissim2gmns-1.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d29bef1bd1b9d14767fb76775b1a26728e8a12a0cfeb5d0c84171d83aaac96b5
MD5 1227e6a283250b91f6706a7c8c4ed3ff
BLAKE2b-256 f90748a67a4f67bd5eed809922493d1cf2bf6b7f8ceeea54120e5db664244676

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page