geofileops.update_column#
- geofileops.update_column(path: Union[str, PathLike[Any]], name: str, expression: str, layer: Optional[str] = None, where: Optional[str] = None)#
Update a column from a layer of the geofile.
- Parameters:
path (PathLike) – Path to the geofile
name (str) – Name for the new column
expression (str) – SQLite expression to use to update the value.
layer (str, optional) – The layer name. If None and the geofile has only one layer, that layer is used. Defaults to None.
where (str, optional) – SQL where clause to restrict the rows that will be updated. Defaults to None.
- Raises:
ValueError – an invalid parameter value was passed.