Exemple #1
0
 /// <summary>
 /// Point.
 /// </summary>
 internal static String ToPoint(NpgsqlNativeTypeInfo TypeInfo, Object NativeData, Boolean ForExtendedQuery)
 {
     if (NativeData is NpgsqlPoint)
     {
         NpgsqlPoint P = (NpgsqlPoint)NativeData;
         return(String.Format(CultureInfo.InvariantCulture, "({0},{1})", P.X, P.Y));
     }
     else
     {
         throw new InvalidCastException("Unable to cast data to NpgsqlPoint type");
     }
 }
Exemple #2
0
 public NpgsqlLSeg(NpgsqlPoint start, NpgsqlPoint end)
 {
     Start = start;
     End   = end;
 }
Exemple #3
0
 public NpgsqlCircle(NpgsqlPoint center, Double radius)
 {
     Center = center;
     Radius = radius;
 }
Exemple #4
0
 public NpgsqlBox(NpgsqlPoint upperRight, NpgsqlPoint lowerLeft)
 {
     _upperRight = upperRight;
     _lowerLeft  = lowerLeft;
 }