PositionScheme constructor

const PositionScheme({
  1. required CreatePosition<Position> position,
  2. required CreateBox<Box> box,
})

A position scheme with position and bounding box factories.

Normally you should not need to create an instance of PositionScheme but rather use one of static constant instances available:

  • Position.scheme to create positions and boxes for any position data (geographic, projected or any other)
  • Projected.scheme to create projected positions and boxes
  • Geographic.scheme to create geographic positions and boxes

Implementation

const PositionScheme({
  required CreatePosition position,
  required CreateBox box,
})  : _position = position,
      _box = box;