All links to kml 56/13556/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Tue, 8 Oct 2024 16:50:23 +0000 (18:50 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Tue, 8 Oct 2024 16:50:23 +0000 (18:50 +0200)
- use generic method 'toKml' for folder, placemark, point, and line representation
- fix GeoLocation type issue

Issue-ID: OAM-395
Change-Id: I0ed2e75bf32955e489fb55889c1beab26bb7b073
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/network_generation/model/python/o_ran_du.py

index dd51f53..8dca087 100644 (file)
@@ -95,11 +95,7 @@ class ORanDu(ORanNode):
         return result
 
     def toKml(self) -> ET.Element:
-        o_ran_du: ET.Element = ET.Element("Folder")
-        open: ET.Element = ET.SubElement(o_ran_du, "open")
-        open.text = "1"
-        name: ET.Element = ET.SubElement(o_ran_du, "name")
-        name.text = self.name
+        o_ran_du = super().toKml()
         # for tower in self.towers:
         #     o_ran_du.append(tower.toKml())
         return o_ran_du