def to_python(self, value):
        """
        Transforms the value to a Geometry object.
        """
        try:
            return GEOSGeometry(value)
        except (GEOSException, ValueError, __HOLE__):
            raise forms.ValidationError(self.error_messages['invalid_geom'])
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/forms/fields.py/GeometryField.to_python