-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
Feature description
Filtering data sources is one of the most common preprocessing tasks when working with large sets of files. With the ability to filter directly from gdal vsi, that all goes away.
Typically, you may get a list of files with something like:
gdal vsi list -R --abs /vsis3/bucket/path
You would save that result or parse it on the fly with grep, sed, awk, perl, etc. If you could specify regex in the requested path, you could skip the preprocessing entirely. Something like:
gdal vsi list -R --abs /vsis3/bucket/[regex]/path/dir-[regex]/file_[regex]
Everything between [] or some other delimiters, would be filtered.
Also, having vsi as an input source of one or more files to pipeline, stack or mosaic, with the ability of regex would be incredibly useful.
Thanks!
Additional context
No response