mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
add None in Exception
This commit is contained in:
parent
aea323efe9
commit
92d1cdc17a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user