
Export Map Themes from a QGIS Project to a Portable XML
Source:R/rfp_qgs_theme_export.R
rfp_qgs_theme_export.RdExtract one or more visibility presets (map themes) from a .qgs file as
a portable XML document. Layer references — which in QGIS are mangled
UUID-suffixed ids that differ between projects — are rewritten to the
human-readable layer names, so the exported file can be applied to a
destination project where the same layer names exist with different ids.
Details
Pairs with rfp_qgs_theme_apply(). See rfp_qgs_themes() to list the
themes available in a project.
See also
Other qgs:
rfp_qgs_theme_apply(),
rfp_qgs_themes(),
rfp_qgs_themes_config()
Examples
if (FALSE) { # \dontrun{
# Export every theme
rfp_qgs_theme_export("~/Projects/gis/restoration_wedzin_kwa.qgs")
# Export only specific themes
rfp_qgs_theme_export(
"restoration_wedzin_kwa.qgs",
themes = c("Floodplain", "Overview")
)
} # }