add None in Exception

This commit is contained in:
matteo 2018-07-12 12:45:18 +02:00
parent aea323efe9
commit 92d1cdc17a

View File

@ -169,6 +169,10 @@ class RasterSampling(QgisAlgorithm):
try:
point = ct.transform(point)
except QgsCsException:
for b in range(sampled_raster.bandCount()):
attrs.append(
None
)
feedback.reportError(self.tr('Could not reproject feature {} to raster CRS').format(i.id()))
attrs = i.attributes()