24.2.1. Miscellaneous

24.2.1.1. Dataset Identification

Reports the name of GDAL drivers that can open files contained in a folder, with optional additional details, and write the result into an output vector layer.

Attention

Running this algorithm requires QGIS installed with GDAL >= 3.13.0 (see Help ► About menu).

Parameters

Label

Name

Type

Description

Input folder

INPUT

[folder]

Folder containing datasets to identify.

Perform recursive exploration of the input folder

RECURSIVE

[boolean]

Default: True

If checked, the algorithm will scan subfolders recursively to identify datasets in the entire directory tree.

Add details about identified datasets in the output

DETAILS

[boolean]

Default: True

If checked, additional details about each identified dataset will be added to the output vector layer.

Output file

OUTPUT

[vector: any]

Default: [Save to temporary file]

Specification of the output vector layer. One of:

  • Save to a Temporary File

  • Save to File…

Outputs

Label

Name

Type

Description

Output file

OUTPUT

[vector: any]

Vector layer containing the identification fields:

  • filename: name of the file.

  • driver: name of the GDAL driver that can open the file.

  • Additional fields if the Add details about identified datasets in the output option is checked:

    • layout: specifies the internal layout of the dataset, indicating how and where the different components of a TIFF file are stored. Currently, the only supported value (when set) is COG (Cloud Optimized GeoTIFF).

    • file_list: side-car files (files that store extra data) associated with the dataset.

    • has_crs: whether the dataset has a coordinate reference system defined.

    • has_geotransform: whether the dataset defines a geotransform that maps image (pixel–line) coordinates to georeferenced coordinates (projected or geographic coordinates).

    • has_overview: whether the dataset has overview.

Python code

Algorithm ID: gdal:dataset_identify

import processing
processing.run("algorithm_id", {parameter_dictionary})

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.