lmpy.data_wrangling.occurrence.bounding_box_wrangler

Module containing occurrence data wranglers for filtering points.

Module Contents

Classes

BoundingBoxFilter

Get an occurrence data wrangler for filtering by bounding box.

class lmpy.data_wrangling.occurrence.bounding_box_wrangler.BoundingBoxFilter(min_x, min_y, max_x, max_y, **params)[source]

Bases: lmpy.data_wrangling.occurrence.base._OccurrenceDataWrangler

Get an occurrence data wrangler for filtering by bounding box.

Parameters
  • min_x (numeric) – The minimum ‘x’ value for the bounding box.

  • min_y (numeric) – The minimum ‘y’ value for the bounding box.

  • max_x (numeric) – The maximum ‘x’ value for the bounding box.

  • max_y (numeric) – The maximum ‘y’ value for the bounding box.

  • **params (dict) – Keyword parameters to pass to _OccurrenceDataWrangler.

name = BoundingBoxFilter[source]
version = 1.0[source]
_pass_condition(point)[source]

Pass condition for a point.

Parameters

point (Point) – A point object to assess.

Returns

Indication if the point passed assessment.

Return type

bool