<div dir="ltr"><div dir="ltr"><font face="arial, sans-serif">Hey Vladut:</font><div><font face="arial, sans-serif"><br></font></div><div><p class="MsoNormal"><span lang="EN-GB"><font face="arial, sans-serif">If you succeed
in recovering the previous <i>dbf</i> file, you
can join it again to the recent damaged shapefile, by the common field of area,
provided your previous field SUP (area) was actually the area of the geometry
elements.<span></span></font></span></p>

<p class="MsoNormal"><span lang="EN-GB"><font face="arial, sans-serif"> </font></span></p>

<span lang="EN-GB"><font face="arial, sans-serif">Before joining, recalculate and/or round the area
fields, in order to fix them to the same and appropriate number of decimals (and,
if necessary, convert them to string),  so
that you can assure exact matches.</font></span></div><div><span lang="EN-GB"><font face="arial, sans-serif"><br></font></span></div><div><span style="line-height:24px"><font face="arial, sans-serif">Best regards</font></span><br></div><div><div><div dir="ltr" class="gmail_signature"><p><span style="font-size:11pt;color:rgb(31,73,125)">Pedro Monteiro</span></p><p></p><p><font color="#1f497d"><span style="font-size:15px"><br></span></font></p><p><br>        </p><br><br>

<p>   <br></p><p><br></p><br></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> escreveu no dia domingo, 15/11/2020 à(s) 11:36:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto">Restoring only the dbf will do am error for a shapefile because it is sync with shp and shx.<div dir="auto">The retrieve should fo for all three files or nothing.</div><div dir="auto">The dhx could be recalculate from dbf and shp. But dbf and shp must be sync-ed.</div><div dir="auto"><br></div><div dir="auto">A.</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il dom 15 nov 2020, 11:37 Yury <<a href="mailto:yury.zammit@gmail.com" target="_blank">yury.zammit@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto">Windows has a feature called previous versions. Locate the shape files on explorer, look for the dbf file, right click, properties and see if you have any previous versions that you can restore. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 15 Nov 2020, 10:45 Francesco Pelullo, <<a href="mailto:f.pelullo@gmail.com" rel="noreferrer" target="_blank">f.pelullo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="auto"><div>Ciao Vladut,</div><div dir="auto"><br></div><div dir="auto">I'm sorry, you have no chanches to recover deleted attributes.</div><div dir="auto"><br></div><div dir="auto">You need to populate attributes again.</div><div dir="auto"><br></div><div dir="auto">However, in my mind, this could be not a impossible job.</div><div dir="auto"><br></div><div dir="auto">SUP (area) attribute is a geometry dependant value, you could calculate areas again with a simple string in field calculator.</div><div dir="auto"><br></div><div dir="auto">TIPO (Type) attribute is the real problem, but since I suppose you extracted it from some public data source, maybe you could use field calculator again for extract data in minutes.</div><div dir="auto"><br></div><div dir="auto">Don't worry, these are common experiences that would drive you to a more prudent jobs management.</div><div dir="auto"><br></div><div dir="auto">Also hope you will adopt another file format (.gpkg is great) and leave shapefiles. </div><div dir="auto"><br></div><div dir="auto">Ciao</div><div dir="auto">Francesco</div><div dir="auto"><br></div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Il dom 15 nov 2020, 10:12 Vladut Constandoiu <<a href="mailto:vladutco@gmail.com" rel="noreferrer noreferrer" target="_blank">vladutco@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Good morning,<div><br></div><div>My name is Vladut Constandoiu, I'm a university student from Trento, Italy and I'm using QGis for my master thesis.</div><div>Yesterday I had a very unpleasant experience with QGis. I have a shapefile that contains all of the different areas of the river's hydrological basin on which I'm doing my project; every element has two attributes: type (TIPO) and area (SUP). Somehow I managed to erase those attributes from the attribute table and could not do undo (ctrl+z or anything else) since the auto-save plug-in activated exatly 2 seconds after  my mistake and saved the changes. The shapefile contains about 6900 elements, and they were all sorted by use, while now they are just areas without any information.</div><div>Is there any way to recover a previous version of that shapefile so that I don't have to spend uncountable hours putting all the attributes back in?</div><div>Here are three pictures of my work, previously and after the loss of information.</div><div><br></div><div>Before data loss:</div><div><div><img src="https://mail.google.com/mail/u/1?ui=2&ik=72f16071a9&attid=0.1.0.1&permmsgid=msg-f:1683416367690043952&th=175cb2446d3e5230&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ-5IbbhzyeD8iz9qPWCZoBzR2JhWv5gJjiBE_1aGUBFmUsAb8dRsZ_9J4IN0ZaTvdBOpqNDVB3r5PveOOMWic7-4rA9-MbFZv_O86cRbBWPAx_AXGFy77zh5CI&disp=emb&realattid=ii_khivyn6z0" alt="image.png" width="542" height="358" style="outline: 0px;"><br></div></div><div><br></div><div>After data loss + legend of types of area:</div><div><div><img src="https://mail.google.com/mail/u/1?ui=2&ik=72f16071a9&attid=0.1.0.2&permmsgid=msg-f:1683416367690043952&th=175cb2446d3e5230&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ8UnzpwabzMsqn1VnRr-MBjmGWDlDuDJgXXShQewBlDiavpY34kbBSZ8LjRhjIa7TpBVJqosRrz3-6Wppa80oqJ2b4hwrCZI9-RD-T7RZw1AY2UxmoI8ojKuv8&disp=emb&realattid=ii_khiw0zn31" alt="image.png" width="542" height="274" style="outline: 0px;"><br></div></div><div><br></div><div>Attribute panel:</div><div><div><img src="https://mail.google.com/mail/u/1?ui=2&ik=72f16071a9&attid=0.1.0.3&permmsgid=msg-f:1683416367690043952&th=175cb2446d3e5230&view=fimg&sz=s0-l75-ft&attbid=ANGjdJ_pUXpngqkDBLS-31fOVAEInBwy3gm5V-E6rXFV-TDXy7OJbXKW6nKCgP1tKiBGPTp5BnZXX3QHomnpec2mlb_OrLfTeG7Enjl71kSCVtkranZIEnS2uiO1s1c&disp=emb&realattid=ii_khiw2bnz2" alt="image.png" width="542" height="340" style="outline: 0px;"><br></div></div><div><br></div><div>I would be enormously grateful to anyone who could help me find a solution for this mess.</div><div><br></div><div>Thank you very much in advance and have a nice day.</div><div>Sincerely,</div><div>Vladut Constandoiu </div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>
_______________________________________________<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="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>