From bba2678ce3e7b68cb160020ecc60b32fdfafbf9d Mon Sep 17 00:00:00 2001 From: bogind Date: Wed, 24 Jul 2024 13:29:35 +0300 Subject: [PATCH] Fixed #21, using WkbType instead of the old QgsWkbTypes.Type --- qlyrx_styler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qlyrx_styler.py b/qlyrx_styler.py index ff315ca..97f87c6 100644 --- a/qlyrx_styler.py +++ b/qlyrx_styler.py @@ -633,6 +633,7 @@ def parseSymbolLayerSolidFill(self, layers): return colors def generalise_geom_type(self, layer): + geometry_type_str = QgsWkbTypes.displayString(layer.wkbType()) geometry_type_str = QgsWkbTypes.displayString(int(layer.wkbType())) geometry_type = layer.wkbType() geometry_general_type_str = geometry_type_str.replace('Multi', '').lower()