From 63f396b448cb2f41b808f8e5f0599874a566b8a6 Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Wed, 26 Jul 2023 18:13:05 +0100 Subject: [PATCH] offset notification on receive --- speckle_qgis.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/speckle_qgis.py b/speckle_qgis.py index 92a58fb5..eef39334 100644 --- a/speckle_qgis.py +++ b/speckle_qgis.py @@ -584,6 +584,14 @@ def onReceive(self): newGroupName = streamId + "_" + branch.name + "_" + commit.id newGroupName = removeSpecialCharacters(newGroupName) + try: + if (self.dataStorage.crs_offset_x is not None and self.dataStorage.crs_offset_x) != 0 or (self.dataStorage.crs_offset_y is not None and self.dataStorage.crs_offset_y): + logToUser(f"Applying CRS offsets: x={self.dataStorage.crs_offset_x}, y={self.dataStorage.crs_offset_y}", level = 0, plugin = self.dockwidget) + if (self.dataStorage.crs_rotation is not None and self.dataStorage.crs_rotation) != 0 : + logToUser(f"Applying CRS rotation: {self.dataStorage.crs_rotation}°", level = 0, plugin = self.dockwidget) + except: + pass + try: if app.lower() == "qgis" or app.lower() == "arcgis": print(app.lower())