def _validate_type_linestring(self, field, value): """ Enables validation for `linestring` data type. :param field: field name. :param value: field value. """ try: LineString(value) except TypeError: self._error(field, "LineString not correct %s " % value)
def _validate_type_linestring(self, value): try: LineString(value) return True except TypeError: pass