gws.plugin.qgis.template¶
QGIS print template.
Source code: gws.plugin.qgis.template
Module Contents¶
- class gws.plugin.qgis.template.Config¶
Bases:
gws.base.template.ConfigPrint template based on a print layout of a QGIS project.
- cssPath: gws.FilePath | None¶
Stylesheet for the HTML map overlay.
- mapPosition: gws.UomSizeStr | None¶
Position of the main map on the page.
- provider: Config.provider | None¶
QGIS project that contains the print layout.
- class gws.plugin.qgis.template.Object¶
Bases:
gws.base.template.ObjectPrint template based on a print layout of a QGIS project.
The map is rendered by WebSuite and the layout by QGIS Server; the result is one PDF.
- mapPosition: gws.UomSize¶
Position of the map item on the page.
- provider: Object.provider¶
QGIS provider.
- qgisTemplate: gws.plugin.qgis.caps.PrintTemplate¶
The print layout.
- configure()¶
- configure_provider()¶
Set the QGIS provider.
- Returns:
Trueif a provider was set.- Raises:
gws.Error – If no provider is found.
- render(tri)¶