geofileops.listlayers#
- geofileops.listlayers(path: Union[str, PathLike[Any]], only_spatial_layers: bool = True) List[str] #
Get the list of layers in a geofile.
- Parameters:
path (PathLike) – path to the file to get info about
only_spatial_layers (bool, optional) – True to only list spatial layers. False to list all tables.
- Returns:
the list of layers
- Return type:
List[str]