Friday, 4 May 2018

QGIS Field Calculator Results Removed When Saving Edits


Mac OSX 10.6.8 QGIS 1.8.0 : Using the field calculator from the attribute table, the $area of each feature is shown nicely in the table until I try to save it, then all the values are replaced by NULL so are no longer available for use. Furthermore, if the column is left there and the field calculator asked to update it, all values remain NULL. Any fix?



Answer




Two chances to get it right:




  • Check if the Layer CRS has metres as units, not degrees




  • Expand the width of the field. Square metres might easily exceed the limit you set. The shapefile database format is rather strict in that respect.




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