Skip to content

Module pygeofilter_aeronet.evaluator

Variables

AERONET_DATA_TYPES
SUPPORTED_VALUES
TRUE_VALUE_LIST

Functions

to_aeronet_api

def to_aeronet_api(
    cql2_filter: Union[str, Mapping[str, Any]]
) -> Tuple[str, Mapping[str, Any]]

Classes

AeronetEvaluator

class AeronetEvaluator(
    attribute_map: Mapping[str, str],
    function_map: Optional[Mapping[str, str]] = None
)

Base class for AST evaluators.

Ancestors (in MRO)

  • pygeofilter.backends.evaluator.Evaluator

Class variables

handler_map

Methods

adopt

def adopt(
    self,
    node,
    *sub_args
)

Interface function for a last resort when trying to evaluate a node

and no handler was found.

adopt_result

def adopt_result(
    self,
    result: Any
) -> Any

Interface function for adopting the final evaluation result

if necessary. Default is no-op.

attribute

def attribute(
    self,
    node: pygeofilter.ast.Attribute
)

combination

def combination(
    self,
    node,
    lhs,
    rhs
)

equal

def equal(
    self,
    node,
    lhs,
    rhs
)

evaluate

def evaluate(
    self,
    node: Union[ForwardRef('Node'), pygeofilter.values.Geometry, pygeofilter.values.Envelope, datetime.date, datetime.datetime, datetime.timedelta, pygeofilter.values.Interval, bool, float, int, str, list],
    adopt_result: bool = True
) -> Any

Recursive function to evaluate an abstract syntax tree.

For every node in the walked syntax tree, its registered handler is called with the node as first parameter and all pre-evaluated child nodes as star-arguments. When no handler was found for a given node, the adopt function is called with the node and its arguments, which by default raises an NotImplementedError.

geometry

def geometry(
    self,
    node: pygeofilter.values.Geometry
)

geometry_intersects

def geometry_intersects(
    self,
    node,
    lhs,
    rhs
)

literal

def literal(
    self,
    node
)

timeAfter

def timeAfter(
    self,
    node,
    lhs,
    rhs
)

timeBefore

def timeBefore(
    self,
    node,
    lhs,
    rhs
)