iwfm.gis.qgis_open_proj

iwfm.gis.qgis_open_proj(filename, verbose=False, debug=0)[source]

Open a QGIS project.

Must be run inside a QGIS Python environment (the qgis package is not pip-installable).

Parameters:
  • filename (str) – QGIS project file name

  • verbose (bool, default=False) – turn command-line output on or off

  • debug (int, default=0) – 1 = print debug information about the opened project

Returns:

project – QGIS project

Return type:

qgis.core.QgsProject

Raises: