dschmidt opened a new pull request, #2941: URL: https://github.com/apache/tika/pull/2941
JIRA: https://issues.apache.org/jira/browse/TIKA-4781 `ImageMetadataExtractor`'s `GeotagHandler` maps latitude, longitude and the GPS timestamp from the EXIF `GpsDirectory`, but not the altitude, although tika-core defines `Geographic.ALTITUDE` ("geo:alt") and metadata-extractor exposes the value in the same directory. Consumers currently only get the raw description string (`GPS:GPS Altitude = "227.4 metres"`). This sets `geo:alt` as a signed value honoring `GPSAltitudeRef` (1 = below sea level = negative), formatted with the same `DecimalFormat` as latitude and longitude. Analogous to TIKA-4425, which added the normalized GPS timestamp from the same directory; see TIKA-2861 for the corresponding ISO 6709 altitude handling on the MP4/QuickTime side. Testing: handler-level tests cover the above and below sea level cases; the existing `IMG_1034.heic` fixture already carries an altitude (42.810337 m), so `HeifParserTest` now asserts the mapping end to end. No fixtures added or modified. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
