Displaying differences for changeset |
@@ -44,8 +44,10 @@ public class Population extends ArrayList<Household> { |
if (x <= GE.FractionOfHouseholdData) { |
line = line.replaceAll("\\s", ""); |
String[] splitline = line.split(","); |
- Integer X = Integer.parseInt(splitline[0]); |
- Integer Y = Integer.parseInt(splitline[1]); |
+ Double Xd = Double.parseDouble(splitline[0]); |
+ Integer X = Xd.intValue(); |
+ Double Yd = Double.parseDouble(splitline[1]); |
+ Integer Y = Yd.intValue(); |
// Integer id = Integer.parseInt(splitline[2]); |
Integer id = 70000000 + householdID; |
householdID = householdID + 1; |