raster_tools.count_layer_features#
- raster_tools.count_layer_features(path, layer)[source]#
Count the number of features in a layer of a vector source file.
- Parameters
path (str) – The path to a vector source file.
layer (str, int) – The layer to count features from. Can be the 0-based index or a string.
- Returns
The number of features.
- Return type
int