Skip to content

Incorrect zero check when parsing latitude/longitude/altitude #1991

Open

Description

@smathermather

Via this post,

File: opendm/video/srtparser.py
The following condition compares a string to an integer and therefore always evaluates to True:
lambda v: float(v) if v != 0 else None
Suggested fix:

fv = float(v)
return fv if fv != 0 else None

Activity

  1. github-actions commented on Feb 4, 2026

    @github-actions

    Could we move this conversation over to the forum at https://community.opendronemap.org? The forum is the right place to ask questions (we try to keep the GitHub issue tracker for feature requests and bugs only). Thank you!

    p.s. I'm just an automated script, not a human being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions