Exemple #1
0
 def __init__(self, *args, **kwargs):
     """__init__(OSRSpatialReferenceShadow self, char const * wkt) -> SpatialReference"""
     oldval = _osr.GetUseExceptions()
     if not oldval:
         _osr.UseExceptions()
     try:
         this = _osr.new_SpatialReference(*args, **kwargs)
     finally:
         if not oldval:
             _osr.DontUseExceptions()
     try:
         self.this.append(this)
     except __builtin__.Exception:
         self.this = this
Exemple #2
0
def GetUseExceptions(*args):
    """GetUseExceptions() -> int"""
    return _osr.GetUseExceptions(*args)