Skip to content

Commit

Permalink
[processing] add layer and field names to the statistics output (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 15, 2016
1 parent 322e511 commit 4451f29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py
Expand Up @@ -145,6 +145,8 @@ def processAlgorithm(self, progress):
iqr = stat.interQuartileRange()

data = []
data.append('Analyzed layer: ' + layer.name())
data.append('Analyzed field: ' + fieldName)
data.append('Count: ' + unicode(count))
data.append('Unique values: ' + unicode(uniqueValue))
data.append('Minimum value: ' + unicode(minValue))
Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/qgis/BasicStatisticsStrings.py
Expand Up @@ -125,6 +125,8 @@ def processAlgorithm(self, progress):
uniqueValues = vector.getUniqueValuesCount(layer, index)

data = []
data.append('Analyzed layer: ' + layer.name())
data.append('Analyzed field: ' + fieldName)
data.append('Minimum length: ' + unicode(minValue))
data.append('Maximum length: ' + unicode(maxValue))
data.append('Mean length: ' + unicode(meanValue))
Expand Down

0 comments on commit 4451f29

Please sign in to comment.