Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
indentation
  • Loading branch information
ghtmtt committed Jul 12, 2018
1 parent 0835b20 commit a7130a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/qgis/RasterSampling.py
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a7130a0

Please sign in to comment.