def check_predicate(result, func, cargs):
    val = ord(result) # getting the ordinal from the character
    if val == 1: return True
    elif val == 0: return False
    else:
        raise GEOSException('Error encountered on GEOS C predicate function "%s".' % func.__name__)
Format the input and output to the console (stdout).
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/geos/prototypes/errcheck.py/check_predicate--crossover with--dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/CLI/environment.py/Environment.fout