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

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

  • coordinates – 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 – An array of size (n) containing the values associated with the coordinates provided.