gisserver.parsers.values module¶
Parsing of scalar values in the request.
- gisserver.parsers.values.auto_cast(value: str)¶
Automatically cast a value to a scalar.
This recognizes integers, floats and ISO datetimes. Booleans are not handled, as that leads to unpredictable behavior (as seen in Yaml for example).
- gisserver.parsers.values.fix_type_name(type_name: str, feature_namespace: str)¶
Fix the XML namespace for a typename value.
When the default namespace points to the “wfs” or “gml” namespaces, parsing the QName of the type value will resolve that element as existing there. This will correct such error, and restore the feature-type namespace.
- gisserver.parsers.values.parse_bool(raw_value: str)¶
Translate XML notations of true/1 and false/0 into a boolean.
- gisserver.parsers.values.parse_iso_date(raw_value: str) date¶
Translate ISO date into a Python date value.
- gisserver.parsers.values.parse_iso_datetime(raw_value: str) datetime¶
Translate ISO datetimes into a Python datetime value.