[mkgmap-dev] question regarding length
From GerdP gpetermann_muenchen at hotmail.com on Thu Oct 3 12:11:48 BST 2013
Hi Steve, in mkgmap.jar (RouteArc) we use private static int convertMeters(double l) { // XXX: really a constant factor? // this factor derived by looking at a variety // of arcs in an IMG of Berlin; 1/4 of // what used to be here double factor = 3.28 / 16; return (int) (l * factor); } In the display tool we use // length should be in units of 16 feet item.addText("length %d (%dm)", len, (int)(len * 16 / 3.25)); I guess it should always be either 3.28 or 3.25? On the other hand, if the length is somehow related to the unit foot, why do I not see something like 0.3048? Gerd -- View this message in context: http://gis.19327.n5.nabble.com/question-regarding-length-tp5779909.html Sent from the Mkgmap Development mailing list archive at Nabble.com.
- Previous message: [mkgmap-dev] Commit: r2724: Make sure that remove-short-arcs with no argument is evaluated with the default value (5.0)
- Next message: [mkgmap-dev] question regarding length
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list