Commit 42f82ec6 authored by patrick.lambert's avatar patrick.lambert
Browse files

trim instead of strip

parent c0d107ce
......@@ -389,13 +389,13 @@ public class RIOBasinNetworkWithContinent extends RIOBasinNetwork {
OffshoreBasin offshorebasin = new OffshoreBasin(basin_id, name, OffshoreBasinFunction.valueOf(function));
if (mapOffshoreBasin != null) {
if (mapOffshoreBasin.containsKey(name.strip())) {
if (mapOffshoreBasin.containsKey(name.trim())) {
// offshorebasin.getShape().append(mapInshoreBasin.get(name), true);
offshorebasin.setShape(mapOffshoreBasin.get(name.strip()));
} else {
System.out.println(name + "does not exist in " + offshoreBasinShpFile);
for (String nameMap : mapOffshoreBasin.keySet()) {
System.out.println(name.strip() + ":" + nameMap + "=" + name.strip().equals(nameMap));
System.out.println(name.trim() + ":" + nameMap + "=" + name.trim().equals(nameMap));
}
System.exit(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment