Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14536 closed enhancement (fixed)

[PATCH] Improved ExifReader.readTime(), Refactored ImageEntry.extractExif()

Reported by: holgermappt Owned by: team
Priority: minor Milestone: 17.03
Component: Core image mapping Version: latest
Keywords: exif Cc:

Description

The patch improves ExifReader.readTime() and moves code from ImageEntry.extractExif() to ExifReader.

ExifReader.readTime():

  • Use the right SUBSECOND depending on the EXIF tag that was used for the date.

Code refactoring:

  • Use the metadata structure to extract EXIF data instead of parsing the image file multiple times.
  • Speed and elevation extraction moved to ExifReader.
  • Added unit tests for speed and elevation extraction.

Smaller image file for ticket 14209.

Attachments (3)

GeoImageLayer_ExifReader_refactoring.patch (14.6 KB ) - added by holgermappt 8 years ago.
Patch file.
exif-example_speed_ele.jpg (515 bytes ) - added by holgermappt 8 years ago.
Image file with speed and elevation data.
7VWFOryj--.1.jpg (670 bytes ) - added by holgermappt 8 years ago.
Smaller image file with same issue for ticket #14209.

Download all attachments as: .zip

Change History (6)

by holgermappt, 8 years ago

Patch file.

by holgermappt, 8 years ago

Attachment: exif-example_speed_ele.jpg added

Image file with speed and elevation data.

by holgermappt, 8 years ago

Attachment: 7VWFOryj--.1.jpg added

Smaller image file with same issue for ticket #14209.

comment:1 by Don-vip, 8 years ago

Keywords: exif added
Milestone: 17.03

comment:2 by Don-vip, 8 years ago

Resolution: fixed
Status: newclosed

In 11745/josm:

fix #14536 - Improved ExifReader.readTime(), Refactored ImageEntry.extractExif() (patch by holgermappt)

comment:3 by Don-vip, 8 years ago

thanks! :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.