Opened 4 years ago

Closed 4 years ago

#387 closed enhancement (fixed)

Add parsing for more GPS formats

Reported by: DirkHH Owned by: tcanabrava
Priority: minor Component: Qt-UI
Version: 4.0 Keywords:
Cc: Plattform (please give specifics in the ticket text): All

Description

google format, like: 52.344831,18.293489.
or full minute/second format: N52° 20' 41.3916", E18° 17' 36.5604"

Change History (1)

comment:1 Changed 4 years ago by Dirk Hohndel <dirk@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 9405895285f90932bee9db439fe6a13234f65395/subsurface:

Improve GPS string handling

This adds support for two more GPS coordinate formats and also fixes a
couple of issues with the previous implementation.

We used to only support full degrees and decimal minutes. We now also
support fully decimal and degrees, minutes and decimal seconds.

The previous implementation would color the input field red if either it
couldn't parse the string, or if it was able to parse it but it was the
same as the previous location. That's misleading.

The previous implementation also changed all gps coordinates to the new
coordinates in a multi-dive edit - instead of just changing the ones that
are the same as the master dive.

Fixes #387

Signed-off-by: Dirk Hohndel <dirk@…>

Note: See TracTickets for help on using tickets.