/// <summary> Copy constructor (deep) /// /// </summary> /// <param name="data"> /// </param> public GeoTraceData(GeoTraceData data) { for (GeoPointData p: data.points) { points.add(new GeoPointData(p)); } }
public virtual GeoTraceData cast(UncastData data) { System.String[] parts = data.value_Renamed.split(";"); // silly... GeoPointData t = new GeoPointData(); GeoTraceData d = new GeoTraceData(); for (String part: parts) { // allow for arbitrary surrounding whitespace d.points.add(t.cast(new UncastData(part.trim()))); } return(d); }