Browse Source

Turn <3 points polygon exception into warning

master
Henk van der Laak 3 years ago
parent
commit
ab175641fe
  1. 4
      fatamorgana/records.py

4
fatamorgana/records.py

@ -18,7 +18,7 @@ import zlib
import io
import logging
import pprint
from warnings import warn
from .basic import AString, NString, repetition_t, property_value_t, real_t, \
ReuseRepetition, OffsetTable, Validation, read_point_list, read_property_value, \
read_bstring, read_uint, read_sint, read_real, read_repetition, read_interval, \
@ -1630,7 +1630,7 @@ class Polygon(Record):
if point_list is not None:
if len(point_list) < 3:
raise InvalidDataError('Polygon with < 3 points')
warn('Polygon with < 3 points')
def merge_with_modals(self, modals: Modals):
adjust_coordinates(self, modals, 'geometry_x', 'geometry_y')

Loading…
Cancel
Save