Tuesday, 1 January 2019

How to update a text column of selected features in QGIS?


Let's say I have a bunch of postcodes. After making a selection and having the records highlighted in the attribute table, how to update all of them and give them the same category?



In ArcGIS, after having the features selected, you simply had to use field editor and say for example: name = asd.


In QGIS that doesn't work. How to do it in QGIS?



Answer




  1. make sure the layer is in edit mode (otherwise changes will not happen)

  2. Select features to change (however you like)

  3. then open attribute table

  4. select the attribute to change

  5. type in what you want it to be (anything you like) - if it is a string then enclose it in '

  6. hit the update selected button (be careful here as it is right next to the update all button)


  7. Save your changes and exit edit mode.


enter image description here


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