示例#1
0
 /// <summary> Copy constructor (deep)
 ///
 /// </summary>
 /// <param name="data">
 /// </param>
 public GeoTraceData(GeoTraceData data)
 {
     for (GeoPointData p: data.points)
     {
         points.add(new GeoPointData(p));
     }
 }
示例#2
0
        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);
        }