Skip to content

Commit

Permalink
offset notification on receive
Browse files Browse the repository at this point in the history
  • Loading branch information
KatKatKateryna committed Jul 26, 2023
1 parent ac7a98a commit 63f396b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions speckle_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 63f396b

Please sign in to comment.