Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

parse3Rat2 returns NaN rather than error or 0.0 #7

@ehalpern

Description

@ehalpern

I've encountered several photos that have an exif LatLong entry (encoded as rationals) where one or both of the coordinates have numerator == denominator == 0. In this case exif.LatLong() returns NaN for the offending point(s).

If would be helpful if this case were handled more directly. Perhaps you could return an error in any case where the denominator is 0. Additionally, you could interpret any rational with a 0 numerator as 0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions