features_count
Count features in a vector layer, with optional QGIS expression filter for matching results.
Instructions
Count features on a vector layer, optionally matching a QGIS expression.
Without a filter this reads the provider's feature count directly (fast,
no scan, same as project_list_layers); with a filter it scans and
counts matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes | ||
| filter_expression | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||