Skip to content

Commit eca6691

Browse files
committed
fix travis?
1 parent 22d7b6c commit eca6691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def processAlgorithm(self, parameters, context, feedback):
115115
for i in sampled_rasters:
116116
for b in range(i.bandCount()):
117117
raster_fields.append(QgsField(
118-
i.name() + str('_{}'.format(b + 1)), QVariant.Double)
118+
os.path.splitext(os.path.basename(i.source()))[0] + str('_{}'.format(b + 1)), QVariant.Double)
119119
)
120120

121121
# combine all the vector fields

0 commit comments

Comments
 (0)