coordinates library

Geographic (longitude-latitude) and projected positions and bounding boxes.

Contains also coordinate reference system (CRS) metadata and projection abstraction classes.

This libary exports a subset of package:geobase/geobase.dart.

Usage: import package:geobase/coordinates.dart

Classes

Aligned
An aligned point within a geospatial box or tile.
Box
A base class for axis-aligned bounding boxes with min & max coordinates.
CoordRefSys
Metadata about a coordinate reference system (CRS) identified and specified by id.
CoordRefSysResolver
An abstract class for resolving coordinate reference system information.
Dms
A default implementation for DmsFormat abstract base class, that defines methods for parsing and formatting degrees/minutes/seconds on latitude, longitude and bearing values.
DmsFormat
A base class for formatters with methods for parsing and formatting degrees/minutes/seconds on latitude, longitude and bearing values.
GeoBox
A geographic bounding box with west, south, east and north values.
Geographic
A geographic position with longitude, latitude and optional elevation and m.
Position
A base class for geospatial positions.
Positionable
A positionable object has (geospatial) coordinate values available.
PositionSeries
A fixed-length (and random-access) view to a series of positions.
ProjBox
A bounding box with minX, minY, maxX and maxY coordinates.
Projected
A projected position with x, y, and optional z and m coordinates.
Scalable
A scalable object at the zoom level (a positive number).
Scalable2i
Scalable x, y coordinates at the zoom level.
TemporalRefSys
Metadata about a temporal coordinate reference system (TRS) identified and specified by id.
TemporalRefSysResolver
An abstract class for resolving temporal coordinate reference system information.

Enums

AxisOrder
The axis order of coordinate values in position and point representations.
CardinalPrecision
The precision for cardinal directions (compass point).
Coords
An enum for coordinate types (by spatial dimension and whether is measured).
DmsType
An enum for common representation of geographic positions by coordinates (using degrees, minutes and seconds as components).
GeoRepresentation
An enum for spatial representations that can be used to code logic when need to choose some options based on a representation.

Mixins

PositionData<E extends Position>
A fixed-length and random-access view to positions with coordinate values.
Projection
A mixin defining an interface for (geospatial) projections.
ProjectionAdapter
A projection adapter bundles forward and inverse projections.

Extensions

CoordinateArrayExtension on List<double>
A helper extension on List<double> to handle coordinate values.
DoubleAngleExtension on double
An extension on double with basic degrees and radians utility methods.
PositionArrayExtension on Iterable<Position>
A helper extension on Iterable<Position>.

Constants

defaultEpsilon → const double
The default epsilon value 1.0e-9 used as a tolerance in equals2D, equals3D and similar methods in this package.
doublePrecisionEpsilon → const double
The maximum relative precision of double numbers (IEEE 754).

Typedefs

CreateBox<T extends Box> = T Function({double? maxM, required double maxX, required double maxY, double? maxZ, double? minM, required double minX, required double minY, double? minZ})
Creates a new bounding box from minX, minY, maxX and maxY values.
CreatePosition<T extends Position> = T Function({double? m, required double x, required double y, double? z})
Creates a new position of T from x and y, and optional z and m.
TransformPosition = T Function<T extends Position>(T source)
A function to transform the source position of T to a position of T.