Ticket #23603: 23603.patch
| File 23603.patch, 923 bytes (added by , 2 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java
76 76 } 77 77 78 78 // no HGT, check for elevation data in GPX 79 if (!wpt.attr.containsKey(HEIGHT_ATTRIBUTE)) { 79 // Parse elevation from GPX data 80 String height = wpt.getString(HEIGHT_ATTRIBUTE); 81 if (height == null) { 80 82 // GPX has no elevation data :-( 81 83 return NO_ELEVATION; 82 84 } 83 85 84 // Parse elevation from GPX data85 String height = wpt.getString(ElevationHelper.HEIGHT_ATTRIBUTE);86 86 try { 87 87 return Double.parseDouble(height); 88 88 } catch (NumberFormatException e) {
