QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Contains utilities for working with EXIF tags in images. More...
#include <qgsexiftools.h>
Classes | |
class | GeoTagDetails |
Extended image geotag details. More... | |
Static Public Member Functions | |
static bool | geoTagImage (const QString &imagePath, const QgsPointXY &location, const GeoTagDetails &details=QgsExifTools::GeoTagDetails()) |
Writes geotags to the image at imagePath. | |
static QgsPoint | getGeoTag (const QString &imagePath, bool &ok) |
Returns the geotagged coordinate stored in the image at imagePath. | |
static Q_INVOKABLE bool | hasGeoTag (const QString &imagePath) |
Returns true if the image at imagePath contains a valid geotag. | |
static QVariant | readTag (const QString &imagePath, const QString &key) |
Returns the value of of an exif tag key stored in the image at imagePath. | |
static QVariantMap | readTags (const QString &imagePath) |
Returns a map object containing all exif tags stored in the image at imagePath. | |
static bool | tagImage (const QString &imagePath, const QString &tag, const QVariant &value) |
Writes a tag to the image at imagePath. | |
Contains utilities for working with EXIF tags in images.
Definition at line 32 of file qgsexiftools.h.
|
static |
Writes geotags to the image at imagePath.
The location argument indicates the GPS location to write to the image, as a WGS84 latitude/longitude coordinate.
If desired, extended GPS tags (such as elevation) can be specified via the details argument.
Returns true
if writing was successful.
Definition at line 446 of file qgsexiftools.cpp.
|
static |
Returns the geotagged coordinate stored in the image at imagePath.
If a geotag was found, ok will be set to true
.
If the image contains an elevation tag then the returned point will contain the elevation as a z value.
Definition at line 378 of file qgsexiftools.cpp.
|
static |
Returns true
if the image at imagePath contains a valid geotag.
Definition at line 371 of file qgsexiftools.cpp.
|
static |
Returns the value of of an exif tag key stored in the image at imagePath.
Definition at line 288 of file qgsexiftools.cpp.
|
static |
Returns a map object containing all exif tags stored in the image at imagePath.
Definition at line 328 of file qgsexiftools.cpp.
|
static |
Writes a tag to the image at imagePath.
imagePath | the image path |
tag | the exif tag name |
value | the exif tag value |
true
if writing was successful. Definition at line 479 of file qgsexiftools.cpp.