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

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