Skip to content
Snippets Groups Projects
Commit c21ce7f5 authored by Rune Åvar Ødegård's avatar Rune Åvar Ødegård
Browse files

gml:id fix in zone geometry

parent 1f7d0bdd
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ class Geometry:
toBeReplaced = "gml:Polygon gml:id=" + '"' + self.name + '">'
numberOfOccurences = self.gml.count(toBeReplaced)
for n in range(1, numberOfOccurences):
for n in range(1, numberOfOccurences+1):
replacer = "gml:Polygon gml:id=" + '"' + self.name + "_" + str(n) + '">'
self.gml = self.gml.replace(toBeReplaced, replacer, 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment