Codebase list mkgmap / 398783d
Update upstream source from tag 'upstream/0.0.0+svn4907' Update to upstream version '0.0.0+svn4907' with Debian dir 88b730ccf5537d90caca0464c69d1449652b7494 Bas Couwenberg 1 year, 27 days ago
2 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 svn.version: 4906
1 build.timestamp: 2023-03-02T15:47:57+0000
0 svn.version: 4907
1 build.timestamp: 2023-03-06T06:03:09+0000
573573 String h = polyline.getName();
574574 try {
575575 // Convert to feet.
576 int n = Integer.parseInt(h);
577 n *= METERS_TO_FEET;
578 polyline.setName(String.valueOf(n));
576 double m = Double.parseDouble(h);
577 int feet = (int) Math.round(m * METERS_TO_FEET);
578 polyline.setName(Integer.toString(feet));
579579
580580 } catch (NumberFormatException e) {
581 // OK it wasn't a number, leave it alone
581 log.warn(h + " doesn't seem to be a valid elevation value in m" );
582582 }
583583 }
584584 }