[
https://issues.apache.org/jira/browse/TIKA-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095107#comment-18095107
]
ASF GitHub Bot commented on TIKA-4781:
--------------------------------------
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.
> Map EXIF GPS altitude to the existing geo:alt property
> ------------------------------------------------------
>
> Key: TIKA-4781
> URL: https://issues.apache.org/jira/browse/TIKA-4781
> Project: Tika
> Issue Type: Improvement
> Reporter: Dominik Schmidt
> Priority: Major
>
> 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 (TAG_ALTITUDE / TAG_ALTITUDE_REF).
> Consumers currently only get the raw string ("GPS:GPS Altitude" = "227.4
> metres").
> The altitude should be set as a signed value honoring the altitude ref
> (below sea level = negative), analogous to TIKA-4425, which added the
> normalized GPS timestamp from the same GpsDirectory. See also TIKA-2861
> for the corresponding ISO 6709 altitude handling in MP4/QuickTime.
>
> Willing to work on this!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)