Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel committed Oct 3, 2023
1 parent 4f63522 commit bafd913
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ Fields
:members:
:show-inheritance:

.. automodule:: pydov.types.ligging
:members:

Search utilities
----------------
Expand Down
5 changes: 4 additions & 1 deletion pydov/types/ligging.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# -*- coding: utf-8 -*-
"""Module containing generic fields for the location (ligging) of objects."""

import numpy as np

from pydov.types.fields import _CustomXmlField


class MvMtawField(_CustomXmlField):
"""Field for retrieving the mv_mtaw value from the height of the point in
relavant cases."""
relevant cases."""

def __init__(self, definition):
"""Initialise a MvMtawField (mv_mtaw) with given definition.
Expand Down
2 changes: 2 additions & 0 deletions pydov/util/owsutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def set_geometry_column(location, geometry_column):

def unique_gml_ids(location):
"""Make sure the location query has unique GML id's for all features.
Parameters
----------
location : etree.ElementTree
Expand All @@ -343,6 +344,7 @@ def unique_gml_ids(location):
-------
etree.ElementTree
XML tree of the location filter with unique GML ids.
"""
gml_items = location.findall('.//*[@{http://www.opengis.net/gml/3.2}id]')
gml_ids = [i.get('{http://www.opengis.net/gml/3.2}id') for i in gml_items]
Expand Down

0 comments on commit bafd913

Please sign in to comment.