Sign in

    moon_strtree

    STR-packed 2D, 3D and 4D spatial indexes with geometry and trajectory extensions for MoonBit

    spatial-index
    strtree
    rtree
    geometry
    gis
    bounding-box
    Download zip
    Author
    Version
    0.2.1
    License
    Apache-2.0
    Last updated
    15 hours ago
    Downloads
    6

    #MoonSTRtree

    The maintained module guide is README.md. API declarations are generated by moon info.

    Box3D

    Re-export canonical geometry types without allocation or conversion wrappers.

    Box4D

    Re-export canonical geometry types without allocation or conversion wrappers.

    ClusterResult

    Stable public entry point. Implementations live in the layered src packages.

    CompactClusterResult

    Stable public entry point. Implementations live in the layered src packages.

    FlatBuffers

    Stable public entry point. Implementations live in the layered src packages.

    FlatBuffers3D

    Stable public entry point. Implementations live in the layered src packages.

    GeofenceEvent

    Stable public entry point. Implementations live in the layered src packages.

    GeofenceMonitor

    Stable public entry point. Implementations live in the layered src packages.

    GridCell

    Stable public entry point. Implementations live in the layered src packages.

    GridDensitySummary

    Stable public entry point. Implementations live in the layered src packages.

    Point2D

    Stable public entry point. Implementations live in the layered src packages.

    Polygon2D

    Stable public entry point. Implementations live in the layered src packages.

    Rect

    Re-export canonical geometry types without allocation or conversion wrappers.

    Rng

    Stable public entry point. Implementations live in the layered src packages.

    SpatialPredicate

    Re-export canonical geometry types without allocation or conversion wrappers.

    StrMeshTree3D

    Stable public entry point. Implementations live in the layered src packages.

    StrPolygonIndex

    Stable public entry point. Implementations live in the layered src packages.

    StrTree

    Stable public entry point. Implementations live in the layered src packages.

    StrTree3D

    Stable public entry point. Implementations live in the layered src packages.

    StrTree4D

    Stable public entry point. Implementations live in the layered src packages.

    StreamingTrajectoryCompressor

    Stable public entry point. Implementations live in the layered src packages.

    TrajectoryPoint

    Stable public entry point. Implementations live in the layered src packages.

    TrajectorySegment

    Stable public entry point. Implementations live in the layered src packages.

    TrajectorySimplificationResult

    Stable public entry point. Implementations live in the layered src packages.

    TrajectoryWindowIndex

    Stable public entry point. Implementations live in the layered src packages.

    TreeStats

    Stable public entry point. Implementations live in the layered src packages.

    TreeStats3D

    Stable public entry point. Implementations live in the layered src packages.

    TreeStats4D

    Stable public entry point. Implementations live in the layered src packages.

    Triangle3D

    Stable public entry point. Implementations live in the layered src packages.

    generate_boxes_3d_clustered

    fn generate_boxes_3d_clustered(rng :
    Rng
    , count : Int, num_clusters? : Int, domain_x? : Double, domain_y? : Double, domain_z? : Double) -> Array[(
    Box3D
    , Int)]

    Generates clustered Gaussian distributed 3D bounding boxes.

    generate_boxes_3d_uniform

    fn generate_boxes_3d_uniform(rng :
    Rng
    , count : Int, domain_x? : Double, domain_y? : Double, domain_z? : Double, max_box_size? : Double) -> Array[(
    Box3D
    , Int)]

    Generates uniform randomly distributed 3D bounding boxes.

    generate_clustered

    fn generate_clustered(rng :
    Rng
    , count : Int, num_clusters? : Int, domain_width? : Double, domain_height? : Double) -> Array[(
    Rect
    , Int)]

    Generates clustered Gaussian distributed bounding boxes.

    generate_concentric

    fn generate_concentric(count : Int, center_x? : Double, center_y? : Double, step? : Double) -> Array[(
    Rect
    , Int)]

    Generates concentric nested bounding boxes.

    generate_diagonal

    fn generate_diagonal(rng :
    Rng
    , count : Int, domain_size? : Double) -> Array[(
    Rect
    , Int)]

    Generates diagonal collinear bounding boxes.

    generate_grid

    fn generate_grid(rows : Int, cols : Int, cell_size? : Double, spacing? : Double) -> Array[(
    Rect
    , Int)]

    Generates regularly spaced grid tiles.

    generate_uniform

    fn generate_uniform(rng :
    Rng
    , count : Int, domain_width? : Double, domain_height? : Double, max_box_size? : Double) -> Array[(
    Rect
    , Int)]

    Generates uniform randomly distributed bounding boxes.

    matches_de9im_pattern

    fn matches_de9im_pattern(matrix : String, pattern : String) -> Bool

    Checks whether a 9-character DE-9IM intersection matrix matches an intersection pattern.

    simplify_trajectory_2d

    Simplifies a 2D trajectory waypoint sequence using Douglas-Peucker algorithm with tolerance epsilon.

    simplify_trajectory_spatiotemporal

    Simplifies a spatiotemporal trajectory using Synchronized Euclidean Distance (SED) tolerance epsilon.

    trajectory_dtw_distance

    Computes Dynamic Time Warping (DTW) distance between two trajectories with optional Sakoe-Chiba window constraint.

    trajectory_dtw_normalized

    Computes length-normalized DTW distance (total_dtw / (len_a + len_b)).

    trajectory_frechet_distance

    Computes Discrete Fréchet Distance between two polygonal trajectory curves.

    Source Files