reVeal.fileio.attribute_is_numeric#
- attribute_is_numeric(vector_src, attribute)[source]#
Check that the specified attribute in the input vector dataset is a numeric datatype.
- Parameters:
vector_src (str) – Path to vector dataset.
attribute (str) – Name of attribute.
- Returns:
bool – Returns True if the attribute is numeric, False if not.
- Raises:
IOError – An IOError will be raised if the input dataset is an unknown format (i.e., not readable as either a GeoParquet or ogr-compatible format).
ValueError – A ValueError will be raised if the attribute is not present in the input dataset.