From edcd8b05989850b486d4406d453a0c9ce99cf58f Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Mon, 11 Nov 2024 20:47:45 +0000 Subject: [PATCH] add NetworkLink support and property-based tests for KML --- fastkml/kml.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fastkml/kml.py b/fastkml/kml.py index 9feadbf2..6336cd9c 100644 --- a/fastkml/kml.py +++ b/fastkml/kml.py @@ -45,6 +45,7 @@ from fastkml.containers import Document from fastkml.containers import Folder from fastkml.enums import Verbosity +from fastkml.features import NetworkLink from fastkml.features import Placemark from fastkml.helpers import xml_subelement_list from fastkml.helpers import xml_subelement_list_kwarg @@ -214,8 +215,8 @@ def parse( KML, RegistryItem( ns_ids=("kml",), - classes=(Document, Folder, Placemark, GroundOverlay, PhotoOverlay), - node_name="Document,Folder,Placemark,GroundOverlay,PhotoOverlay", + classes=(Document, Folder, Placemark, GroundOverlay, PhotoOverlay, NetworkLink), + node_name="Document,Folder,Placemark,GroundOverlay,PhotoOverlay,NetworkLink", attr_name="features", get_kwarg=xml_subelement_list_kwarg, set_element=xml_subelement_list,