mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-28 00:06:23 -05:00
handle map layer values
These are treated as the file path to the layer.
E.g.
base_file_name(@some_variable_which_is_a_layer)
will return the base file name of the layer's source
20 lines
658 B
Plaintext
20 lines
658 B
Plaintext
{
|
|
"name": "exif",
|
|
"type": "function",
|
|
"groups": ["Files and Paths"],
|
|
"description": "Retrieves exif tag values from an image file.",
|
|
"arguments": [{
|
|
"arg": "path",
|
|
"description": "An image file path or a map layer value. If a map layer layer value is specified then the file source of the layer will be used."
|
|
}, {
|
|
"arg": "tag",
|
|
"optional": true,
|
|
"description": "The tag to return. If empty, a map with all exif tag values will be returned."
|
|
}],
|
|
"examples": [{
|
|
"expression": "exif('/my/photo.jpg','Exif.Image.Orientation')",
|
|
"returns": "0"
|
|
}],
|
|
"tags": ["exif", "retrieves", "tag", "file", "image", "values"]
|
|
}
|