def _validate_type_geometrycollection(self, field, value):
        """ Enables validation for `geometrycollection`data type

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