pycql.parser¶
-
pycql.parser.
parse
(cql, geometry_factory=<class 'pycql.values.Geometry'>, bbox_factory=<class 'pycql.values.BBox'>, time_factory=<class 'pycql.values.Time'>, duration_factory=<class 'pycql.values.Duration'>)¶ Parses the passed CQL to its AST interpretation.
Parameters: - cql (str) – the CQL expression string to parse
- geometry_factory – the geometry parsing function: it shall parse the given WKT geometry string the relevant type
- bbox_factory – the bbox parsing function: it shall parse the given BBox tuple the relevant type.
- time_factory – the timestamp parsing function: it shall parse the given ISO8601 timestamp string tuple the relevant type.
- duration_factory – the duration parsing function: it shall parse the given ISO8601 furation string tuple the relevant type.
Returns: the parsed CQL expression as an AST
Return type: