From 3811b86fd4ec579f944919b94d36e6b82320ae2d Mon Sep 17 00:00:00 2001 From: KatKatKateryna Date: Thu, 14 Mar 2024 12:09:03 +0100 Subject: [PATCH] noData on receive --- speckle/converter/layers/layer_conversions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/speckle/converter/layers/layer_conversions.py b/speckle/converter/layers/layer_conversions.py index 154ceee..7f0dadf 100644 --- a/speckle/converter/layers/layer_conversions.py +++ b/speckle/converter/layers/layer_conversions.py @@ -2061,13 +2061,13 @@ def addRasterMainThread(obj: Tuple): # get noDataVal or use default try: try: - noDataVal = float(feat.noDataValue) + noDataVal = feat.noDataValue[i] except: - noDataVal = float(feat["NoDataVal"][i]) # if value available + noDataVal = feat["NoDataVal"][i] # if value available try: - band.SetNoDataValue(noDataVal) - except: band.SetNoDataValue(float(noDataVal)) + except: + band.SetNoDataValue(noDataVal) except: pass