- use generic method 'toKml' for folder, placemark, point, and line representation
- fix GeoLocation type issue
Issue-ID: OAM-395
Change-Id: Ic127eb6563d377fd1fb9d523c033dc68dbadb5c7
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
ORanCu(
{
"name": name,
- "geoLocation": newGeo,
+ "geoLocation": GeoLocation(newGeo),
"position": hex,
"layout": self.layout,
"parent": self,
return result
def toKml(self) -> ET.Element:
- ric: ET.Element = ET.Element("Folder")
- open: ET.Element = ET.SubElement(ric, "open")
- open.text = "1"
- name: ET.Element = ET.SubElement(ric, "name")
- name.text = self.name
+ ric = super().toKml()
for o_ran_cu in self.o_ran_cus:
ric.append(o_ran_cu.toKml())
return ric