AIStk

spatial.py — Spatial Processing (H3, Geofencing, Segmentation)

Purpose

Transforms AIS points into spatial indices, segments tracks, and supports geofencing analyses.

Responsibilities

Interactions with Other Modules

Usage Example

from aisdataset import spatial

h3_df = spatial.to_h3(df, resolution=7)
in_port = spatial.point_in_polygon(df, polygons_gdf=ports_gdf)

Public API (Outline)

Functions

Notes & Design Considerations