[Polygon] fix overeager warning
This commit is contained in:
parent
0503ceb725
commit
a82c555cda
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue