-
Notifications
You must be signed in to change notification settings - Fork 13
Script
Emanuele Gissi edited this page Aug 22, 2022
·
2 revisions
ℹ️ Updated to qgis2fds 1.0
This wiki page explains how to call qgis2fds from external scripts for programmatical use.
QGIS comes with a tool called QGIS Processing Executor which allows you to run Processing algorithms and models (built-in or provided by plugins) directly from the command line without starting QGIS Desktop itself, as described here.
For example, you can execute qgis2fds from the command line in Linux by typing:
$ qgis_process run "Export to NIST FDS:Export terrain" \
--PROJECT_PATH="golden_gate_local.qgs" -- \
distance_units=meters area_units=m2 ellipsoid=EPSG:7019 \
chid="golden_gate_local" fds_path="./fds" \
extent="-122.491206899,-122.481181391,37.827810126,37.833676214 [EPSG:4326]" \
pixel_size="5" \
origin="-2279076.207440,1963675.963121 [EPSG:5070]" \
dem_layer="US_DEM2016_local.tif" \
landuse_layer="US_210F13_21_local.tif" \
landuse_type_filepath="./Landfire.gov_F13.csv" \
fire_layer="fire.shx|layername=fire" \
wind_filepath="./wind.csv" \
tex_pixel_size="1" \
nmesh="4" \
export_obst="1" \
project_crs="EPSG:5070"
as you would from within qgis2fds user interface.
Note that, in this example case, you need to prepare a preconfigured template
as the golden_gate_local.qgs
to facilitate the setup of the data sources.
Back to qgis2fds Wiki Home