def clean(self, value):
if isinstance(value, BaseGeometry):<EOL><INDENT>return value<EOL><DEDENT>raise ParameterNotValidError<EOL>
Cleans and returns the given value, or raises a ParameterNotValidError exception