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:
- Returns:
project – QGIS project
- Return type:
qgis.core.QgsProject
- Raises:
FileNotFoundError – if the project file does not exist
ValueError – if QGIS cannot read the project file