[Marble-bugs] [marble] [Bug 347536] New: UTM needs lon *and* lat to obtain its correct values. ToString functions only receive one of them.

Alejandro GarcĂ­a Montoro alejandro.garciamontoro at gmail.com
Sun May 10 23:57:48 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=347536

            Bug ID: 347536
           Summary: UTM needs lon *and* lat to obtain its correct values.
                    ToString functions only receive one of them.
           Product: marble
           Version: unspecified
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: marble-bugs at kde.org
          Reporter: alejandro.garciamontoro at gmail.com

Public static functions lonToString() and latToString() from
GeoDataCoordinates.cpp receive only longitude or latitude values, respectively.
UTM functions need both values to obtain any of its components: zone, latitude
band, easting or northing.
Hence, a refactoring is needed in order to cope with the different coordinate
systems used.

Reproducible: Always

Steps to Reproduce:
This can be done in any non-standard zones and with any module/plugin that uses
lonToString or latTostring. The problem showed now is just an example (in
Bergen and making use of the MarbleWidgetPopupMenu):

1. Add a bookmark in Bergen, southwest Norway (or in any other non-standard
zone).
2. Click on the created bookmark.

Actual Results:  
The zone displayed is 31

Expected Results:  
The zone displayed should be 32

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list