GeographyLineString class

Represents a geographic line string (sequence of points) for use with PostGIS.

Implemented types
Available extensions

Constructors

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

Properties

hashCode → int
The hash code for this object.
no setteroverride
points → List<GeographyPoint>
Ordered list of points that make up the line.
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 GeographyLineString, provided by the GeographyLineStringJsonExtension extension

Returns the EWKT representation as a String.
toString() → String
A string representation of this object.
override

Operators

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