[mkgmap-dev] Change Coord.toString() to return degrees instead of map units
From Gerd Petermann GPetermann_muenchen at hotmail.com on Sat May 22 07:33:45 BST 2021
Hi devs, I think almost nobody needs the Garmin lat/lon coordinates in log or debug messages, the degrees are much easier to use. This is esp. true for debugging, so I want to change Coord.toString() to return the same result as Coord.toDegreeString(). The attached patch changes this and simplifies the code where possible. One unit test requires the garmin units, and the messages about boundary nodes in LineClipper are probably better understandable with garmin units. Unfortunately I have no easy way to find out where Coord.toString() is called implicitly when Object.ToString() is called, so maybe there are more places where .toGarminString() should be added. Any objections/hints/better ideas? The display tool uses toDegreesString(). I think it never uses Coord.toString() implicitly. Gerd -------------- next part -------------- A non-text attachment was scrubbed... Name: todegrees.patch Type: application/octet-stream Size: 24683 bytes Desc: todegrees.patch URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20210522/d43905c3/attachment-0001.obj>
- Previous message: [mkgmap-dev] Similar Arcs
- Next message: [mkgmap-dev] Change Coord.toString() to return degrees instead of map units
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list