spatio-types
Core spatial and temporal data types for the Spatio database.
This crate provides fundamental types for working with spatio-temporal data:
- Point types:
TemporalPoint,TemporalPoint3D,Point3d - Polygon types:
Polygon3D,PolygonDynamic,PolygonDynamic3D - Trajectory types:
Trajectory,Trajectory3D - Bounding box types:
BoundingBox2D,BoundingBox3D,TemporalBoundingBox2D,TemporalBoundingBox3D
All types are serializable with Serde and built on top of the geo crate's
geometric primitives.
Examples
use TemporalPoint;
use BoundingBox2D;
use Point;
use SystemTime;
// Create a temporal point
let point = new; // NYC coordinates
let temporal_point = new;
// Create a bounding box
let manhattan = new;
assert!;