Example #1
0
    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)
Example #2
0
 def _validate_type_linestring(self, value):
     try:
         LineString(value)
         return True
     except TypeError:
         pass