public static KmlDocument createKmlEarthquakes(ArrayList eqs) { KmlDocument kmlDoc = new KmlDocument("Selected Earthquake" + (eqs.Count > 1 ? "s" : (": " + ((Earthquake)eqs[0]).NameDisplayed)), 1); KmlFolder earthquakesFolder = kmlDoc.CreateFolder("Earthquakes"); foreach (Earthquake eq in eqs) { KmlEarthquake kEq = new KmlEarthquake(earthquakesFolder, eq); } kmlDoc.CreateAbout(); return(kmlDoc); }
public static KmlDocument createKmlAreaWithObjects(ArrayList wpts, ArrayList eqs, ArrayList trks) { KmlDocument kmlDoc = new KmlDocument("Selected Area", 1); if (wpts.Count > 0) { KmlFolder waypointsFolder = kmlDoc.CreateFolder("Waypoints"); foreach (Waypoint wpt in wpts) { KmlWaypoint kWpt = new KmlWaypoint(waypointsFolder, wpt); } } if (eqs.Count > 0) { KmlFolder earthquakesFolder = kmlDoc.CreateFolder("Earthquakes"); foreach (Earthquake eq in eqs) { KmlEarthquake kEq = new KmlEarthquake(earthquakesFolder, eq); } } if (trks.Count > 0) { KmlFolder tracksFolder = kmlDoc.CreateFolder("Tracks"); foreach (Track trk in trks) { KmlTrack kTrack = new KmlTrack(tracksFolder, trk); } } kmlDoc.CreateAbout(); return(kmlDoc); }
public static KmlDocument createKmlAreaWithObjects(ArrayList wpts, ArrayList eqs, ArrayList trks) { KmlDocument kmlDoc = new KmlDocument("Selected Area", 1); if(wpts.Count > 0) { KmlFolder waypointsFolder = kmlDoc.CreateFolder("Waypoints"); foreach(Waypoint wpt in wpts) { KmlWaypoint kWpt = new KmlWaypoint(waypointsFolder, wpt); } } if(eqs.Count > 0) { KmlFolder earthquakesFolder = kmlDoc.CreateFolder("Earthquakes"); foreach(Earthquake eq in eqs) { KmlEarthquake kEq = new KmlEarthquake(earthquakesFolder, eq); } } if(trks.Count > 0) { KmlFolder tracksFolder = kmlDoc.CreateFolder("Tracks"); foreach(Track trk in trks) { KmlTrack kTrack = new KmlTrack(tracksFolder, trk); } } kmlDoc.CreateAbout(); return kmlDoc; }
public static KmlDocument createKmlEarthquakes(ArrayList eqs) { KmlDocument kmlDoc = new KmlDocument("Selected Earthquake" + (eqs.Count > 1 ? "s" : (": " + ((Earthquake)eqs[0]).NameDisplayed)), 1); KmlFolder earthquakesFolder = kmlDoc.CreateFolder("Earthquakes"); foreach(Earthquake eq in eqs) { KmlEarthquake kEq = new KmlEarthquake(earthquakesFolder, eq); } kmlDoc.CreateAbout(); return kmlDoc; }