has_interior#
- zeroheliumkit.src.utils.has_interior(p: Polygon) bool[source]#
Determines if a polygon has any interior.
- Parameters:
p (Polygon) – The polygon to check.
- Returns:
True if the polygon has interiors, False otherwise.
- Return type:
bool
Example
>>> polygon = Polygon([(0, 0), (1, 0), (1, 1), (0, 1)], ... interiors=[[(0.2, 0.2), (0.8, 0.2), (0.8, 0.8), (0.2, 0.8)]]) >>> result = has_interior(polygon) >>> print(result) True