[Qgis-user] Working with field calculator on QGIS 1.8.0

Manuel Spínola mspinola10 at gmail.com
Thu Jul 5 09:10:10 PDT 2012


Thank you very much Leonardo.

No, it didn't work.

Manuel

2012/7/5 <lami at gis3w.it>

>
> Hi Manuel,
>
> Try:
>
> case when "COVER"  = 'A' THEN "NEW_COVER"  = 1 ELSE "NEW_COVER"  = 2 END
>
> Best,
>
> Leonardo Lami
>
>
> Gis3W
> e-mail: lami at gis3w.it
> Cell: 349 1310164
> Web: www.gis3w.it
>
>
>
> On Thu, 5 Jul 2012 09:26:41 -0600, Manuel Spínola <mspinola10 at gmail.com>
> wrote:
> > Dear list members,
> >
> > I am using the field calculator in 1.8.0 (Mac OS)
> >
> > I am creating a new field (column) called NEW_COVER and I want to assign
> a
> > value of 1 to the value A of the existing field (column) Cover and 0 to
> the
> > value B.
> >
> > Field: Cover
> > Values: A, B
> >
> >
> > In the Expression window I have:
> >
> > 'A' = 1
> >
> > But when I click OK, I don't get the result that I was expecting, to
> have a
> > value 1 on the new field NEW_COVER.
> >
> > What I am doing wrong?
> >
> > Best,
> >
> > Manuel
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.ac.cr
mspinola10 at gmail.com
Teléfono: (506) 2277-3598
Fax: (506) 2237-7036
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120705/a60e61c9/attachment.html>


More information about the Qgis-user mailing list