Skip to content

gdal vsi regex (PCRE) filtering #13603

@PostholerCom

Description

@PostholerCom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions