Feature request #14537

Codify function in Field Calculator

Added by Scott Hatcher almost 8 years ago. Updated almost 8 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Field calculator
Pull Request or Patch supplied:No Resolution:worksforme
Easy fix?:No Copied to github as #:22510

Description

There should be a function in the Field Calculator that can code a string field into a integer field to assist in rasterizing a vector layer.

The functionality can be done with pyQGIS scripting, but I think it should be core functionality.

Here is an example of the script required to do this:
http://gis.stackexchange.com/questions/152458/create-id-for-each-string-attribute-in-qgis

History

#1 Updated by Matthias Kuhn almost 8 years ago

  • Resolution set to worksforme
  • Status changed from Open to Closed

This should be possible with an expression already:

http://gis.stackexchange.com/questions/39168/elseif-conditional-statement-in-qgis-field-calculator

Please reopen if this does not fulfill your requirements.

Also available in: Atom PDF