Forum

Author Topic: Export to KML format  (Read 633 times)

jstroup

  • Newbie
  • *
  • Posts: 4
    • View Profile
Export to KML format
« on: March 04, 2025, 02:33:08 AM »
Hello -

I have a small project.  I have an orthomosaic that I want to export as a KML format file.

The help says I can do this, by choosing the orthomosaic, selecting export, selecting a coordinate system, and then doing the export.

In my version of Metashape, I don't get the option to choose the coordinate system.  And perhaps because of that, the only choice I have is to export in a KMZ format.  I need KML.

Is there a way to do this?

Thank you - Joe Stroup

dpitman

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
Re: Export to KML format
« Reply #1 on: March 04, 2025, 03:33:51 AM »
I don't think a .kml or .kmz file is workable unless it is in wgs84.  Even though MS will export to .kmz with a specified CS, the file itself seems to be corrupt.  Why do you specifically need a .kml ?

jstroup

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Export to KML format
« Reply #2 on: March 04, 2025, 01:47:45 PM »
Thank you for your reply.

My client needs a KML file because he has other software that only accepts that format.

I had read about the requirement of WSG84 - but I thought that requirement was met by the geotags from the jpegs captured by his drone.

I tried using an online utility that converts KMZ to KML files, and it produced about a dozen small KML files.  When loaded into Google Earth, it depicts squares in the proper geolocation but with big red "x"s over the squares.

I'm not well informed about KML and KMZ format files.  So I may be missing something obvious and simple to someone who is well informed. 

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15366
    • View Profile
Re: Export to KML format
« Reply #3 on: March 04, 2025, 04:44:41 PM »
Hello jstroup,

After exporting orthomosaic to KMZ you can unpack it as .zip archive to get doc.kml file and associated image files representing tiles of the orthomosaic. Then point to that doc.kml in Google Earth open dialog.
Best regards,
Alexey Pasumansky,
Agisoft LLC