lusos.geometry.ops.PolygonGridArea#

class lusos.geometry.ops.PolygonGridArea(cell_idx: ndarray, nitems: ndarray, polygon: ndarray, area: ndarray)[source]#

Sparse matrix-like structure for the result of polygon_area_in_grid containing the indices of the grid cells that overlap with polygons, the number of polygons that overlap with those grid cells, the index ids of the polygons and the corresponding area in the grid cell.

Parameters:
  • cell_idx (np.ndarray) – Indices of the grid cells that overlap with polygons.

  • nitems (np.ndarray) – Number of polygons that overlap with the grid cell.

  • polygon (np.ndarray) – Index id of the polygon that overlaps with the grid cell.

  • area (np.ndarray) – Area of the polygon in the grid cell.

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

area

Alias for field number 3

cell_idx

Alias for field number 0

nitems

Alias for field number 1

polygon

Alias for field number 2