def _get_spatial_filter(self): try: return OGRGeometry( geom_api.clone_geom(capi.get_spatial_filter(self.ptr))) except OGRException: return None
def _get_spatial_filter(self): try: return OGRGeometry(geom_api.clone_geom(capi.get_spatial_filter(self.ptr))) except GDALException: return None
from ctypes import byref, c_double