Skip to content

Commit

Permalink
text info always in A4 portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
wilhelmberg committed Mar 25, 2014
1 parent 5ade88c commit 18d778a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VoGISRaumplanungPlot/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[general]
name=VoGIS Raumplanung
description=Create Plots from VoGIS Data.
version=0.1.3
version=0.1.4
qgisMinimumVersion=2.0
qgisMaximumVersion=2.99
author=BergWerk GIS
Expand Down
2 changes: 1 addition & 1 deletion VoGISRaumplanungPlot/resources_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Resource object code
#
# Created: Di. Mär 25 11:50:27 2014
# Created: Di. Mär 25 15:02:01 2014
# by: The Resource Compiler for PyQt (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
Expand Down
2 changes: 1 addition & 1 deletion VoGISRaumplanungPlot/ui_vogisraumplanungplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'ui_vogisraumplanungplot.ui'
#
# Created: Tue Mar 25 11:50:27 2014
# Created: Tue Mar 25 15:02:01 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
Expand Down
2 changes: 1 addition & 1 deletion VoGISRaumplanungPlot/ui_vogisraumplanungplotsettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'ui_vogisraumplanungplotsettings.ui'
#
# Created: Tue Mar 25 11:50:27 2014
# Created: Tue Mar 25 15:02:01 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
Expand Down
6 changes: 5 additions & 1 deletion VoGISRaumplanungPlot/vrpcomposer/vrpprintcomposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def export_all_features(self):

self.__update_composer_items(self.settings.dkm_gemeinde(self.gem_name)['lyrnamegstk'])

if VRP_DEBUG is True:
QgsMessageLog.logMessage(u'paperWidth:{0} paperHeight:{1}'.format(composition.paperWidth(), composition.paperHeight()), DLG_CAPTION)

printer = QPrinter()
printer.setOutputFormat(QPrinter.PdfFormat)
printer.setOutputFileName(self.pdf_map)
Expand Down Expand Up @@ -240,6 +243,7 @@ def export_all_features(self):
QgsMapLayerRegistry.instance().removeMapLayers([lyr.id() for lyr in layers])
#output statistics
if len(self.statistics) > 0:
printer.setPaperSize(QSizeF(210, 297), QPrinter.Millimeter)
tabelle = self.__get_item_byid(self.comp_textinfo, 'TABELLE')
if tabelle is None:
self.iface.messageBar().pushMessage(u'Layout (Textinfo): Kein Textelement mit ID "TABELLE" vorhanden.', QgsMessageBar.CRITICAL)
Expand Down Expand Up @@ -426,7 +430,7 @@ def __update_composer_items(self, oberthema, subthema=None, labels=None, gnrflae
lbl[0].setText(txt)
#self.composermap.updateItem()
#self.composermap.updateCachedImage()
self.composermap.mapRenderer().updateFullExtent ()
#self.composermap.mapRenderer().updateFullExtent ()


def __get_items(self, typ, composition=None):
Expand Down
4 changes: 2 additions & 2 deletions plugins.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<plugins>
<pyqgis_plugin name="VoGIS Raumplanung" version="0.1.3">
<pyqgis_plugin name="VoGIS Raumplanung" version="0.1.4">
<description><![CDATA[Create Plots from VoGIS Data.]]></description>
<version>0.1.3</version>
<version>0.1.4</version>
<qgis_minimum_version>2.0.0</qgis_minimum_version>
<qgis_maximum_version>2.99.0</qgis_maximum_version>
<homepage>https://github.com/BergWerkGIS/VoGIS-Raumplanung/</homepage>
Expand Down
Binary file modified vogisraumplanungplot.zip
Binary file not shown.

0 comments on commit 18d778a

Please sign in to comment.