Function Reference: RTree.csv_read

RTree: obj = csv_read (io_arg, dim, split, np)

Create a new RTree instance from CSV path or stream.

io_arg

A path or readable text-stream of CSV data;

dim

The dimension of the tree to construct;

split

A string indicating the splitting strategy, one of "linear", "quadratic" or "greene", default "quadratic";

np

The number of nodes-per-page, or 0 for heuristic choice, default 0

The CSV file (without header) should have the id in the first column, then twice as many floats as the dimension. Extra columns may be present and will be ignored (this useful feature is the reason that the dimension dim is a required argument).