Skip to content

Commit b6cafe7

Browse files
committedJul 10, 2018
indentation fix
1 parent d1cedbc commit b6cafe7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed
 

‎python/plugins/processing/algs/qgis/RasterSampling.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def processAlgorithm(self, parameters, context, feedback):
115115
# append field to vector as rasterName_bandCount
116116
for i in sampled_rasters:
117117
for b in range(i.bandCount()):
118-
raster_fields.append(QgsField(i.name() + str('_{}'.format(b+1)), QVariant.Double))
118+
raster_fields.append(QgsField(
119+
i.name() + str('_{}'.format(b+1)),
120+
QVariant.Double)
121+
)
119122

120123

121124
# combine all the vector fields
@@ -147,11 +150,16 @@ def processAlgorithm(self, parameters, context, feedback):
147150
if rr.bandCount() >1:
148151

149152
for b in range(rr.bandCount()):
150-
attrs.append(rr.dataProvider().identify(i.geometry().asPoint(),
151-
QgsRaster.IdentifyFormatValue).results()[b+1])
153+
attrs.append(
154+
rr.dataProvider().identify(i.geometry().asPoint(),
155+
QgsRaster.IdentifyFormatValue).results()[b+1]
156+
)
152157

153158

154-
attrs.append(rr.dataProvider().identify(i.geometry().asPoint(), QgsRaster.IdentifyFormatValue).results()[1])
159+
attrs.append(
160+
rr.dataProvider().identify(i.geometry().asPoint(),
161+
QgsRaster.IdentifyFormatValue).results()[1]
162+
)
155163

156164

157165
i.setAttributes(attrs)

0 commit comments

Comments
 (0)
Please sign in to comment.