resqpy.olio.simple_lines.nearest_pillars(line_list, grid, ref_k=0, ref_kp=0)[source]

Finds pillars nearest to each point on each line; returns list of lists of (j0, i0).

  • line_list (list of numpy arrays of floats) – set of poly-lines, the points of which are used to find the nearest pillars in grid

  • grid (grid.Grid object) – the grid whose pillars are compared with the poly-line vertices

  • ref_k (integer, default 0) – the reference layer in the grid to compare against the vertices; zero based

  • ref_kp (integer, default 0) – 0 to indicate the top corners of the reference layer, 1 for the base


a list of lists of pairs of integers, each being the (j, i) pillar indices of the nearest pillar to the corresponding vertex of the poly-line; zero based indexing


this is a 2D search in the x, y plane; z values are ignored; poly-line x, y values must implicitly be in the same crs as the grid’s points data