Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature][expression] Add exif() and exif_geotag() functions to the Q…
…GIS expression engine (#44081)
- Loading branch information
Showing
5 changed files
with
97 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"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."}, | ||
{"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"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "exif_geotag", | ||
"type": "function", | ||
"groups": ["GeometryGroup"], | ||
"description": "Creates a point geometry from the exif geotags of an image file.", | ||
"arguments": [ | ||
{"arg":"path","description":"An image file path."} | ||
], | ||
"examples": [ | ||
{ "expression":"geom_to_wkt(exif_geotag('/my/photo.jpg'))", "returns":"'Point (2 4)'"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters