Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
05c75c1f
Commit
05c75c1f
authored
Jan 30, 2017
by
Don Gagne
Committed by
GitHub
Jan 30, 2017
Browse files
Merge pull request #4460 from wingtra/feature/increasedGeotagAccuracy
Increase accuracy of geotags
parents
855bd8a3
1ccdcacb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AnalyzeView/ExifParser.cc
View file @
05c75c1f
...
...
@@ -178,17 +178,17 @@ bool ExifParser::write(QByteArray &buf, QGeoCoordinate coordinate)
// Filling up the additional information that does not fit into the fields
gpsData
.
readable
.
extendedData
.
gpsLat
[
0
]
=
abs
(
static_cast
<
int
>
(
coordinate
.
latitude
()));
gpsData
.
readable
.
extendedData
.
gpsLat
[
1
]
=
1
;
gpsData
.
readable
.
extendedData
.
gpsLat
[
2
]
=
static_cast
<
int
>
((
fabs
(
coordinate
.
latitude
())
-
floor
(
fabs
(
coordinate
.
latitude
())))
*
60
000
.0
);
gpsData
.
readable
.
extendedData
.
gpsLat
[
3
]
=
1
000
;
gpsData
.
readable
.
extendedData
.
gpsLat
[
4
]
=
0
;
gpsData
.
readable
.
extendedData
.
gpsLat
[
5
]
=
1
;
gpsData
.
readable
.
extendedData
.
gpsLat
[
2
]
=
static_cast
<
int
>
((
fabs
(
coordinate
.
latitude
())
-
floor
(
fabs
(
coordinate
.
latitude
())))
*
60.0
);
gpsData
.
readable
.
extendedData
.
gpsLat
[
3
]
=
1
;
gpsData
.
readable
.
extendedData
.
gpsLat
[
4
]
=
static_cast
<
int
>
((
fabs
(
coordinate
.
latitude
())
*
60.0
-
floor
(
fabs
(
coordinate
.
latitude
())
*
60.0
))
*
60000.0
)
;
gpsData
.
readable
.
extendedData
.
gpsLat
[
5
]
=
1
000
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
0
]
=
abs
(
static_cast
<
int
>
(
coordinate
.
longitude
()));
gpsData
.
readable
.
extendedData
.
gpsLon
[
1
]
=
1
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
2
]
=
static_cast
<
int
>
((
fabs
(
coordinate
.
longitude
())
-
floor
(
fabs
(
coordinate
.
longitude
())))
*
60
000
.0
);
gpsData
.
readable
.
extendedData
.
gpsLon
[
3
]
=
1
000
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
4
]
=
0
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
5
]
=
1
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
2
]
=
static_cast
<
int
>
((
fabs
(
coordinate
.
longitude
())
-
floor
(
fabs
(
coordinate
.
longitude
())))
*
60.0
);
gpsData
.
readable
.
extendedData
.
gpsLon
[
3
]
=
1
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
4
]
=
static_cast
<
int
>
((
fabs
(
coordinate
.
longitude
())
*
60.0
-
floor
(
fabs
(
coordinate
.
longitude
())
*
60.0
))
*
60000.0
)
;
gpsData
.
readable
.
extendedData
.
gpsLon
[
5
]
=
1
000
;
gpsData
.
readable
.
extendedData
.
gpsAlt
[
0
]
=
coordinate
.
altitude
()
*
100
;
gpsData
.
readable
.
extendedData
.
gpsAlt
[
1
]
=
100
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment