Revision: 5870 http://sourceforge.net/p/jump-pilot/code/5870 Author: ma15569 Date: 2018-06-09 14:37:21 +0000 (Sat, 09 Jun 2018) Log Message: ----------- Correct mean slope to degree
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileUtils.java Modified: core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileUtils.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileUtils.java 2018-06-09 09:23:22 UTC (rev 5869) +++ core/trunk/src/org/openjump/core/ui/plugin/raster/ProfileUtils.java 2018-06-09 14:37:21 UTC (rev 5870) @@ -263,7 +263,7 @@ final DecimalFormat df = (DecimalFormat) NumberFormat .getNumberInstance(locale); df.applyPattern(pattern); - slope = (Math.atan((max - min) / width) * 100); + slope = Math.toDegrees(Math.atan((max - min) / width)); cellsize = (rLayer.getWholeImageEnvelope().getMaxX() - rLayer .getWholeImageEnvelope().getMinX()) / rLayer.getOrigImageWidth(); @@ -280,7 +280,7 @@ htmlString += "<b><font face=\"" + darkLabelFont + "\">" + HEIGHT + ": </b>" + df.format(height) + "<br>"; htmlString += "<b><font face=\"" + darkLabelFont + "\">" + MEAN_SLOPE - + ": </b>" + df.format(slope) + "%<br>"; + + ": </b>" + df.format(slope) + "\xB0<br>"; htmlString += "<b><font face=\"" + darkLabelFont + "\">" + STARTING_POINT + ": </b>" + df.format(xmin) + " - " + df.format(ymin) + "<br>"; ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel