[Qgis-user] update string attributes in shapefile with field calculator

Micha Silver micha at arava.co.il
Sun Jun 27 22:10:53 PDT 2010


On 28/06/2010 07:15, maning sambale wrote:
> I know this is easy in GRASS and postgis data.  The thing is, I want
> to do this in a shapefile using the fielad calculator.
>
>   Basically,
> if columnA = "Some string" , assign "another string" to columnB.
>
>
> Any ideas?
>    
In two steps: First select the rows with ColumnA="Some String". Then 
using the field calculation, tick the ckeckbox "Only update selected " 
then enter 'another string' (single quotes) in the calculator expression 
window.

-- 
Micha



More information about the Qgis-user mailing list