Thursday 31 March 2016

Concatenating fields in field calculator of QGIS?


Is there a way to concatenate fields in field calculator of QGIS? (e.g. hectares + ' ha')




Answer



In recent QGIS versions (>= 2.6), + works for string concatenation


tostring(hectares) + ' ha'

Previously, the only concatenation operator was: ||


tostring(hectares) || ' ha'

No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...