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