Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to solve basic problem. I need to automatically fill the table. How is in Qgis possible to fill it like : if column SPECIES contain string DOG -> write to column CODE integer 1? Thanks for any advice.

share|improve this question

This can be done with the Field Calculator. If you open the attribute table and click on the little button at the bottom that looks like a calculator (you may need to enter "editing" mode first). This brings up the calculator which allows you to do this sort of thing.

The manual ( has information about use of the Field Calculator starting on Page 76

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.