src/java/services/WWESoilParams.java
@@ -16,6 +16,7 @@ |
import csip.ServiceException; |
import csip.utils.JSONUtils; |
import java.util.ArrayList; |
+import java.util.Collections; |
import java.util.Iterator; |
import java.util.Map; |
import java.util.Set; |
@@ -34,7 +35,7 @@ |
|
protected JSONObject _callingMetaInfo; |
protected JSONObject _location; |
- private SortedMap<Double, SoilResult> componentOrderList = new TreeMap<Double, SoilResult>(); |
+ private SortedMap<Double, SoilResult> componentOrderList = new TreeMap<>(Collections.reverseOrder()); |
|
public WWESoilParams(JSONObject metaInfo, JSONObject shape, String URI) { |
super(URI); |
@@ -126,7 +127,7 @@ |
soilResult.slope_r = slope_r; |
soilResult.area_pct = JSONUtils.getDoubleParam(componentObject, "area_pct", Double.NaN); |
soilResult.soilName = JSONUtils.getStringParam(componentObject, "compname", "NONE"); |
- soilResult.soilLongName = JSONUtils.getStringParam(componentObject, "comp_long_name", "NONE"); |
+ soilResult.soilLongName = JSONUtils.getStringParam(componentObject, "comp_long_name", "NONE"); |
|
componentOrderList.put(area, soilResult); |
} |
@@ -177,7 +178,6 @@ |
} |
|
public class SoilResult{ |
- |
public double area; |
public String cokey; |
public double length; |
@@ -186,6 +186,6 @@ |
public double waterErosion; |
public double area_pct; |
public String soilName; |
- public String soilLongName; |
+ public String soilLongName; |
} |
} |