Skip to content

Commit 79b3b00

Browse files
authored
Merge pull request #6661 from radarhere/gps
2 parents 0a4c6ab + eccf9e8 commit 79b3b00

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

src/PIL/TiffTags.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,39 @@ def lookup(tag, group=None):
232232
41730: ("CFAPattern", UNDEFINED, 1),
233233
},
234234
# GPSInfoIFD
235-
34853: {},
235+
34853: {
236+
0: ("GPSVersionID", BYTE, 4),
237+
1: ("GPSLatitudeRef", ASCII, 2),
238+
2: ("GPSLatitude", RATIONAL, 3),
239+
3: ("GPSLongitudeRef", ASCII, 2),
240+
4: ("GPSLongitude", RATIONAL, 3),
241+
5: ("GPSAltitudeRef", BYTE, 1),
242+
6: ("GPSAltitude", RATIONAL, 1),
243+
7: ("GPSTimeStamp", RATIONAL, 3),
244+
8: ("GPSSatellites", ASCII, 0),
245+
9: ("GPSStatus", ASCII, 2),
246+
10: ("GPSMeasureMode", ASCII, 2),
247+
11: ("GPSDOP", RATIONAL, 1),
248+
12: ("GPSSpeedRef", ASCII, 2),
249+
13: ("GPSSpeed", RATIONAL, 1),
250+
14: ("GPSTrackRef", ASCII, 2),
251+
15: ("GPSTrack", RATIONAL, 1),
252+
16: ("GPSImgDirectionRef", ASCII, 2),
253+
17: ("GPSImgDirection", RATIONAL, 1),
254+
18: ("GPSMapDatum", ASCII, 0),
255+
19: ("GPSDestLatitudeRef", ASCII, 2),
256+
20: ("GPSDestLatitude", RATIONAL, 3),
257+
21: ("GPSDestLongitudeRef", ASCII, 2),
258+
22: ("GPSDestLongitude", RATIONAL, 3),
259+
23: ("GPSDestBearingRef", ASCII, 2),
260+
24: ("GPSDestBearing", RATIONAL, 1),
261+
25: ("GPSDestDistanceRef", ASCII, 2),
262+
26: ("GPSDestDistance", RATIONAL, 1),
263+
27: ("GPSProcessingMethod", UNDEFINED, 0),
264+
28: ("GPSAreaInformation", UNDEFINED, 0),
265+
29: ("GPSDateStamp", ASCII, 11),
266+
30: ("GPSDifferential", SHORT, 1),
267+
},
236268
# InteroperabilityIFD
237269
40965: {1: ("InteropIndex", ASCII, 1), 2: ("InteropVersion", UNDEFINED, 1)},
238270
}

0 commit comments

Comments
 (0)