Sometimes I need to count number of features in GDAL data and keep track of those numbers so I wrote this.
- Count number of features in a Dataset.
- Save Counts into csv files if wanted (redirection).
- Compare counts between Datasets or Counts.
Print help:
countme -h
Count features in GDAL compatible vector data
Usage: countme [SRC]...
Arguments:
[SRC]... Path to data sources (see GDAL drivers documentation)
Options:
-h, --help Print help (see more with '--help')
Then there are two possibilities:
- Count features in a dataset
countme my_dataset
where my_dataset is the path to a GDAL supported data (see GDAL drivers documentation).
- Compare counts between Dataset or previous Counts saved as
csv
files.
countme my_dataset1 my_count.csv
or
countme my_count1.csv my_count2.csv