3

I have a number of polygon attribute tables with columns that I want to update with new information.

Is there a way of (relatively) quickly editing info in attribute tables in QGIS?

For example, such as using Control C and V such as in MapInfo. Currently seem to need to double click/right click/copy, move to cell, double click/right click/paste each individual cell I want to change - would like something simple rather than going down the field calculator, filter, etc route. With points no problem; I usually throw them out to Excel, edit and then bring back in again.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Mar 6, 2014 at 12:22

1 Answer 1

2

If your editing situation is conditional you may use a CASE expression within field calculator:

CASE expression A conditional expression that can be used to evaluate multiple expressions and return a result.

Syntax:

 CASE
 WHEN condition THEN result
 [ ...n ]
 [ ELSE result ]
 END

Example:

CASE
 WHEN "mycolumn" = 'A' THEN 'Letter A'
 WHEN "mycolumn" = 'B' THEN 'Letter B'
 ELSE "mycolumn"
END

This should at least eliminate the need to perform selections and filters before running calculations.

answered Mar 6, 2014 at 12:40
2
  • 1
    Thanks. However what I want is basic - whole heap of null values that I want to change into a a large number of defined set of types for each column heading which can then be selected for display eg rehab year, method, area_number, type, etc. Quite variable and specific for each row of info. Only really need to do this once as I'm inputting all information that I can find. Commented Mar 6, 2014 at 13:48
  • Did you manage to perform that in Mapinfo? Commented Jun 11, 2019 at 1:01

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.