GeographyPoint class

Represents a geographic point with longitude, latitude, and spatial reference system identifier (SRID) for use with PostGIS.

Implemented types
Available extensions

Constructors

GeographyPoint({required double longitude, required double latitude, int srid = Geography.defaultSrid})
Creates a new GeographyPoint.
const
GeographyPoint.fromBinary(Uint8List bytes)
Creates a GeographyPoint from its EWKB binary representation as returned by PostgreSQL for geography columns.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
latitude → double
Latitude (Y coordinate) in decimal degrees.
final
longitude → double
Longitude (X coordinate) in decimal degrees.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
srid → int
Spatial reference system identifier. Defaults to WGS 84 (EPSG:4326).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEwkt() → String
Returns the EWKT representation for PostGIS, e.g. SRID=4326;POINT(-0.12 51.5).
override
toJson() → String

Available on GeographyPoint, provided by the GeographyPointJsonExtension extension

Returns the EWKT representation as a String.
toString() → String
Returns the EWKT representation accepted by PostGIS for inserts.
override

Operators

operator ==(Object other) → bool
The equality operator.
override