Forum

Author Topic: Project-file gone, but all base-files still present: Can it be restored?  (Read 6501 times)

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Hi everybody
I've just opened my project folder on a very large project, at to my horror i realized that the project-file (PSX) was gone. I don't know what has happened as I haven't worked on this for a while.

All the 78GB of project base-files are there though. Is there any way of restoring the project from these?

Any help would be very much appreciated!

Kind regards
Niels

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #1 on: February 26, 2018, 01:30:08 PM »
Hello Niels,

Do other important files, like project.zip, chunk.zip and frame.zip are present on lower levels of the project.files folders structure?
Best regards,
Alexey Pasumansky,
Agisoft LLC

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #2 on: February 26, 2018, 01:34:57 PM »
Hi Alexey
They seem to be present yes.


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #3 on: February 26, 2018, 01:39:36 PM »
Hello Niels,

You can create the psx file with the same name as .files folder with the following lines in it and try to open the project again:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<document version="1.2.0" path="{projectname}.files/project.zip"/>
Best regards,
Alexey Pasumansky,
Agisoft LLC

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #4 on: February 26, 2018, 01:44:54 PM »
Sorry to ask, but how do I include the lines in the project-file? I rarely use the console in photoscan if that*s the way.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #5 on: February 26, 2018, 01:47:41 PM »
Hello Neils,

Create new text file, copy these to lines to it, save and then rename from txt to psx.
Best regards,
Alexey Pasumansky,
Agisoft LLC

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #6 on: February 26, 2018, 01:53:47 PM »
It says xml syntax error. Too bad, when knowing all of the other project files are still there but cant be directed.

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #7 on: February 26, 2018, 01:56:14 PM »
I missed one ", but now it says: Canøt open file as the path wasn't  found.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #8 on: February 26, 2018, 01:57:45 PM »
Hello Niels,

Does it say that the syntax error is in PSX file (usually more informative information is in Console pane)?

Alternatively, you can create a new project, save it in PSX format and then copy PSX file and rename it according to the .files folder.
Best regards,
Alexey Pasumansky,
Agisoft LLC

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #9 on: February 26, 2018, 02:01:39 PM »
It seems that the project.zip is empty of any information, thus it of course can't open.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #10 on: February 26, 2018, 02:04:49 PM »
Hello Niels,

project.zip contains doc.xml file (always the same name) with the following lines (according to the number of the chunks in the project):

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<document version="1.2.0">
  <chunks next_id="3" active_id="0">
    <chunk id="0" path="0/chunk.zip"/>
    <chunk id="1" path="1/chunk.zip"/>
    <chunk id="2" path="2/chunk.zip"/>
  </chunks>
</document>
"next_id" should be always larger than the bigger id of the available chunks, whereas "active_id" should be one of the available indices.
Best regards,
Alexey Pasumansky,
Agisoft LLC

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #11 on: February 26, 2018, 02:13:47 PM »
It also looks like that, just with the one chunk in the project.

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #12 on: February 26, 2018, 02:16:33 PM »
Regarding the error message, it says: Error: Can't open file: The requested path was not found (3): Data/Præstø_Strandeng/Projektfiler/{100m_total_korr}.files/project.zip

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #13 on: February 26, 2018, 02:20:28 PM »
Hello Niels,

The PSX file should contain exactly the following lines, do not edit the path to the project, it's fine that it is {projectname}:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<document version="1.2.0" path="{projectname}.files/project.zip"/>
Best regards,
Alexey Pasumansky,
Agisoft LLC

SvaneSDU

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: Project-file gone, but all base-files still present: Can it be restored?
« Reply #14 on: February 26, 2018, 02:50:33 PM »
Thank you so much!

I can't stress how important it is that you guys always help so quickly.
This is really why we use Photoscan instead of other software solutions.

I hope that we can provide input/feedback the other way as we use photoscan intensively in the university and will begin teaching using it next year.

Thank you again and have a nice day Alexey!

Regards
Niels