Re: [Qgis-user] Problem exporting to pdf

2020-11-15 Thread Andrea Giudiceandrea
António Pestana wrote
> I did change the name of the layer (in the layers panel) to ASCII
> characters only but had no luck. In order to solve this problem I had to
> change the name of the four files of the shapefile accordingly.

Hi António, I can confirm also on Windows 7 (italian localization): the
issue is triggered by the name of the shapefile(s), not by the layer name.



Richard Duivenvoorde wrote
> I tried to load the data in the zip you added to your openings post, but I
> cannot even unzip it, because it (linux) says there is an encoding issue
> with the (problem) shapefile...

Hi Richard,
this is a common issue on Linux trying to unpack zip archives created on
Windows. [1]



Richard Duivenvoorde wrote
> I tested by creating a new shapefile named "Todas as Parcelas Áreas" and
> that one works fine.
> So it's not the filename, but probably the faulty encoding (of the
> attributes in the dbf)?

Maybe the reported issue is Windows specific.

It also happens with an empty attribute table. Moreover, if you copy the
working provided shapefile adding a non ASCII char to the copied shapefile
files name, the copied shapefile will not work when exporting the layout to
GeoPDF  including vector feature information.
If you remove the non ASCII char from the not working shapefile file names,
then the issue will not happen.
So it should not be related to the dbf encoding.

Regards.

Andrea


[1] See for instance
https://superuser.com/questions/1321371/proper-encoding-for-file-names-in-zip-archives-created-in-windows-and-unpacked-i



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Thayer Young
 Hi Vladut,
Sorry this happened to you. In case you have not already, to prevent it from 
happening in the future, you might want to change your Autosaver preferences 
(Plugins: Autosaver: auto save current project).
-Thayer


On Sunday, November 15, 2020, 06:56:49 AM EST, 
qgis-user-requ...@lists.osgeo.org  wrote:  
 
 Send Qgis-user mailing list submissions to
    qgis-user@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.osgeo.org/mailman/listinfo/qgis-user
or, via email, send a message with subject or body 'help' to
    qgis-user-requ...@lists.osgeo.org

You can reach the person managing the list at
    qgis-user-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Qgis-user digest..."


Today's Topics:

  1. Loss of data (Vladut Constandoiu)
  2. Re: Loss of data (Hernán De Angelis)
  3. Re: Loss of data (Francesco Pelullo)
  4. Re: Loss of data (Yury)
  5. Re: Loss of data (Andrea Peri)
  6. Re: Problem exporting to pdf (António Pestana)


--

Message: 1
Date: Sun, 15 Nov 2020 10:12:22 +0100
From: Vladut Constandoiu 
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Loss of data
Message-ID:
    
Content-Type: text/plain; charset="utf-8"

Good morning,

My name is Vladut Constandoiu, I'm a university student from Trento, Italy
and I'm using QGis for my master thesis.
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.
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?
Here are three pictures of my work, previously and after the loss of
information.

Before data loss:
[image: image.png]

After data loss + legend of types of area:
[image: image.png]

Attribute panel:
[image: image.png]

I would be enormously grateful to anyone who could help me find a solution
for this mess.

Thank you very much in advance and have a nice day.
Sincerely,
Vladut Constandoiu
-- next part --
An HTML attachment was scrubbed...
URL: 
<http://lists.osgeo.org/pipermail/qgis-user/attachments/20201115/3ff9ad17/attachment-0001.html>

--

Message: 2
Date: Sun, 15 Nov 2020 10:16:52 +0100
From: Hernán De Angelis 
To: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Loss of data
Message-ID: 
Content-Type: text/plain; charset="utf-8"; Format="flowed"

If you made changes to the tables and saved them then there is for me no 
obvious way to recover the information to its previous state.

Unless you had a backup of your original data which is always a good 
thing to have.

Good luck.


On 2020-11-15 10:12, Vladut Constandoiu wrote:
> Good morning,
>
> My name is Vladut Constandoiu, I'm a university student from Trento, 
> Italy and I'm using QGis for my master thesis.
> 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.
> 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?
> Here are three pictures of my work, previously and after the loss of 
> information.
>
> Before data loss:
> image.png
>
> After data loss + legend of types of area:
> image.png
>
> Attribute panel:
> image.png
>
> I would be enormously grateful to anyone who could help me find a 
> solution for this mess.
>
> Thank you very much in advance and have a nice day.
> Sincerely,
> Vladut Constandoiu
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/m

Re: [Qgis-user] Loss of data

2020-11-15 Thread chris hermansen
Pedro and list,

On Sun, Nov 15, 2020, 08:11 Pedro Machado Monteiro <
pedromachadomonte...@gmail.com> wrote:

> Hey Vladut:
>
> If you succeed in recovering the previous *dbf* 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.
>
>
>

Not necessarily a good idea. There could be many elements with the same
area.

If it's the previous DBF why is it necessary to "join" anything - the
record IDs in the shape data and DBF should still connect.

Chris
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Pedro Machado Monteiro
Hey Vladut:

If you succeed in recovering the previous *dbf* 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.


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.

Best regards

Pedro Monteiro












Andrea Peri  escreveu no dia domingo, 15/11/2020 à(s)
11:36:

> Restoring only the dbf will do am error for a shapefile because it is sync
> with shp and shx.
> The retrieve should fo for all three files or nothing.
> The dhx could be recalculate from dbf and shp. But dbf and shp must be
> sync-ed.
>
> A.
>
>
> Il dom 15 nov 2020, 11:37 Yury  ha scritto:
>
>> 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.
>>
>> On Sun, 15 Nov 2020, 10:45 Francesco Pelullo, 
>> wrote:
>>
>>> Ciao Vladut,
>>>
>>> I'm sorry, you have no chanches to recover deleted attributes.
>>>
>>> You need to populate attributes again.
>>>
>>> However, in my mind, this could be not a impossible job.
>>>
>>> SUP (area) attribute is a geometry dependant value, you could calculate
>>> areas again with a simple string in field calculator.
>>>
>>> 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.
>>>
>>> Don't worry, these are common experiences that would drive you to a more
>>> prudent jobs management.
>>>
>>> Also hope you will adopt another file format (.gpkg is great) and leave
>>> shapefiles.
>>>
>>> Ciao
>>> Francesco
>>>
>>>
>>>
>>> Il dom 15 nov 2020, 10:12 Vladut Constandoiu  ha
>>> scritto:
>>>
 Good morning,

 My name is Vladut Constandoiu, I'm a university student from Trento,
 Italy and I'm using QGis for my master thesis.
 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.
 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?
 Here are three pictures of my work, previously and after the loss of
 information.

 Before data loss:
 [image: image.png]

 After data loss + legend of types of area:
 [image: image.png]

 Attribute panel:
 [image: image.png]

 I would be enormously grateful to anyone who could help me find a
 solution for this mess.

 Thank you very much in advance and have a nice day.
 Sincerely,
 Vladut Constandoiu
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
 Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Mike Flannigan


This is a great idea if she is on Windows.
Right click on the folder and select previous versions.
Then just selectively drag and drop files from that
restored folder.

Backups - backups.  At home I have no fewer than
6 backups around me.  Even on the road I have 2 - 3
backups with me at all times.


Mike


On 11/15/20 5:56 AM, qgis-user-requ...@lists.osgeo.org wrote:

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.



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem exporting to pdf

2020-11-15 Thread Richard Duivenvoorde
On 11/15/20 1:07 PM, Richard Duivenvoorde wrote:
> On 11/15/20 12:56 PM, António Pestana wrote:
>> Bom dia Jorge.
>>
>> I don't know what the "layer tree" is... I did change the name of the layer 
>> (in the layers panel) to ASCII characters only but had no luck. In order to 
>> solve this problem I had to change the name of the four files of the 
>> shapefile accordingly.
> 
> 'The layer tree' is the 'Legend' or the 'Layers panel' (often to the left of 
> the map).
> When you load a shapefile the 'name' of the layer you get is... the name of 
> the shapefile. The issue looks like when you create a pdf it cannot hold 
> characters with diacritical's (?) in layernames apparently?
> What you did (renaming the shape) is more or less the same :-) You removed 
> the diacriticals from the layernames...
> 
> Please create an issue if you can, preferebly with a small example dataset. 
> Let us know if this is a problem, then we can do it.

I tried to load the data in the zip you added to your openings post, but I 
cannot even unzip it, because it (linux) says there is an encoding issue with 
the (problem) shapefile...

So maybe it is more a 'data'-encoding problem then a QGIS issue?
I tested by creating a new shapefile named "Todas as Parcelas Áreas" and that 
one works fine.
So it's not the filename, but probably the faulty encoding (of the attributes 
in the dbf)?

I think (others please correct me if I am wrong) that IF you create a new 
shapefile it is best to create it as utf-8 or utf-16?

Regards,

Richard
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem exporting to pdf

2020-11-15 Thread Richard Duivenvoorde
On 11/15/20 12:56 PM, António Pestana wrote:
> Bom dia Jorge.
> 
> I don't know what the "layer tree" is... I did change the name of the layer 
> (in the layers panel) to ASCII characters only but had no luck. In order to 
> solve this problem I had to change the name of the four files of the 
> shapefile accordingly.

'The layer tree' is the 'Legend' or the 'Layers panel' (often to the left of 
the map).
When you load a shapefile the 'name' of the layer you get is... the name of the 
shapefile. The issue looks like when you create a pdf it cannot hold characters 
with diacritical's (?) in layernames apparently?
What you did (renaming the shape) is more or less the same :-) You removed the 
diacriticals from the layernames...

Please create an issue if you can, preferebly with a small example dataset. Let 
us know if this is a problem, then we can do it.

Regards,

Richard Duivenvoorde
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem exporting to pdf

2020-11-15 Thread António Pestana
Bom dia Jorge.

I don't know what the "layer tree" is... I did change the name of the layer
(in the layers panel) to ASCII characters only but had no luck. In order to
solve this problem I had to change the name of the four files of the
shapefile accordingly.

Regards

Jorge Gustavo Rocha  escreveu no dia sábado, 14/11/2020
à(s) 21:21:

> Boa noite António,
>
> Just rename the layer (in QGIS layer tree) from "Todas as Parcelas Áreas"
> to "Todas as Parcelas Areas".
>
> Then you will be able to export the layer :-)
>
> Please file a issue at [1]. Layers with such names should be supported.
>
> Regards,
>
> Jorge Gustavo
>
> [1] https://github.com/qgis/QGIS/issues
> Às 20:32 de 14/11/20, António Pestana escreveu:
>
> I´m using QGIS Desktop 3.16 on W10. My project (see All_Data.zip) has
> only two shapefile layers, one for polygons (Todas as Parcelas Áreas)
> and the other for lines (Todas as Parcelas Linhas). I used a very
> simple layout for exporting my map to one layered geopdf. If I use the
> default export options (see Options_NOT_OK.PNG) export aborts throwing
> the "Could not create print device" error. However if I uncheck the
> "Include Attributes" checkbox of the export options (see
> options_OK.PNG), the export is made and the resulting pdf file looks
> fine Does someone know what is happening?
>
> Regards
>
> António
>
>
> ___
> Qgis-user mailing listqgis-u...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> --
> [image: Logo] 
> *Geomaster*
> *Jorge Gustavo Rocha* | Software Engineer
> *e:* j...@geomaster.pt | *m:* +351 910 333 888
> *g:* 41.54094,-8.40490 | *v: * 510 906 109
> *a: * Rua António Cândido Pinto, 67, 4715-400 Braga
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Andrea Peri
Restoring only the dbf will do am error for a shapefile because it is sync
with shp and shx.
The retrieve should fo for all three files or nothing.
The dhx could be recalculate from dbf and shp. But dbf and shp must be
sync-ed.

A.


Il dom 15 nov 2020, 11:37 Yury  ha scritto:

> 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.
>
> On Sun, 15 Nov 2020, 10:45 Francesco Pelullo,  wrote:
>
>> Ciao Vladut,
>>
>> I'm sorry, you have no chanches to recover deleted attributes.
>>
>> You need to populate attributes again.
>>
>> However, in my mind, this could be not a impossible job.
>>
>> SUP (area) attribute is a geometry dependant value, you could calculate
>> areas again with a simple string in field calculator.
>>
>> 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.
>>
>> Don't worry, these are common experiences that would drive you to a more
>> prudent jobs management.
>>
>> Also hope you will adopt another file format (.gpkg is great) and leave
>> shapefiles.
>>
>> Ciao
>> Francesco
>>
>>
>>
>> Il dom 15 nov 2020, 10:12 Vladut Constandoiu  ha
>> scritto:
>>
>>> Good morning,
>>>
>>> My name is Vladut Constandoiu, I'm a university student from Trento,
>>> Italy and I'm using QGis for my master thesis.
>>> 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.
>>> 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?
>>> Here are three pictures of my work, previously and after the loss of
>>> information.
>>>
>>> Before data loss:
>>> [image: image.png]
>>>
>>> After data loss + legend of types of area:
>>> [image: image.png]
>>>
>>> Attribute panel:
>>> [image: image.png]
>>>
>>> I would be enormously grateful to anyone who could help me find a
>>> solution for this mess.
>>>
>>> Thank you very much in advance and have a nice day.
>>> Sincerely,
>>> Vladut Constandoiu
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Yury
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.

On Sun, 15 Nov 2020, 10:45 Francesco Pelullo,  wrote:

> Ciao Vladut,
>
> I'm sorry, you have no chanches to recover deleted attributes.
>
> You need to populate attributes again.
>
> However, in my mind, this could be not a impossible job.
>
> SUP (area) attribute is a geometry dependant value, you could calculate
> areas again with a simple string in field calculator.
>
> 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.
>
> Don't worry, these are common experiences that would drive you to a more
> prudent jobs management.
>
> Also hope you will adopt another file format (.gpkg is great) and leave
> shapefiles.
>
> Ciao
> Francesco
>
>
>
> Il dom 15 nov 2020, 10:12 Vladut Constandoiu  ha
> scritto:
>
>> Good morning,
>>
>> My name is Vladut Constandoiu, I'm a university student from Trento,
>> Italy and I'm using QGis for my master thesis.
>> 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.
>> 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?
>> Here are three pictures of my work, previously and after the loss of
>> information.
>>
>> Before data loss:
>> [image: image.png]
>>
>> After data loss + legend of types of area:
>> [image: image.png]
>>
>> Attribute panel:
>> [image: image.png]
>>
>> I would be enormously grateful to anyone who could help me find a
>> solution for this mess.
>>
>> Thank you very much in advance and have a nice day.
>> Sincerely,
>> Vladut Constandoiu
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Francesco Pelullo
Ciao Vladut,

I'm sorry, you have no chanches to recover deleted attributes.

You need to populate attributes again.

However, in my mind, this could be not a impossible job.

SUP (area) attribute is a geometry dependant value, you could calculate
areas again with a simple string in field calculator.

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.

Don't worry, these are common experiences that would drive you to a more
prudent jobs management.

Also hope you will adopt another file format (.gpkg is great) and leave
shapefiles.

Ciao
Francesco



Il dom 15 nov 2020, 10:12 Vladut Constandoiu  ha
scritto:

> Good morning,
>
> My name is Vladut Constandoiu, I'm a university student from Trento, Italy
> and I'm using QGis for my master thesis.
> 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.
> 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?
> Here are three pictures of my work, previously and after the loss of
> information.
>
> Before data loss:
> [image: image.png]
>
> After data loss + legend of types of area:
> [image: image.png]
>
> Attribute panel:
> [image: image.png]
>
> I would be enormously grateful to anyone who could help me find a solution
> for this mess.
>
> Thank you very much in advance and have a nice day.
> Sincerely,
> Vladut Constandoiu
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Loss of data

2020-11-15 Thread Hernán De Angelis
If you made changes to the tables and saved them then there is for me no 
obvious way to recover the information to its previous state.


Unless you had a backup of your original data which is always a good 
thing to have.


Good luck.


On 2020-11-15 10:12, Vladut Constandoiu wrote:

Good morning,

My name is Vladut Constandoiu, I'm a university student from Trento, 
Italy and I'm using QGis for my master thesis.
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.
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?
Here are three pictures of my work, previously and after the loss of 
information.


Before data loss:
image.png

After data loss + legend of types of area:
image.png

Attribute panel:
image.png

I would be enormously grateful to anyone who could help me find a 
solution for this mess.


Thank you very much in advance and have a nice day.
Sincerely,
Vladut Constandoiu

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Loss of data

2020-11-15 Thread Vladut Constandoiu
Good morning,

My name is Vladut Constandoiu, I'm a university student from Trento, Italy
and I'm using QGis for my master thesis.
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.
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?
Here are three pictures of my work, previously and after the loss of
information.

Before data loss:
[image: image.png]

After data loss + legend of types of area:
[image: image.png]

Attribute panel:
[image: image.png]

I would be enormously grateful to anyone who could help me find a solution
for this mess.

Thank you very much in advance and have a nice day.
Sincerely,
Vladut Constandoiu
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user