EPUB | CHM | PDF

TPSQLPointField

Top Previous Next

TPSQLPointField encapsulates built-in PostgreSQL point type, the most fundamental type, which forms the basis for all of the other types.

type
  TPSQLPoint = packed record
    X: Double;
    Y: Double;
    class operator Equal(P1: TPSQLPoint; P2: TPSQLPoint): Boolean;
    class operator Implicit(P: TPoint): TPSQLPoint;
  end;
 
  TPSQLPointField = class(TNumericField)
    property AsTPoint: TPoint;
    property Value: TPSQLPoint;
  end;

Description:

Points are the fundamental two-dimensional building block for geometric types. Values of type point are specified by Value property, where X and Y fields are the respective coordinates, as floating-point numbers.