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

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

index efcc1e2..214e6e1 100644 (file)
@@ -110,11 +110,7 @@ class Tower(ORanNode):
         return self._o_ran_rus
 
     def toKml(self) -> ET.Element:
-        tower: ET.Element = ET.Element("Folder")
-        open: ET.Element = ET.SubElement(tower, "open")
-        open.text = "1"
-        name: ET.Element = ET.SubElement(tower, "name")
-        name.text = self.name
+        tower = super().toKml()
         for o_ran_ru in self.o_ran_rus:
             tower.append(o_ran_ru.toKml())
         return tower