wradlib.zonalstats.ZonalDataPoly

Contents

wradlib.zonalstats.ZonalDataPoly#

class wradlib.zonalstats.ZonalDataPoly(src, *, trg=None, buf=0.0, crs=None, **kwargs)[source]#

ZonalData object for source polygons

Parameters:
  • src (sequence or str) – sequence of source polygons (shape NxMx2) or ESRI Shapefile filename containing source polygons

  • trg (sequence or str) – sequence of target polygons (shape Nx2, num vertices x 2) or ESRI Shapefile filename containing target polygons

Keyword Arguments:

Examples

See ZonalData.

dump_vector(filename, *[, driver, remove])

Output source/target grid points/polygons to ESRI_Shapefile

get_isec(idx)

Returns intersections

get_source_index(idx)

Returns source indices referring to target polygon idx

load_vector(filename)

Load source/target grid points/polygons into in-memory Shapefile

count_intersections

Returns number of intersections

crs

Returns SpatialReferenceSystem object

isecs

Returns intersections