coordinates library
Projected and geographic coordinates, and basic transforms.
This library exports also all classes of package:geocore/base.dart
.
Usage: import package:geocore/coordinates.dart
Classes
- Bounded
-
A base interface for classes that know their
bounds
. -
BoundedSeries<
E extends Bounded> -
A base interface for a series (list) of bounded items of type
E
. -
Bounds<
T extends Point< num> > - A base interface for bounds (aka a bounding box in 2D).
-
BoundsBase<
T extends Point< num> > - An immutable bounds with min and max points for limits.
- Box
- A base interface for axis-aligned bounding boxes with min & max coordinates.
-
CastingPointFactory<
T extends Point< num> > -
A PointFactory that casts points created by
_wrapped
to the typeT
. -
CoordinateFactory<
T extends Bounded> -
An interface to create Bounded instances of the type
T
. -
GeoBounds<
T extends GeoPoint> - An immutable geographic bounds with min and max points for limits.
- Geometry
- A base interface for geometry classes.
- GeoPoint
- A geographic position with longitude, latitude and optional elevation.
- GeoPoint2
- An immutable geographic position with longitude and latitude.
- GeoPoint2m
- An immutable geographic position with longitude, latitude and m (measure).
- GeoPoint3
- An immutable geographic position with longitude, latitude and elevation.
- GeoPoint3m
- An immutable geographic position with longitude, latitude, elev and m.
-
GeoPointWrapper<
T extends GeoPoint> - A geographic position with wrapping a GeoPoint instance.
-
Point<
C extends num> -
Point
is a read-only position with x, y, z and m coordinates. - Point2
- An immutable point with X and Y as num values.
- Point2i
- An immutable point with X and Y as integer values.
- Point2m
- An immutable point with X, Y and M as num values.
- Point3
- An immutable point with X, Y and Z as num values.
- Point3i
- An immutable point with X, Y and Z as integer values.
- Point3m
- An immutable point with X, Y, Z and M as num values.
-
PointFactory<
T extends Point< num> > -
An interface to create Point instances of the type
T
. -
PointSeries<
E extends Point< num> > - A base interface for a series of points with getters to access point items.
-
PointWrapper<
T extends Point< C> , C extends num> - A point with getters to access the wrapped point.
- Position
- A base interface for geospatial positions.
-
ProjectedPoint<
C extends num> - A read-only projected (or cartesian) point with x, y, z and m.
Enums
- Coords
- An enum for coordinate types (by spatial dimension and whether is measured).
Mixins
-
PointSeriesMixin<
E extends Point< num> > - A partial implementation of PointSeries as a mixin.
- Projection
- A mixin defining an interface for (geospatial) projections.
Functions
-
rotatePosition2D(
num radians, {num? cx, num? cy}) → TransformPosition -
Returns a function to rotate positions by the
radians
around the origin. -
scalePosition<
C extends num> ({C? sx, C? sy, C? sz, C? sm}) → TransformPosition - Returns a function to scale positions by scale factors for each axis.
-
scalePositionBy<
C extends num> (C scale) → TransformPosition -
Returns a function to scale positions by the
scale
factor. -
translatePosition<
C extends num> ({C? dx, C? dy, C? dz, C? dm}) → TransformPosition - Returns a function to translate positions by delta values of each axis.
Typedefs
-
CreatePosition<
T extends Position> = T Function({num? m, required num x, required num y, num? z}) -
Creates a new position of
T
fromx
andy
, and optionalz
andm
. -
ParseCoords
= Iterable<
num> Function(String text) -
A function to parse coordinate values from
text
. -
ParseCoordsInt
= Iterable<
int> Function(String text) -
A function to parse coordinate values as integers from
text
. -
ParseCoordsList
= Iterable<
Iterable< Function(String text)num> > -
A function to parse a list of coordinate values from
text
. -
ParseCoordsListList
= Iterable<
Iterable< Function(String text)Iterable< >num> > -
A function to parse a list of a list of coordinate values from
text
. -
ParseCoordsListListList
= Iterable<
Iterable< Function(String text)Iterable< >Iterable< >num> > -
A function to parse a list of a list of a list of coordinates from
text
. -
TransformPosition
= T Function<
T extends Position>(T source) -
A function to transform the
source
position ofT
to a position ofT
.