/// <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"); } }
public NpgsqlLSeg(NpgsqlPoint start, NpgsqlPoint end) { Start = start; End = end; }
public NpgsqlCircle(NpgsqlPoint center, Double radius) { Center = center; Radius = radius; }
public NpgsqlBox(NpgsqlPoint upperRight, NpgsqlPoint lowerLeft) { _upperRight = upperRight; _lowerLeft = lowerLeft; }