Skip to content

Commit

Permalink
kml.resetidcounter()
Browse files Browse the repository at this point in the history
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?)
  • Loading branch information
endolith committed Oct 23, 2022
1 parent 2233518 commit c4e7372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json2kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
data = json.load(jsonFile)

kml = simplekml.Kml()
kml.resetidcounter()
kml.document.name = outputFile

count = 0
Expand Down

0 comments on commit c4e7372

Please sign in to comment.