def check_cs_ptr(result, func, cargs):
    "Error checking on routines that return Geometries."
    if not result:
        raise GEOSException('Error encountered checking Coordinate Sequence returned from GEOS C function "%s".' % func.__name__)
    return result
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/gis/geos/prototypes/coordseq.py/check_cs_ptr/original