GeoPoint3m class

An immutable geographic position with longitude, latitude, elev and m.

Inheritance

Constructors

GeoPoint3m({required double lon, required double lat, double elev = 0.0, double m = 0.0})
A geographic position from lon, lat, elev and m.
const
GeoPoint3m.create({required num x, required num y, num? z, num? m})
A point from parameters compatible with CreatePosition function type.
GeoPoint3m.from(Iterable<num> coords, {int? offset})
A geographic position from coords, given in order: lon, lat, elev, m.
factory
GeoPoint3m.fromText(String text, {Pattern? delimiter})
A point parsed from text with coords given in order: lon, lat, elev, m.
factory
GeoPoint3m.latLonElevM(double lat, double lon, double elev, double m)
A geographic position, coordinates in order lat, lon, elev, m.
const
GeoPoint3m.lonLatElevM(double lon, double lat, double elev, double m)
A geographic position, coordinates in order lon, lat, elev, m.
const
GeoPoint3m.origin()
A geographic position at the origin (0.0, 0.0, 0.0, 0.0).
const
GeoPoint3m.parse(String text, {ParseCoords? parser})
A point parsed from text with coordinates in order: lon, lat, elev, m.
factory

Properties

bounds Bounds<Point<num>>?
The bounds for this object (could be calculated if not explicitely set).
no setterinherited
boundsExplicit Bounds<Point<num>>?
The explicit bounds for this object when available.
no setterinherited
coordinateDimension int
The number of coordinate values (2, 3 or 4).
no setteroverride
dimension int
The topological dimension of this geometry.
no setterinherited
elev double
The elevation (or altitude) coordinate in meters.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
is3D bool
True for 3D positions (with z or elevation coordinate).
no setterinherited
isEmpty bool
True if this geometry is considered empty without data or coordinates.
no setterinherited
isGeographic bool
True for geographic coordinates (with longitude and latitude).
no setterinherited
isMeasured bool
True if a measure value is available (or the m coordinate for a position).
no setteroverride
isNotEmpty bool
True if this geometry is NOT considered empty without data or coordinates.
no setterinherited
lat double
The latitude coordinate.
finalinherited
lon double
The longitude coordinate.
finalinherited
m double
The m ("measure") coordinate value. Returns zero if not available.
final
onePoint Point<num>?
Returns one of points contained by this geometry if it's not empty.
no setterinherited
optElev double?
The elevation (or altitude) coordinate optionally in meters.
no setterinherited
optM double?
The m ("measure") coordinate optionally. Returns null if not available.
no setteroverride
optZ double?
The z coordinate value optionally. Returns null if not available.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spatialDimension int
The number of spatial coordinate values (2 for 2D or 3 for 3D).
no setterinherited
type Coords
The coordinate type.
no setteroverride
typeGeom Geom
The type of this geometry.
no setterinherited
values List<double>
Returns coordinate values of this point as a fixed length list.
no setterinherited
x double
The x coordinate value.
no setterinherited
y double
The y coordinate value.
no setterinherited
z double
The z coordinate value. Returns zero if not available.
no setterinherited

Methods

copyTo<R extends Position>(CreatePosition<R> factory) → R
Copies this position to a new position created by the factory.
inherited
copyWith({num? x, num? y, num? z, num? m}) GeoPoint3m
Copies this point with the compatible type and sets given coordinates.
override
distanceTo(GeoPoint other) double
Distance (in meters) to another geographic point.
inherited
equals2D(Position other, {num? toleranceHoriz}) bool
True if this position equals with other by testing 2D coordinates only.
inherited
equals3D(Position other, {num? toleranceHoriz, num? toleranceVert}) bool
True if this position equals with other by testing 3D coordinates only.
inherited
newFrom(Iterable<num> coords, {int? offset, int? length}) GeoPoint3m
Creates a new point instance of a type compatible with this object.
override
newWith({num x = 0.0, num y = 0.0, num? z, num? m}) GeoPoint3m
Creates a new point instance of a type compatible with this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project<R extends Point<num>>(Projection projection, {required CreatePosition<R> to}) → R
Returns a new point projected from this point using projection.
inherited
toString() String
A string representation of this object.
override
toStringAs({TextWriterFormat<GeometryContent> format = DefaultFormat.geometry, int? decimals}) String
A string representation of this geometry, with format applied.
inherited
transform(TransformPosition transform) GeoPoint3m
Returns a new point transformed from this point using transform.
override
valuesAsString({String delimiter = ',', int? decimals}) String
A string representation of coordinate values separated by delimiter.
inherited
writeTo(SimpleGeometryContent writer) → void
Writes this geometry object to writer.
inherited
writeValues(StringSink buffer, {String delimiter = ',', int? decimals}) → void
Writes coordinate values to buffer separated by delimiter.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int i) double
A coordinate value by the coordinate axis index i.
override

Static Methods

tryParse(String text, {ParseCoords? parser}) GeoPoint3m?
A point parsed from text with coordinates in order: lon, lat, elev, m.
override

Constants

coordinates → const PointFactory<GeoPoint3m>
A PointFactory creating GeoPoint3m instances.