Installation

Prerequisites

OMRAT requires:

  • QGIS 3.30+ (qgisMinimumVersion=3.30 in metadata.txt). The plugin is Qt 6 compatible (supportsQt6=True).

  • Python 3.9+ (bundled with QGIS).

  • A handful of scientific Python packages listed in requirements.txt (NumPy, SciPy, Shapely, GeoPandas, Matplotlib, Pydantic, pyproj, Requests, Pandas). If you install OMRAT via the QGIS Plugin Manager the qpip plugin dependency installs these automatically — see below.

Optional:

  • psycopg2 – for PostgreSQL/AIS database connectivity (only needed if you import traffic from a remote AIS database).

Manual dependency install (fallback)

Only needed if qpip isn’t available or is blocked (e.g. offline install, restrictive network).

On Windows with OSGeo4W:

C:\\OSGeo4W\\bin\\python3.exe -m pip install -r requirements.txt

On Linux/macOS with the system QGIS Python:

python3 -m pip install --user -r requirements.txt

You can also install just the runtime packages (skip the pytest* entries) if you don’t plan to run the test suite.

Verifying the Installation

After installation, you should see the OMRAT icon in the QGIS toolbar. Click it to open the plugin dock widget. The widget should display tabs for: Route, Traffic, Depths, Objects, Distributions, Results, and Drift Analysis.

If the plugin fails to load:

  • Check Plugins -> Installed for a red error badge on OMRAT; hover it to see the import error.

  • The most common cause is a missing Python dependency that qpip did not install. Try the Manual dependency install (fallback) fallback.

  • QGIS message log (View -> Panels -> Log Messages Panel) has an OMRAT tab with plugin-side errors.