Forum

Author Topic: importDEM python error  (Read 2906 times)

Phogi

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
importDEM python error
« on: October 25, 2016, 10:01:42 AM »
Hi everyone,

I'm new to using Python scripting for PhotoScan, and I found in the manual there is an "importDem" function. I have a geotiff DEM, but when I use the command chunk.importDem('path.tif'), I will get

Finished processing in 0 sec (exit code 0)
and False

Then Error: Empty frame path. I searched this error and tried to use doc.save before this step, but still can't import the DEM file.

Can anyone help me with this problem?

Thanks a lot.

Best regards,

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: importDEM python error
« Reply #1 on: October 25, 2016, 10:23:33 AM »
Hello Phogi,

"Empty frame path" error usually indicates that you need to save the project in PSX format before building DEM/Orthomosaic and importing DEM.

Best regards,
Alexey Pasumansky,
Agisoft LLC