revrt.utilities.handlers.num_feats_in_gpkg#

num_feats_in_gpkg(filename)[source]#

Lightweight func to get number of features in GeoPackage file

This function does not load the entire GeoPackage into memory. Instead, it queries the internal SQLite database to get the number of features.

Parameters:

filename (path-like) – Path to GeoPackage file.

Returns:

int – Number of features in the GeoPackage file.