Search code examples
c#kmz

How to create KMZ file on C#


How can I create .kmz ( google earth file format ) ? I will use the C#. There is information about .KML everywhere. I did not find anywhere. I can use excel.

thank you for your help. best wishes.


Solution

  • According to the Wikipedia article, KMZ files are simple Xml files in a ZIP container.

    You should be able to use the regular XmlWriter included in .NET's base class library to write the KML document, then wrap it in a ZIP file either with .NET's no-board methods or with a 3rd party library.

    A reference for the Xml-based KML format is linked to in the Wikipedia article.