Пример #1
0
 public static string ToWkt(PointSet2 <double> geom)
 {
     if (geom != null)
     {
         StringBuilder sb = new StringBuilder();
         sb.Append("MULTIPOINT(");
         for (uint i = 0; i < geom.VertexCount; i++)
         {
             sb.Append('(');
             sb.Append(geom[i].X);
             sb.Append(' ');
             sb.Append(geom[i].Y);
             sb.Append("),");
         }
         if (geom.VertexCount > 0)
         {
             sb[sb.Length - 1] = ')'; //replace last paren
         }
         else
         {
             sb.Append(')'); //empty case
         }
         return(sb.ToString());
     }
     return(string.Empty);
 }
Пример #2
0
 public PointSet2(PointSet2 <T> other)
 {
     if (other == null)
     {
         throw new ArgumentNullException();
     }
     this.Points = other.Points;
 }
Пример #3
0
 public int CompareTo(PointSet2 <T> other)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public bool Equals(PointSet2 <T> other)
 {
     throw new NotImplementedException();
 }