def _validate_type_multilinestring(self, field, value):
        """ Enables validation for `multilinestring`data type.

        :param field: field name.
        :param value: field value.
        """
        try:
            MultiLineString(value)
        except TypeError:
            self._error(field, "MultiLineString not  correct" % value)
Beispiel #2
0
 def _validate_type_multilinestring(self, value):
     try:
         MultiLineString(value)
         return True
     except TypeError:
         pass