def check_envelope(result, func, cargs, offset=-1):
    env = ptr_byref(cargs, offset)
    return env

### Geometry error-checking routines ###
Checks a function that returns an OGR Envelope by reference.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/gis/gdal/prototypes/errcheck.py/check_envelope