Changeset 29876 in osm for applications
- Timestamp:
- 2013-08-25T20:26:56+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
r29874 r29876 48 48 e1.printStackTrace(); 49 49 } 50 51 getPluginDir(); 50 52 } 51 53 -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/WayPointHelper.java
r29874 r29876 21 21 import java.util.Locale; 22 22 23 import org.openstreetmap.josm.Main; 23 24 import org.openstreetmap.josm.data.gpx.WayPoint; 24 25 … … 41 42 }; 42 43 44 45 43 46 /** 44 47 * The name of the elevation height of a way point. … … 49 52 50 53 private static GeoidCorrectionKind geoidKind = GeoidCorrectionKind.None; 51 54 55 /** The HGT reader instance. */ 56 private static HgtReader hgt = new HgtReader(); 57 52 58 /** 53 59 * Gets the current mode of GEOID correction. … … 217 223 private static double getInternalElevation(WayPoint wpt) { 218 224 if (wpt != null) { 225 // Try to read data from SRTM file 226 // TODO: Option to switch this off 227 double eleHgt = hgt.getElevationFromHgt(wpt.getCoor()); 228 229 if (!Double.isNaN(eleHgt)) { 230 return eleHgt; 231 } 232 219 233 if (!wpt.attr.containsKey(HEIGHT_ATTRIBUTE)) { 220 234 return 0; -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileLayer.java
r29874 r29876 222 222 // plain way point by default 223 223 ElevationWayPointKind kind = ElevationWayPointKind.Plain; 224 System.out.println("Slope: " + slope + "%");225 224 226 225 // check, if we passed an elevation level
Note:
See TracChangeset
for help on using the changeset viewer.