Skip to content

Standard MapAction QGIS templates, and scripts to generate them from ArcGIS templates

Notifications You must be signed in to change notification settings

mapaction/maptemplates-qgis

Repository files navigation

maptemplates-qgis

A set of scripts to generate QGIS templates which replicate ArcGIS templates

Summary

MapAction's master templates are stored in Arc, and a reference document generated containing settings (position, dimensions) for all elements.

QGIS templates are maintained using an XSLT script which runs against a master template and the settings document to create a template set to match the layout of the Arc originals.

The templates also hold variables which are used in expressions to populate layout elements.

Resources

  1. Reference CSV with schedule of elements and position/dimension values per element, generated from Arc templates
  2. Master QGIS template containing a complete set of all required elements across all templates, with ID values corresponding to those in the CSV output
  3. XSLT to generate output
  4. QGIS project to hold all Layouts

Processing

  1. Make any required changes to the master QGIS template -e.g. new elements or changed names
  2. Process the source files (the CSV and the master template) using the XSLT - you will need an XSLT 2.0 processor for this, for example Saxon
  3. The result will be a set of template files, one for each template specified in the spreadsheet
  4. Open each template in QGIS and check for errors
  5. Save the updated layout as a new template, overwriting the previous one

At the end of the process you should have a set of templates and a project with all templates represented as print layouts

About

Standard MapAction QGIS templates, and scripts to generate them from ArcGIS templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published