From c4e737250eea98ecc5f27087b0fdbcef5b002d99 Mon Sep 17 00:00:00 2001 From: endolith Date: Sun, 23 Oct 2022 13:09:49 -0400 Subject: [PATCH] kml.resetidcounter() Each new file was continuing the sequence from the last one (The Document ID is not affected, though. Still need to completely restart interpreter to make that repeatable from one KML to the next?) --- json2kml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/json2kml.py b/json2kml.py index 34d7963..6bb672c 100644 --- a/json2kml.py +++ b/json2kml.py @@ -27,6 +27,7 @@ data = json.load(jsonFile) kml = simplekml.Kml() +kml.resetidcounter() kml.document.name = outputFile count = 0