Point class

Class represengin a position.

Inheritance

Constructors

Point.geography(num? latitude, num? longitude, [num? altitude])
(lat, long) position.
const
Point.geometry(num? x, num? y, [num? z])
(x, y) position.
const

Properties

altitude num?
The position's altitude.
final
coordinates List<num>
Coordinates pair, either (x, y) or (long, lat).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isGeographic bool
true iif latitude and longitude are non-null.
no setter
isGeometry bool
true iif x and y are non-null.
no setter
latitude num?
The position's latitude.
final
longitude num?
The position's longitude.
final
paths Iterable<Iterable<Point>>
The shape's sets of points.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DataType
The shape's data type that will be serialized as the type GeoJSON field.
final
x num?
The position's X coordinate.
final
y num?
The position's Y coordinate.
final
z num?
The position's Z coordinate. Returns the altitude (which may be null) if the position is geometrical, null otherwise.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGeoJson() Map<String, dynamic>
Serializes to GeoJSON.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON object (GeoJson).
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromGeoJson(Map geoJson, GeospatialConfig config) Point
Hydrates a new Point instance using the JSON data in geoJson.
override
loadGeographyCoords(Iterable coords) Point
loadGeometryCoords(Iterable coords) Point