From 9a0e0f6bc4485c9c56a3993b0a921bb295b75a84 Mon Sep 17 00:00:00 2001 From: ProjectsSven Date: Mon, 27 Oct 2025 21:25:33 +0100 Subject: [PATCH] fix: QgsRubberBand signature fixes: #15 --- heightmapexport_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heightmapexport_dialog.py b/heightmapexport_dialog.py index 122f5e1..4d19b71 100644 --- a/heightmapexport_dialog.py +++ b/heightmapexport_dialog.py @@ -41,7 +41,7 @@ from qgis.PyQt.QtGui import QColor, QCursor, QDoubleValidator, QIntValidator from qgis.PyQt.QtCore import Qt, QLocale from qgis.gui import (QgsRubberBand, QgsMessageBar, QgsMapLayerComboBox) - from qgis.core import (QgsPointXY, QgsRectangle, QgsProject, + from qgis.core import (QgsWkbTypes, QgsPointXY, QgsRectangle, QgsProject, QgsGeometry, QgsCoordinateTransform, QgsCoordinateReferenceSystem, QgsMapLayerProxyModel) from .heightmapexport_dialog_base_3 import Ui_HeightmapExportDialog @@ -394,7 +394,7 @@ def draw_box(self, layer): if self.extent: self.canvas.scene().removeItem(self.extent) self.extent = None - self.extent = QgsRubberBand(self.canvas, True) + self.extent = QgsRubberBand(self.canvas, QgsWkbTypes.PolygonGeometry) if self.QGIS_VERSION == 2: points = [QgsPoint(x_max, y_min), QgsPoint(x_max, y_max),