Tuesday, 18 September 2018

qgis - Calculating file name with field calculator



Is it possible to calculate the file name in an attribute table?


My shapefile has a name like "cities.shp". In this shapefile I want to have a attribute "cities").



Answer



Sorry for that stupid question! I did find an very easy way to do what I aked in this thread. Just use the QGis processing tool and the SAGA "merge vector layers" tool. The merged shape file has a column (called "Layer") filled with the shape file names.


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...