All links to kml 54/13554/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Tue, 8 Oct 2024 16:50:04 +0000 (18:50 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Tue, 8 Oct 2024 16:50:04 +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: I8464d2da2f11323a8650d1f70651d0f1b3b66911
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/network_generation/model/python/o_ran_ru.py

index 5d88401..71b0b3c 100644 (file)
@@ -161,14 +161,14 @@ class ORanRu(ORanNode):
         return result
 
     def toKml(self) -> ET.Element:
-        o_ran_ru: ET.Element = ET.Element("Folder")
-        open: ET.Element = ET.SubElement(o_ran_ru, "open")
-        open.text = "1"
-        name: ET.Element = ET.SubElement(o_ran_ru, "name")
-        name.text = self.name
+        # The O-RU 'creates' the O-DUs
+        # therefore the O-RU returns is "wrapper" too
+        o_ran_du = self.oRanDu.toKml()
+        o_ran_ru = super().toKml()
         for cell in self.cells:
             o_ran_ru.append(cell.toKml())
-        return o_ran_ru
+        o_ran_du.append(o_ran_ru)
+        return o_ran_du     
 
     def toSvg(self) -> ET.Element:
         return ET.Element("to-be-implemented")