geofileops.get_layerstyles#
- geofileops.get_layerstyles(path: Path, layer: Optional[str] = None, name: Optional[str] = None) DataFrame #
Get the layer styles saved in the geofile.
Only styles saved according to the QGIS Geopackage styling extension are read: pka/qgpkg
- Parameters:
path (Path) – path to the geofile.
layer (str, optional) – the layer to get the styles for. If None, all styles regardless of the layer they belong to are returned. Defaults to None.
name (str, optional) – the name of the style to get. If None, all styles regardless of their name are returned. Defaults to None.
- Returns:
the styles found.
- Return type:
pd.DataFrame