Skip to content
Permalink
Browse files

indentation

  • Loading branch information
ghtmtt committed Jul 12, 2018
1 parent 0835b20 commit a7130a0f97b1b9137a15875f4f4682efe5c8e888
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/qgis/RasterSampling.py
@@ -114,7 +114,7 @@ def processAlgorithm(self, parameters, context, feedback):
for b in range(sampled_rasters.bandCount()):
raster_fields.append(QgsField(
'rvalue_' + str('{}'.format(b + 1)), QVariant.Double
)
)
)

# combine all the vector fields
@@ -149,12 +149,12 @@ def processAlgorithm(self, parameters, context, feedback):
for b in range(sampled_rasters.bandCount()):
attrs.append(
sampled_rasters.dataProvider().identify(i.geometry().asPoint(),
QgsRaster.IdentifyFormatValue).results()[b + 1]
QgsRaster.IdentifyFormatValue).results()[b + 1]
)

attrs.append(
sampled_rasters.dataProvider().identify(i.geometry().asPoint(),
QgsRaster.IdentifyFormatValue).results()[1]
QgsRaster.IdentifyFormatValue).results()[1]
)

i.setAttributes(attrs)

0 comments on commit a7130a0

Please sign in to comment.
You can’t perform that action at this time.