QGIS API Documentation
3.43.0-Master (c67cf405802)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
e
f
g
h
i
l
n
o
p
q
r
s
t
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
raster
qgsexiftools.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgisexiftools.h
3
---------------
4
Date : November 2018
5
Copyright : (C) 2018 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSEXIFTOOLS_H
17
#define QGSEXIFTOOLS_H
18
19
#include "qgis_core.h"
20
#include "
qgspointxy.h
"
21
22
#include <QObject>
23
#include <QString>
24
#include <QVariant>
25
#include <QVariantMap>
26
32
class
CORE_EXPORT
QgsExifTools
33
{
34
Q_GADGET
35
36
public
:
37
42
static
QVariantMap readTags(
const
QString &imagePath );
43
48
static
QVariant readTag(
const
QString &imagePath,
const
QString &key );
49
60
static
QgsPoint
getGeoTag(
const
QString &imagePath,
bool
&ok
SIP_OUT
);
61
67
Q_INVOKABLE
static
bool
hasGeoTag(
const
QString &imagePath );
68
74
class
GeoTagDetails
75
{
76
public
:
77
78
GeoTagDetails
()
79
: elevation( std::numeric_limits< double >::quiet_NaN() )
80
{
81
}
78
GeoTagDetails
() {
…
}
82
86
double
elevation = 0;
87
};
74
class
GeoTagDetails
{
…
};
88
100
static
bool
geoTagImage(
const
QString &imagePath,
const
QgsPointXY
&location,
const
GeoTagDetails
&details =
QgsExifTools::GeoTagDetails
() );
101
110
static
bool
tagImage(
const
QString &imagePath,
const
QString &tag,
const
QVariant &value );
111
112
};
32
class
CORE_EXPORT
QgsExifTools
{
…
};
113
114
#endif
// QGSEXIFTOOLS_H
QgsExifTools::GeoTagDetails
Extended image geotag details.
Definition
qgsexiftools.h:75
QgsExifTools::GeoTagDetails::GeoTagDetails
GeoTagDetails()
Definition
qgsexiftools.h:78
QgsExifTools
Contains utilities for working with EXIF tags in images.
Definition
qgsexiftools.h:33
QgsPointXY
Represents a 2D point.
Definition
qgspointxy.h:60
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition
qgspoint.h:49
SIP_OUT
#define SIP_OUT
Definition
qgis_sip.h:58
qgspointxy.h
Generated on Tue Apr 8 2025 15:57:40 for QGIS API Documentation by
1.9.8