[Polygon] fix overeager warning

This commit is contained in:
Jan Petykiewicz 2026-02-15 15:45:20 -08:00
commit a82c555cda

View file

@ -1744,7 +1744,7 @@ class Polygon(Record, GeometryMixin):
self.point_list = point_list self.point_list = point_list
self.properties = [] if properties is None else properties self.properties = [] if properties is None else properties
if point_list is not None and len(point_list) < 3: if point_list is not None and len(point_list) < 2:
warn('Polygon with < 3 points', stacklevel=2) warn('Polygon with < 3 points', stacklevel=2)
def get_point_list(self) -> point_list_t: def get_point_list(self) -> point_list_t: