Skip to content

Commit

Permalink
refactor(kml): Aggiunta firma metodo Placemark.to_kml
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSavefrogs committed Oct 12, 2023
1 parent e09a927 commit 1a29801
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/veryeasyfatt/app/process_kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pydantic

import kmlb
import xml.etree.ElementTree as ET

import geopy.geocoders
import geopy.location
Expand Down Expand Up @@ -182,9 +183,13 @@ def __ge__(self, o: object) -> bool:

return self.name >= o.name

def to_kml(self):
"""Transforms the object into a KML string."""
placemark = kmlb.point(
def to_kml(self) -> ET.Element:
"""Transforms the object into a KML string.
Returns:
ET.Element: KML element.
"""
placemark: ET.Element = kmlb.point(
name=self.name,
coords=self.coordinates,
hidden=self.hidden,
Expand Down

0 comments on commit 1a29801

Please sign in to comment.