QGIS API Documentation  3.6.0-Noosa (5873452)
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_analysis.h"
20 #include "qgspointxy.h"
21 #include <QString>
22 #include <QVariant>
23 #include <QVariantMap>
24 
30 class ANALYSIS_EXPORT QgsExifTools
31 {
32  public:
33 
34 #if 0
35  static QVariantMap readTags( const QString &imagePath );
36 #endif
37 
48  static QgsPoint getGeoTag( const QString &imagePath, bool &ok SIP_OUT );
49 
56  {
57  public:
58 
60  : elevation( std::numeric_limits< double >::quiet_NaN() )
61  {
62  }
63 
67  double elevation = 0;
68  };
69 
81  static bool geoTagImage( const QString &imagePath, const QgsPointXY &location, const GeoTagDetails &details = QgsExifTools::GeoTagDetails() );
82 };
83 
84 #endif // QGSEXIFTOOLS_H
A class to represent a 2D point.
Definition: qgspointxy.h:43
Extended image geotag details.
Definition: qgsexiftools.h:55
Point geometry type, with support for z-dimension and m-values.
Definition: qgspoint.h:37
#define SIP_OUT
Definition: qgis_sip.h:51
Contains utilities for working with EXIF tags in images.
Definition: qgsexiftools.h:30