Forum

Author Topic: exportMarkers fails  (Read 2603 times)

forumname

  • Newbie
  • *
  • Posts: 36
    • View Profile
exportMarkers fails
« on: December 18, 2023, 11:23:29 PM »
Code: [Select]
chunk.exportMarkers(file_name)

fails with

Code: [Select]
RuntimeError: Unsupported markers format

but the expected marker format is undocumented.

Metashape 2.0.*

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15067
    • View Profile
Re: exportMarkers fails
« Reply #1 on: December 19, 2023, 01:46:56 PM »
Hello forumname,

What file extension you are using for the markers export command, when the unsupported format message appears?

Only following formats are supported for the markers export in the current version: Agisoft XML, DXF, SHP, KML.

If you need to export txt/csv file with the coordinate information, you should use exportReference command with items=Metashape.ReferenceItemsMarkers argument.
« Last Edit: December 19, 2023, 02:11:07 PM by Alexey Pasumansky »
Best regards,
Alexey Pasumansky,
Agisoft LLC

forumname

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: exportMarkers fails
« Reply #2 on: December 19, 2023, 11:40:18 PM »
Thanks, Alexey. It would be helpful to have an export class argument like the other export* functions, for example Metashape.MarkersFormatXML. I could not tell from the API what are the accepted formats.