iso = KmlFactory.createPlacemark();
iso.setTimePrimitive(timeStamp);
lineString = KmlFactory.createLineString();
lineString.setAltitudeMode(AltitudeMode.RELATIVE_TO_GROUND);
coord= new ArrayList<Coordinate>();
Segment s = it1.next();
coord.add(new Coordinate(s.getY1(), s.getX1()));
coord.add(new Coordinate(s.getY2(), s.getX2()));
lineString.setCoordinates(coord);
iso.setGeometry(lineString);
features.add(iso);
}
Iterator<Segment> it2 = d.getIso2().iterator();
while(it2.hasNext()){
iso = KmlFactory.createPlacemark();
iso.setTimePrimitive(timeStamp);
lineString = KmlFactory.createLineString();
lineString.setAltitudeMode(AltitudeMode.RELATIVE_TO_GROUND);
coord= new ArrayList<Coordinate>();
Segment s = it2.next();
coord.add(new Coordinate(s.getY1(), s.getX1()));
coord.add(new Coordinate(s.getY2(), s.getX2()));
lineString.setCoordinates(coord);
iso.setGeometry(lineString);
features.add(iso);
}
Iterator<Segment> it3 = d.getIso3().iterator();
while(it3.hasNext()){
iso = KmlFactory.createPlacemark();
iso.setTimePrimitive(timeStamp);
lineString = KmlFactory.createLineString();
lineString.setAltitudeMode(AltitudeMode.RELATIVE_TO_GROUND);
coord= new ArrayList<Coordinate>();
Segment s = it3.next();
coord.add(new Coordinate(s.getY1(), s.getX1()));
coord.add(new Coordinate(s.getY2(), s.getX2()));
lineString.setCoordinates(coord);
iso.setGeometry(lineString);
features.add(iso);
}