RTree.packing(coordinates: numpy.ndarray, values: numpy.ndarray) None[source]

The tree is created using packing algorithm (The old data is erased before construction.)

  • coordinates (numpy.ndarray) – a matrix (n, ndims) where n is the number of observations and ndims is the number of coordinates in order: longitude and latitude in degrees, altitude in meters and then the other coordinates defined in Euclidean space if dims > 3. If the shape of the matrix is (n, ndims) then the method considers the altitude constant and equal to zero.

  • values (numpy.ndarray) – An array of size (n) containing the values associated with the coordinates provided.