-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into extendMapTool
- Loading branch information
Showing
191 changed files
with
2,267 additions
and
230 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
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,22 @@ | ||
# Find EXIV2 | ||
# ~~~~~~~~~~ | ||
# CMake module to search for EXIV2 library | ||
# | ||
# If it's found it sets EXIV2_FOUND to TRUE | ||
# and following variables are set: | ||
# EXIV2_INCLUDE_DIR | ||
# EXIV2_LIBRARY | ||
# | ||
|
||
|
||
FIND_PATH(EXIV2_INCLUDE_DIR exiv2/exiv2.hpp /usr/local/include /usr/include) | ||
FIND_LIBRARY(EXIV2_LIBRARY NAMES exiv2 PATHS /usr/local/lib /usr/lib) | ||
|
||
IF (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY) | ||
SET(EXIV2_FOUND TRUE) | ||
MESSAGE(STATUS "Found exiv2: ${EXIV2_LIBRARY}") | ||
ELSE (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY) | ||
MESSAGE(EXIV2_INCLUDE_DIR=${EXIV2_INCLUDE_DIR}) | ||
MESSAGE(EXIV2_LIBRARY=${EXIV2_LIBRARY}) | ||
MESSAGE(FATAL_ERROR "Could not find exiv2") | ||
ENDIF (EXIV2_INCLUDE_DIR AND EXIV2_LIBRARY) |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/analysis/raster/qgsexiftools.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsExifTools | ||
{ | ||
%Docstring | ||
Contains utilities for working with EXIF tags in images. | ||
|
||
.. versionadded:: 3.6 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsexiftools.h" | ||
%End | ||
public: | ||
|
||
|
||
static QgsPoint getGeoTag( const QString &imagePath, bool &ok /Out/ ); | ||
%Docstring | ||
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. | ||
|
||
.. seealso:: :py:func:`geoTagImage` | ||
%End | ||
|
||
class GeoTagDetails | ||
{ | ||
%Docstring | ||
Extended image geotag details. | ||
|
||
.. versionadded:: 3.6 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsexiftools.h" | ||
%End | ||
public: | ||
|
||
GeoTagDetails(); | ||
|
||
double elevation; | ||
}; | ||
|
||
static bool geoTagImage( const QString &imagePath, const QgsPointXY &location, const GeoTagDetails &details = QgsExifTools::GeoTagDetails() ); | ||
%Docstring | ||
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. | ||
|
||
.. seealso:: :py:func:`getGeoTag` | ||
%End | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/analysis/raster/qgsexiftools.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |