Optionaltype: GeometryTypeOptionalsrid: numberOptionaloptions: { type?: GeometryType; srid?: number }OptionaltypeThe geography type (POINT, LINESTRING, POLYGON, etc.)
OptionalsridSRID (Spatial Reference System Identifier) Default is 4326 (WGS 84) Only 4326 (WGS84) is officially supported by PostGIS for geography
Compare this DataType with another DataType for equality
The DataType to compare with
true if the types are equal, false otherwise
Serialize a value for storage based on this DataType
The value to serialize
The serialized value
Get the geography type in uppercase
Get the SRID (defaults to 4326 for WGS84)
Optionaldialect: string
Geography - for geographic/spatial data (uses WGS84 coordinate system) Unlike GEOMETRY, GEOGRAPHY performs calculations using spherical geography
Example