<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Dear Claas </div><div class="gmail_default" style="font-family:tahoma,sans-serif">yes thanks a lot.. it is working. </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">and thanks to all for the answers. </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Azzu</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-15 22:12 GMT+01:00 Claas Leiner <span dir="ltr"><<a href="mailto:claas.leiner@gkg-kassel.de" target="_blank">claas.leiner@gkg-kassel.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
You can do ist with:<br>
<br>
------------------------------<wbr>------------<br>
case<br>
when “DESCRIPTION” = 'sample1' then 1<br>
when “DESCRIPTION” = 'sample2' then 2<br>
...<br>
when “DESCRIPTION” = 'sample25' then 25<br>
end<br>
------------------------------<wbr>------------<br>
Claas<div><div class="h5"><br>
<br>
Am 15.11.2016 um 21:51 schrieb Azzurra Lentini:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Dear all,<br>
<br>
I have an attribute table (associated to a shape file).<br>
<br>
One of the field  is a string type field and his name is “DESCRIPTION” ,<br>
I need this field as an  INT number.<br>
<br>
The field “description” is formed by 25 different samples and around 350<br>
records (so for every sample there are different records with the same<br>
description).<br>
<br>
SO I create a new field “descriptionINT” and I would like to fill the<br>
field with 25 numbers (1, 2, 3,.... 25) associated to the 25 different<br>
sample and 350 records.<br>
<br>
How I can do?<br>
<br>
Till now, I was first selecting the records related to the first sample<br>
and I was giving the number, for example 1 (with field calculator) to<br>
all the records related to the same sample.<br>
<br>
But I am doing this one by one.. that means every time a do a new<br>
selection and I give a new number with field calculator.<br>
<br>
Do you know a faster way (query)  to do this ?<br>
<br>
<br>
​thanks A.L. ​<br>
<br>
--<br>
Dr. Hydrogeologist<br>
AZZURRA LENTINI<br>
Expert of evaluation environmental hazards<br>
GIS application<br>
Haity Mobile Tel: 0050946057393<br>
++++++++++++++++++++++++++<br>
Italy Mobile Tel.: **(39) 338 24 40 676<br>
++++++++++++++++++++++++++<br>
SKYPE azzurrahydro<br>
++++++++++++++++++++++++++<br>
</div></div><a href="mailto:azzurralentini@gmail.com" target="_blank">azzurralentini@gmail.com</a> <mailto:<a href="mailto:azzurralentini@gmail.com" target="_blank">azzurralentini@gmail.c<wbr>om</a>><span class=""><br>
++++++++++++++++++++++++++<br>
*Par respect pour l'environnement,*<br>
<br>
*n'imprimez ce mail qu'en cas d'absolue nécessité*<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br></span>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
------------------------------<wbr>-----------<br>
GKG-Kassel - Dr.-Ing. Claas Leiner<br>
QGIS-Support und mehr<br>
<br>
Geodatenservice, Kartenwerkstatt &<br>
GIS-Schule Kassel<br>
<br>
Wilhelmshöher Allee 304 E<br>
34131 Kassel<br>
Tel. 0561/56013445<br>
<a href="mailto:claas.leiner@gkg-kassel.de" target="_blank">claas.leiner@gkg-kassel.de</a><br>
------------------------------<wbr>----------<br>
<a href="http://www.gkg-kassel.de" rel="noreferrer" target="_blank">http://www.gkg-kassel.de</a><br>
------------------------------<wbr>----------<br>
Unterstützen Sie QGIS<br>
QGIS-DE e.V. | <a href="http://qgis.de" rel="noreferrer" target="_blank">http://qgis.de</a><br>
QGIS Projekt | <a href="http://qgis.org/de/site/" rel="noreferrer" target="_blank">http://qgis.org/de/site/</a><br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-user</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Dr. Hydrogeologist <br>AZZURRA LENTINI<br>Expert of evaluation environmental hazards<br>GIS application <br>Haity Mobile Tel: 0050946057393<br>++++++++++++++++++++++++++<br>Italy Mobile Tel.: **(39) 338 24 40 676<br>++++++++++++++++++++++++++<br>SKYPE azzurrahydro<br>++++++++++++++++++++++++++<br><a href="mailto:azzurralentini@gmail.com" target="_blank">azzurralentini@gmail.com</a><br>++++++++++++++++++++++++++<br>*Par respect pour l'environnement,*<br><br>*n'imprimez ce mail qu'en cas d'absolue nécessité*<br><br> <br><br><br><br><br></div></div>
</div>