Coords enum
An enum for coordinate types (by spatial dimension and whether is measured).
Values
- xy → const Coords
-
2D coordinates as projected (x, y) or geographic (lon, lat).
const Coords(coordinateDimension: 2, spatialDimension: 2, is3D: false, isMeasured: false, wkbId: 0, wktSpecifier: null, indexForZ: null, indexForM: null) - xyz → const Coords
-
3D coordinates as projected (x, y, z) or geographic (lon, lat, elev).
const Coords(coordinateDimension: 3, spatialDimension: 3, is3D: true, isMeasured: false, wkbId: 1000, wktSpecifier: 'Z', indexForZ: 2, indexForM: null) - xym → const Coords
-
2D measured coordinates as projected (x, y, m) or geographic (lon, lat, m).
const Coords(coordinateDimension: 3, spatialDimension: 2, is3D: false, isMeasured: true, wkbId: 2000, wktSpecifier: 'M', indexForZ: null, indexForM: 2) - xyzm → const Coords
-
3D measured coordinates as projected (x, y, z, m) or geographic (lon, lat, elev, m).
const Coords(coordinateDimension: 4, spatialDimension: 3, is3D: true, isMeasured: true, wkbId: 3000, wktSpecifier: 'ZM', indexForZ: 2, indexForM: 3)
Properties
- coordinateDimension → int
-
The number of coordinate values (2, 3 or 4).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- indexForM → int?
-
The index for an optional M coordinate in a sequence of coordinates.
final
- indexForZ → int?
-
The index for an optional Z coordinate in a sequence of coordinates.
final
- is3D → bool
-
True if coordinates represents a 3D position (with z or elev coordinate).
final
- isMeasured → bool
-
True if coordinates represents a measured position with m coordinate.
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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).
final
- wkbId → int
-
The WKB type for coordinates, ie.
1000for coordinates with Z.final - wktSpecifier → String?
-
An optional WKT specifier for coordinates, ie.
Z,MorZM.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDimension(
int coordinateDimension, {bool xyzForDim3 = true}) → Coords -
Resolves the coordinate type from
coordinateDimension. -
fromWkbId(
int id) → Coords -
Selects a Coords enum based on the WKB type
id. -
select(
{required bool is3D, required bool isMeasured}) → Coords -
Selects a Coords enum based on
is3DandisMeasured.