Coverage for brodata / frd.py: 86%
7 statements
« prev ^ index » next coverage.py v7.14.0, created at 2026-05-13 12:57 +0000
« prev ^ index » next coverage.py v7.14.0, created at 2026-05-13 12:57 +0000
1import logging
3from . import bro
5logger = logging.getLogger(__name__)
8class FormationResistanceDossier(bro.FileOrUrl):
9 """Class to represent a Formation Resistance Dossier (FRD) from the BRO."""
11 _rest_url = "https://publiek.broservices.nl/gm/frd/v1"
13 def _read_contents(self, tree):
14 raise (NotImplementedError("FormationResistanceDossier not available yet"))
15 ns = {
16 "brocom": "http://www.broservices.nl/xsd/brocommon/3.0",
17 "gml": "http://www.opengis.net/gml/3.2",
18 "frdcom": "http://www.broservices.nl/xsd/frdcommon/1.0",
19 "xmlns": "http://www.broservices.nl/xsd/dsfrd/1.0",
20 }
21 frd = self._get_main_object(tree, "FRD_O", ns)
22 for key in frd.attrib:
23 setattr(self, key.split("}", 1)[1], frd.attrib[key])
24 for child in frd:
25 key = self._get_tag(child)
26 if len(child) == 0:
27 setattr(self, key, child.text)
28 else:
29 self._warn_unknown_tag(key)