Skip to content
Snippets Groups Projects

Resolve "Introduce a new filter for when rules should be run based on the source ID of a building."

Compare and Show latest version
3 files
+ 8
12
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 1
3
@@ -33,8 +33,6 @@ class AbstractRule(abc.ABC):
A list of integers representing all the valid source ID's for the rule.
geographic_filter_boundary (str):
Boundary polygon in WKT format defining the geographic boundary of the rule.
"""
def __init__(self, rule_source_ids: list = None, geographic_filter_boundary: str = None):
@@ -119,7 +117,7 @@ class AbstractRule(abc.ABC):
# Geographic filter, passes if the inputs coordinates lie within the boundary geometry.
if (
self.geographic_filter_boundary_geometry is not None
and not self.geographic_filter_boundary_geometry.contains(
and self.geographic_filter_boundary_geometry.disjoint(
shapely.geometry.Point(longitude, latitude)
)
):
Loading