trajdl.grid.hierarchy module#

class trajdl.grid.hierarchy.HierarchyGridSystem(boundary: RectangleBoundary, steps: List[Tuple[float, float]])[source]#

Bases: BaseGridSystem

build_rtree() Index[source]#
build_simple_tokenizer() SimpleTokenizer[source]#
property grid_id_cols: List[str]#
locate_unsafe(x: float, y: float) str[source]#

判断x, y属于哪个网格,为了性能允许不check x,y是否在边界内

recursive_split_regions() DataFrame[source]#