This project has moved and is read-only. For the latest updates, please go here.

Saving kml from kmz

Oct 16, 2012 at 1:54 PM

Hello,

if I load a kml-file from a kmz-file like

KmlFile kml = KmlFile.LoadFromKmz(kmzFile)

and save this kml-file with

kml.Save(fileName)

i got a prefix (kml:) in every tag of the resulted kml-file. How can I avoid this behaviour?

Thanks in advance

Rainer

Oct 17, 2012 at 9:31 PM

It shouldn't matter where the KML came from - KmlFile shouldn't save every element with a kml tag.

Have you had a look at the Kml file it's extracting from the kmz archive? A kmz archive is just a zip archive so you can either open it with an application like 7zip or change the extension to .zip and it will open with your operating system. Check the kml file inside and verify that the namespace is http://www.opengis.net/kml/2.2.

If you have difficulties (and you can share the archive) then please can you create a work item and attach the archive to it so I can take a look?

Thanks,
Sam