Expand description
§oxigdal-noalloc
no_std, no_alloc fixed-size geometry primitives for OxiGDAL.
This crate provides zero-allocation geometry types suitable for embedded and RISC-V environments where heap allocation is unavailable or undesirable.
§Types
Point2D— 2D point with distance and midpoint operationsPoint3D— 3D pointBBox2D— 2D axis-aligned bounding boxBBox3D— 3D axis-aligned bounding boxLineSegment2D— 2D line segment with intersection supportTriangle2D— 2D triangle with area, containment, and centroidFixedPolygon— Fixed-capacity polygon backed by an inline arrayFixedLineString— Fixed-capacity polyline backed by an inline arrayFixedRing— Fixed-capacity closed ring with area and containmentCoordTransform— 2D affine transform (2×3 matrix)GeoHashFixed— Geohash encoding stored as[u8; 12]NoAllocError— Error enum for no-alloc operations
§Projections
mercator_forward— Web Mercator (EPSG:3857) forward projectionmercator_inverse— Web Mercator (EPSG:3857) inverse projection
Re-exports§
pub use bbox3d::BBox3D;pub use geohash::GeoHashFixed;pub use linestring::FixedLineString;pub use mercator::mercator_forward;pub use mercator::mercator_inverse;pub use ring::FixedRing;
Modules§
- bbox3d
- 3D axis-aligned bounding box for
no_std,no_allocenvironments. - geohash
- Geohash encoding and decoding for
no_std,no_allocenvironments. - linestring
- Fixed-capacity polyline type for
no_std,no_allocenvironments. - mercator
- Web Mercator (EPSG:3857) forward and inverse projection.
- ring
- Fixed-capacity closed ring type for
no_std,no_allocenvironments.
Structs§
- BBox2D
- A 2-dimensional axis-aligned bounding box.
- Coord
Transform - A 2D affine transformation stored as a 2×3 matrix.
- Fixed
Polygon - A polygon with a statically-allocated vertex array of capacity
N. - Line
Segment2D - A directed 2D line segment from
starttoend. - Point2D
- A 2-dimensional point.
- Point3D
- A 3-dimensional point.
- Triangle2D
- A triangle defined by three 2D vertices.
Enums§
- NoAlloc
Error - Errors that can occur in no-alloc geometry operations.