Skip to main content

Polygons

Polygons​

Polygons(client: Connector = None, response: dict = None, type: str = None, spec: Query = None)

Bases: Entities

intersection​

intersection(other: Polygons, threshold: float) -> Polygons

Find a set of polygons that intersect with another set of polygons. The threshold is user specified and is used to determine if two polygons sufficiently overlap to be considered intersecting.

Parameters:

NameTypeDescriptionDefault
otherPolygons

Set of polygons to intersect with.

required
thresholdfloat

The threshold for determining if two polygons are sufficiently intersecting.

required

Returns:

NameTypeDescription
PolygonsPolygons

unique set of polygons that intersect with the other set of polygons.