base library

Base classes for geospatial geometries objects.

Spatial classes include coordinates, points, bounds, point series, and transform and projection abstractions.

Exports also Coords, Position, TransformPosition, CreatePosition, Box and Projection from package:geobase/coordinates.dart.

Usage: import package:geocore/base.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 type T.
CoordinateFactory<T extends Bounded>
An interface to create Bounded instances of the type T.
Geometry
A base interface for geometry classes.
Point<C extends num>
Point is a read-only position with x, y, z and m coordinates.
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.

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.

Typedefs

CreatePosition<T extends Position> = T Function({num? m, required num x, required num y, num? z})
Creates a new position of T from x and y, and optional z and m.
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<num>> Function(String text)
A function to parse a list of coordinate values from text.
ParseCoordsListList = Iterable<Iterable<Iterable<num>>> Function(String text)
A function to parse a list of a list of coordinate values from text.
ParseCoordsListListList = Iterable<Iterable<Iterable<Iterable<num>>>> Function(String text)
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 of T to a position of T.