if(!regs.isEmpty()){
if(!r.higherThan(regs.get(regs.size()-1))){
System.err.println((int)r.low+" not higher than "+ (int)regs.get(regs.size()-1).high);
throw new Landscape2DException();
}
Region lr= regs.get(regs.size()-1);
if(r.low== lr.high+1){
if(((Double)lr.attr).equals( (Double)r.attr)){
try{
Region nr= new Region(lr.low, r.high);
nr.attr= lr.attr;
regs.set(regs.size()-1, nr);
}catch(RegionException re){}
}else{
regs.add(r);