Package osgeo :: Module osr |
[hide private]
[frames] | no frames]

# Source Code for Module osgeo.osr

      1  # This file was automatically generated by SWIG (http://www.swig.org).
      2  # Version 1.3.40
      3  #
      4  # Do not make changes to this file unless you know what you are doing--modify
      5  # the SWIG interface file instead.
      6  # This file is compatible with both classic and new-style classes.
      7
      8  from sys import version_info
      9  if version_info >= (2,6,0):
     10 -    def swig_import_helper():
     11          from os.path import dirname
     12          import imp
     13          fp = None
     14          try:
     15              fp, pathname, description = imp.find_module('_osr', [dirname(__file__)])
     16          except ImportError:
     17              import _osr
     18              return _osr
     19          if fp is not None:
     20              try:
     21                  _mod = imp.load_module('_osr', fp, pathname, description)
     22              finally:
     23                  fp.close()
     24              return _mod
     25      _osr = swig_import_helper()
     26      del swig_import_helper
     27  else:
     28      import _osr
     29  del version_info
     30  try:
     31      _swig_property = property
     32  except NameError:
     33      pass # Python < 2.2 doesn't have 'property'.
     34 -def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
     35      if (name == "thisown"): return self.this.own(value)
     36      if (name == "this"):
     37          if type(value).__name__ == 'SwigPyObject':
     38              self.__dict__[name] = value
     39              return
     40      method = class_type.__swig_setmethods__.get(name,None)
     41      if method: return method(self,value)
     42      if (not static) or hasattr(self,name):
     43          self.__dict__[name] = value
     44      else:
     45          raise AttributeError("You cannot add attributes to %s" % self)
     46
     47 -def _swig_setattr(self,class_type,name,value):
     48      return _swig_setattr_nondynamic(self,class_type,name,value,0)
     49
     50 -def _swig_getattr(self,class_type,name):
     51      if (name == "thisown"): return self.this.own()
     52      method = class_type.__swig_getmethods__.get(name,None)
     53      if method: return method(self)
     54      raise AttributeError(name)
     55
     56 -def _swig_repr(self):
     57      try: strthis = "proxy of " + self.this.__repr__()
     58      except: strthis = ""
     59      return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
     60
     61  try:
     62      _object = object
     63      _newclass = 1
     64  except AttributeError:
     65 -    class _object : pass
     66      _newclass = 0
     67
     68
     69  SRS_WKT_WGS84 = _osr.SRS_WKT_WGS84
     70  SRS_PT_ALBERS_CONIC_EQUAL_AREA = _osr.SRS_PT_ALBERS_CONIC_EQUAL_AREA
     71  SRS_PT_AZIMUTHAL_EQUIDISTANT = _osr.SRS_PT_AZIMUTHAL_EQUIDISTANT
     72  SRS_PT_CASSINI_SOLDNER = _osr.SRS_PT_CASSINI_SOLDNER
     73  SRS_PT_CYLINDRICAL_EQUAL_AREA = _osr.SRS_PT_CYLINDRICAL_EQUAL_AREA
     74  SRS_PT_BONNE = _osr.SRS_PT_BONNE
     75  SRS_PT_ECKERT_I = _osr.SRS_PT_ECKERT_I
     76  SRS_PT_ECKERT_II = _osr.SRS_PT_ECKERT_II
     77  SRS_PT_ECKERT_III = _osr.SRS_PT_ECKERT_III
     78  SRS_PT_ECKERT_IV = _osr.SRS_PT_ECKERT_IV
     79  SRS_PT_ECKERT_V = _osr.SRS_PT_ECKERT_V
     80  SRS_PT_ECKERT_VI = _osr.SRS_PT_ECKERT_VI
     81  SRS_PT_EQUIDISTANT_CONIC = _osr.SRS_PT_EQUIDISTANT_CONIC
     82  SRS_PT_EQUIRECTANGULAR = _osr.SRS_PT_EQUIRECTANGULAR
     83  SRS_PT_GALL_STEREOGRAPHIC = _osr.SRS_PT_GALL_STEREOGRAPHIC
     84  SRS_PT_GAUSSSCHREIBERTMERCATOR = _osr.SRS_PT_GAUSSSCHREIBERTMERCATOR
     85  SRS_PT_GEOSTATIONARY_SATELLITE = _osr.SRS_PT_GEOSTATIONARY_SATELLITE
     86  SRS_PT_GOODE_HOMOLOSINE = _osr.SRS_PT_GOODE_HOMOLOSINE
     87  SRS_PT_IGH = _osr.SRS_PT_IGH
     88  SRS_PT_GNOMONIC = _osr.SRS_PT_GNOMONIC
     89  SRS_PT_HOTINE_OBLIQUE_MERCATOR = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR
     90  SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN
     91  SRS_PT_LABORDE_OBLIQUE_MERCATOR = _osr.SRS_PT_LABORDE_OBLIQUE_MERCATOR
     92  SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
     93  SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
     94  SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM
     95  SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA = _osr.SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA
     96  SRS_PT_MERCATOR_1SP = _osr.SRS_PT_MERCATOR_1SP
     97  SRS_PT_MERCATOR_2SP = _osr.SRS_PT_MERCATOR_2SP
     98  SRS_PT_MILLER_CYLINDRICAL = _osr.SRS_PT_MILLER_CYLINDRICAL
     99  SRS_PT_MOLLWEIDE = _osr.SRS_PT_MOLLWEIDE
    100  SRS_PT_NEW_ZEALAND_MAP_GRID = _osr.SRS_PT_NEW_ZEALAND_MAP_GRID
    101  SRS_PT_OBLIQUE_STEREOGRAPHIC = _osr.SRS_PT_OBLIQUE_STEREOGRAPHIC
    102  SRS_PT_ORTHOGRAPHIC = _osr.SRS_PT_ORTHOGRAPHIC
    103  SRS_PT_POLAR_STEREOGRAPHIC = _osr.SRS_PT_POLAR_STEREOGRAPHIC
    104  SRS_PT_POLYCONIC = _osr.SRS_PT_POLYCONIC
    105  SRS_PT_ROBINSON = _osr.SRS_PT_ROBINSON
    106  SRS_PT_SINUSOIDAL = _osr.SRS_PT_SINUSOIDAL
    107  SRS_PT_STEREOGRAPHIC = _osr.SRS_PT_STEREOGRAPHIC
    108  SRS_PT_SWISS_OBLIQUE_CYLINDRICAL = _osr.SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
    109  SRS_PT_TRANSVERSE_MERCATOR = _osr.SRS_PT_TRANSVERSE_MERCATOR
    110  SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED = _osr.SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED
    111  SRS_PT_TRANSVERSE_MERCATOR_MI_21 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_21
    112  SRS_PT_TRANSVERSE_MERCATOR_MI_22 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_22
    113  SRS_PT_TRANSVERSE_MERCATOR_MI_23 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_23
    114  SRS_PT_TRANSVERSE_MERCATOR_MI_24 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_24
    115  SRS_PT_TRANSVERSE_MERCATOR_MI_25 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_25
    116  SRS_PT_TUNISIA_MINING_GRID = _osr.SRS_PT_TUNISIA_MINING_GRID
    117  SRS_PT_TWO_POINT_EQUIDISTANT = _osr.SRS_PT_TWO_POINT_EQUIDISTANT
    118  SRS_PT_VANDERGRINTEN = _osr.SRS_PT_VANDERGRINTEN
    119  SRS_PT_KROVAK = _osr.SRS_PT_KROVAK
    120  SRS_PT_IMW_POLYCONIC = _osr.SRS_PT_IMW_POLYCONIC
    121  SRS_PT_WAGNER_I = _osr.SRS_PT_WAGNER_I
    122  SRS_PT_WAGNER_II = _osr.SRS_PT_WAGNER_II
    123  SRS_PT_WAGNER_III = _osr.SRS_PT_WAGNER_III
    124  SRS_PT_WAGNER_IV = _osr.SRS_PT_WAGNER_IV
    125  SRS_PT_WAGNER_V = _osr.SRS_PT_WAGNER_V
    126  SRS_PT_WAGNER_VI = _osr.SRS_PT_WAGNER_VI
    127  SRS_PT_WAGNER_VII = _osr.SRS_PT_WAGNER_VII
    128  SRS_PP_CENTRAL_MERIDIAN = _osr.SRS_PP_CENTRAL_MERIDIAN
    129  SRS_PP_SCALE_FACTOR = _osr.SRS_PP_SCALE_FACTOR
    130  SRS_PP_STANDARD_PARALLEL_1 = _osr.SRS_PP_STANDARD_PARALLEL_1
    131  SRS_PP_STANDARD_PARALLEL_2 = _osr.SRS_PP_STANDARD_PARALLEL_2
    132  SRS_PP_PSEUDO_STD_PARALLEL_1 = _osr.SRS_PP_PSEUDO_STD_PARALLEL_1
    133  SRS_PP_LONGITUDE_OF_CENTER = _osr.SRS_PP_LONGITUDE_OF_CENTER
    134  SRS_PP_LATITUDE_OF_CENTER = _osr.SRS_PP_LATITUDE_OF_CENTER
    135  SRS_PP_LONGITUDE_OF_ORIGIN = _osr.SRS_PP_LONGITUDE_OF_ORIGIN
    136  SRS_PP_LATITUDE_OF_ORIGIN = _osr.SRS_PP_LATITUDE_OF_ORIGIN
    137  SRS_PP_FALSE_EASTING = _osr.SRS_PP_FALSE_EASTING
    138  SRS_PP_FALSE_NORTHING = _osr.SRS_PP_FALSE_NORTHING
    139  SRS_PP_AZIMUTH = _osr.SRS_PP_AZIMUTH
    140  SRS_PP_LONGITUDE_OF_POINT_1 = _osr.SRS_PP_LONGITUDE_OF_POINT_1
    141  SRS_PP_LATITUDE_OF_POINT_1 = _osr.SRS_PP_LATITUDE_OF_POINT_1
    142  SRS_PP_LONGITUDE_OF_POINT_2 = _osr.SRS_PP_LONGITUDE_OF_POINT_2
    143  SRS_PP_LATITUDE_OF_POINT_2 = _osr.SRS_PP_LATITUDE_OF_POINT_2
    144  SRS_PP_LONGITUDE_OF_POINT_3 = _osr.SRS_PP_LONGITUDE_OF_POINT_3
    145  SRS_PP_LATITUDE_OF_POINT_3 = _osr.SRS_PP_LATITUDE_OF_POINT_3
    146  SRS_PP_RECTIFIED_GRID_ANGLE = _osr.SRS_PP_RECTIFIED_GRID_ANGLE
    147  SRS_PP_LANDSAT_NUMBER = _osr.SRS_PP_LANDSAT_NUMBER
    148  SRS_PP_PATH_NUMBER = _osr.SRS_PP_PATH_NUMBER
    149  SRS_PP_PERSPECTIVE_POINT_HEIGHT = _osr.SRS_PP_PERSPECTIVE_POINT_HEIGHT
    150  SRS_PP_SATELLITE_HEIGHT = _osr.SRS_PP_SATELLITE_HEIGHT
    151  SRS_PP_FIPSZONE = _osr.SRS_PP_FIPSZONE
    152  SRS_PP_ZONE = _osr.SRS_PP_ZONE
    153  SRS_PP_LATITUDE_OF_1ST_POINT = _osr.SRS_PP_LATITUDE_OF_1ST_POINT
    154  SRS_PP_LONGITUDE_OF_1ST_POINT = _osr.SRS_PP_LONGITUDE_OF_1ST_POINT
    155  SRS_PP_LATITUDE_OF_2ND_POINT = _osr.SRS_PP_LATITUDE_OF_2ND_POINT
    156  SRS_PP_LONGITUDE_OF_2ND_POINT = _osr.SRS_PP_LONGITUDE_OF_2ND_POINT
    157  SRS_UL_METER = _osr.SRS_UL_METER
    158  SRS_UL_FOOT = _osr.SRS_UL_FOOT
    159  SRS_UL_FOOT_CONV = _osr.SRS_UL_FOOT_CONV
    160  SRS_UL_US_FOOT = _osr.SRS_UL_US_FOOT
    161  SRS_UL_US_FOOT_CONV = _osr.SRS_UL_US_FOOT_CONV
    162  SRS_UL_NAUTICAL_MILE = _osr.SRS_UL_NAUTICAL_MILE
    163  SRS_UL_NAUTICAL_MILE_CONV = _osr.SRS_UL_NAUTICAL_MILE_CONV
    164  SRS_UL_LINK = _osr.SRS_UL_LINK
    165  SRS_UL_LINK_CONV = _osr.SRS_UL_LINK_CONV
    166  SRS_UL_CHAIN = _osr.SRS_UL_CHAIN
    167  SRS_UL_CHAIN_CONV = _osr.SRS_UL_CHAIN_CONV
    168  SRS_UL_ROD = _osr.SRS_UL_ROD
    169  SRS_UL_ROD_CONV = _osr.SRS_UL_ROD_CONV
    170  SRS_UL_LINK_Clarke = _osr.SRS_UL_LINK_Clarke
    171  SRS_UL_LINK_Clarke_CONV = _osr.SRS_UL_LINK_Clarke_CONV
    172  SRS_UA_DEGREE = _osr.SRS_UA_DEGREE
    173  SRS_UA_DEGREE_CONV = _osr.SRS_UA_DEGREE_CONV
    174  SRS_UA_RADIAN = _osr.SRS_UA_RADIAN
    175  SRS_PM_GREENWICH = _osr.SRS_PM_GREENWICH
    176  SRS_DN_NAD27 = _osr.SRS_DN_NAD27
    177  SRS_DN_NAD83 = _osr.SRS_DN_NAD83
    178  SRS_DN_WGS72 = _osr.SRS_DN_WGS72
    179  SRS_DN_WGS84 = _osr.SRS_DN_WGS84
    180  SRS_WGS84_SEMIMAJOR = _osr.SRS_WGS84_SEMIMAJOR
    181  SRS_WGS84_INVFLATTENING = _osr.SRS_WGS84_INVFLATTENING
    182
    183 -def GetUseExceptions(*args):
    184    """GetUseExceptions() -> int"""
    185    return _osr.GetUseExceptions(*args)
    186
    187 -def UseExceptions(*args):
    188    """UseExceptions()"""
    189    return _osr.UseExceptions(*args)
    190
    191 -def DontUseExceptions(*args):
    192    """DontUseExceptions()"""
    193    return _osr.DontUseExceptions(*args)
    194
    195 -def GetWellKnownGeogCSAsWKT(*args):
    196    """GetWellKnownGeogCSAsWKT(char name) -> OGRErr"""
    197    return _osr.GetWellKnownGeogCSAsWKT(*args)
    198
    199 -def GetUserInputAsWKT(*args):
    200    """GetUserInputAsWKT(char name) -> OGRErr"""
    201    return _osr.GetUserInputAsWKT(*args)
    202 -class SpatialReference(_object):
    203      """Proxy of C++ OSRSpatialReferenceShadow class"""
    204      __swig_setmethods__ = {}
    205      __setattr__ = lambda self, name, value: _swig_setattr(self, SpatialReference, name, value)
    206      __swig_getmethods__ = {}
    207      __getattr__ = lambda self, name: _swig_getattr(self, SpatialReference, name)
    208      __repr__ = _swig_repr
    209 -    def __init__(self, *args, **kwargs):
    210          """__init__(self, char wkt = "") -> SpatialReference"""
    211          this = _osr.new_SpatialReference(*args, **kwargs)
    212          try: self.this.append(this)
    213          except: self.this = this
    214      __swig_destroy__ = _osr.delete_SpatialReference
    215      __del__ = lambda self : None;
    216 -    def __str__(self, *args):
    217          """__str__(self) -> retStringAndCPLFree"""
    218          return _osr.SpatialReference___str__(self, *args)
    219
    220 -    def IsSame(self, *args):
    221          """IsSame(self, SpatialReference rhs) -> int"""
    222          return _osr.SpatialReference_IsSame(self, *args)
    223
    224 -    def IsSameGeogCS(self, *args):
    225          """IsSameGeogCS(self, SpatialReference rhs) -> int"""
    226          return _osr.SpatialReference_IsSameGeogCS(self, *args)
    227
    228 -    def IsSameVertCS(self, *args):
    229          """IsSameVertCS(self, SpatialReference rhs) -> int"""
    230          return _osr.SpatialReference_IsSameVertCS(self, *args)
    231
    232 -    def IsGeographic(self, *args):
    233          """IsGeographic(self) -> int"""
    234          return _osr.SpatialReference_IsGeographic(self, *args)
    235
    236 -    def IsProjected(self, *args):
    237          """IsProjected(self) -> int"""
    238          return _osr.SpatialReference_IsProjected(self, *args)
    239
    240 -    def IsCompound(self, *args):
    241          """IsCompound(self) -> int"""
    242          return _osr.SpatialReference_IsCompound(self, *args)
    243
    244 -    def IsGeocentric(self, *args):
    245          """IsGeocentric(self) -> int"""
    246          return _osr.SpatialReference_IsGeocentric(self, *args)
    247
    248 -    def IsLocal(self, *args):
    249          """IsLocal(self) -> int"""
    250          return _osr.SpatialReference_IsLocal(self, *args)
    251
    252 -    def IsVertical(self, *args):
    253          """IsVertical(self) -> int"""
    254          return _osr.SpatialReference_IsVertical(self, *args)
    255
    256 -    def EPSGTreatsAsLatLong(self, *args):
    257          """EPSGTreatsAsLatLong(self) -> int"""
    258          return _osr.SpatialReference_EPSGTreatsAsLatLong(self, *args)
    259
    260 -    def SetAuthority(self, *args):
    261          """SetAuthority(self, char pszTargetKey, char pszAuthority, int nCode) -> OGRErr"""
    262          return _osr.SpatialReference_SetAuthority(self, *args)
    263
    264 -    def GetAttrValue(self, *args):
    265          """GetAttrValue(self, char name, int child = 0) -> char"""
    266          return _osr.SpatialReference_GetAttrValue(self, *args)
    267
    268 -    def SetAttrValue(self, *args):
    269          """SetAttrValue(self, char name, char value) -> OGRErr"""
    270          return _osr.SpatialReference_SetAttrValue(self, *args)
    271
    272 -    def SetAngularUnits(self, *args):
    273          """SetAngularUnits(self, char name, double to_radians) -> OGRErr"""
    274          return _osr.SpatialReference_SetAngularUnits(self, *args)
    275
    276 -    def GetAngularUnits(self, *args):
    277          """GetAngularUnits(self) -> double"""
    278          return _osr.SpatialReference_GetAngularUnits(self, *args)
    279
    280 -    def SetTargetLinearUnits(self, *args):
    281          """SetTargetLinearUnits(self, char target, char name, double to_meters) -> OGRErr"""
    282          return _osr.SpatialReference_SetTargetLinearUnits(self, *args)
    283
    284 -    def SetLinearUnits(self, *args):
    285          """SetLinearUnits(self, char name, double to_meters) -> OGRErr"""
    286          return _osr.SpatialReference_SetLinearUnits(self, *args)
    287
    288 -    def SetLinearUnitsAndUpdateParameters(self, *args):
    289          """SetLinearUnitsAndUpdateParameters(self, char name, double to_meters) -> OGRErr"""
    290          return _osr.SpatialReference_SetLinearUnitsAndUpdateParameters(self, *args)
    291
    292 -    def GetLinearUnits(self, *args):
    293          """GetLinearUnits(self) -> double"""
    294          return _osr.SpatialReference_GetLinearUnits(self, *args)
    295
    296 -    def GetLinearUnitsName(self, *args):
    297          """GetLinearUnitsName(self) -> char"""
    298          return _osr.SpatialReference_GetLinearUnitsName(self, *args)
    299
    300 -    def GetAuthorityCode(self, *args):
    301          """GetAuthorityCode(self, char target_key) -> char"""
    302          return _osr.SpatialReference_GetAuthorityCode(self, *args)
    303
    304 -    def GetAuthorityName(self, *args):
    305          """GetAuthorityName(self, char target_key) -> char"""
    306          return _osr.SpatialReference_GetAuthorityName(self, *args)
    307
    308 -    def SetUTM(self, *args):
    309          """SetUTM(self, int zone, int north = 1) -> OGRErr"""
    310          return _osr.SpatialReference_SetUTM(self, *args)
    311
    312 -    def GetUTMZone(self, *args):
    313          """GetUTMZone(self) -> int"""
    314          return _osr.SpatialReference_GetUTMZone(self, *args)
    315
    316 -    def SetStatePlane(self, *args):
    317          """SetStatePlane(self, int zone, int is_nad83 = 1, char unitsname = "", double units = 0.0) -> OGRErr"""
    318          return _osr.SpatialReference_SetStatePlane(self, *args)
    319
    320 -    def AutoIdentifyEPSG(self, *args):
    321          """AutoIdentifyEPSG(self) -> OGRErr"""
    322          return _osr.SpatialReference_AutoIdentifyEPSG(self, *args)
    323
    324 -    def SetProjection(self, *args):
    325          """SetProjection(self, char arg) -> OGRErr"""
    326          return _osr.SpatialReference_SetProjection(self, *args)
    327
    328 -    def SetProjParm(self, *args):
    329          """SetProjParm(self, char name, double val) -> OGRErr"""
    330          return _osr.SpatialReference_SetProjParm(self, *args)
    331
    332 -    def GetProjParm(self, *args):
    333          """GetProjParm(self, char name, double default_val = 0.0) -> double"""
    334          return _osr.SpatialReference_GetProjParm(self, *args)
    335
    336 -    def SetNormProjParm(self, *args):
    337          """SetNormProjParm(self, char name, double val) -> OGRErr"""
    338          return _osr.SpatialReference_SetNormProjParm(self, *args)
    339
    340 -    def GetNormProjParm(self, *args):
    341          """GetNormProjParm(self, char name, double default_val = 0.0) -> double"""
    342          return _osr.SpatialReference_GetNormProjParm(self, *args)
    343
    344 -    def GetSemiMajor(self, *args):
    345          """GetSemiMajor(self) -> double"""
    346          return _osr.SpatialReference_GetSemiMajor(self, *args)
    347
    348 -    def GetSemiMinor(self, *args):
    349          """GetSemiMinor(self) -> double"""
    350          return _osr.SpatialReference_GetSemiMinor(self, *args)
    351
    352 -    def GetInvFlattening(self, *args):
    353          """GetInvFlattening(self) -> double"""
    354          return _osr.SpatialReference_GetInvFlattening(self, *args)
    355
    356 -    def SetACEA(self, *args, **kwargs):
    357          """
    358          SetACEA(self, double stdp1, double stdp2, double clat, double clong,
    359              double fe, double fn) -> OGRErr
    360          """
    361          return _osr.SpatialReference_SetACEA(self, *args, **kwargs)
    362
    363 -    def SetAE(self, *args, **kwargs):
    364          """SetAE(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    365          return _osr.SpatialReference_SetAE(self, *args, **kwargs)
    366
    367 -    def SetBonne(self, *args, **kwargs):
    368          """SetBonne(self, double stdp, double cm, double fe, double fn) -> OGRErr"""
    369          return _osr.SpatialReference_SetBonne(self, *args, **kwargs)
    370
    371 -    def SetCEA(self, *args, **kwargs):
    372          """SetCEA(self, double stdp1, double cm, double fe, double fn) -> OGRErr"""
    373          return _osr.SpatialReference_SetCEA(self, *args, **kwargs)
    374
    375 -    def SetCS(self, *args, **kwargs):
    376          """SetCS(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    377          return _osr.SpatialReference_SetCS(self, *args, **kwargs)
    378
    379 -    def SetEC(self, *args, **kwargs):
    380          """
    381          SetEC(self, double stdp1, double stdp2, double clat, double clong,
    382              double fe, double fn) -> OGRErr
    383          """
    384          return _osr.SpatialReference_SetEC(self, *args, **kwargs)
    385
    386 -    def SetEckertIV(self, *args, **kwargs):
    387          """SetEckertIV(self, double cm, double fe, double fn) -> OGRErr"""
    388          return _osr.SpatialReference_SetEckertIV(self, *args, **kwargs)
    389
    390 -    def SetEckertVI(self, *args, **kwargs):
    391          """SetEckertVI(self, double cm, double fe, double fn) -> OGRErr"""
    392          return _osr.SpatialReference_SetEckertVI(self, *args, **kwargs)
    393
    394 -    def SetEquirectangular(self, *args, **kwargs):
    395          """SetEquirectangular(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    396          return _osr.SpatialReference_SetEquirectangular(self, *args, **kwargs)
    397
    398 -    def SetEquirectangular2(self, *args, **kwargs):
    399          """
    400          SetEquirectangular2(self, double clat, double clong, double pseudostdparallellat,
    401              double fe, double fn) -> OGRErr
    402          """
    403          return _osr.SpatialReference_SetEquirectangular2(self, *args, **kwargs)
    404
    405 -    def SetGaussSchreiberTMercator(self, *args, **kwargs):
    406          """SetGaussSchreiberTMercator(self, double clat, double clong, double sc, double fe, double fn) -> OGRErr"""
    407          return _osr.SpatialReference_SetGaussSchreiberTMercator(self, *args, **kwargs)
    408
    409 -    def SetGS(self, *args, **kwargs):
    410          """SetGS(self, double cm, double fe, double fn) -> OGRErr"""
    411          return _osr.SpatialReference_SetGS(self, *args, **kwargs)
    412
    413 -    def SetGH(self, *args, **kwargs):
    414          """SetGH(self, double cm, double fe, double fn) -> OGRErr"""
    415          return _osr.SpatialReference_SetGH(self, *args, **kwargs)
    416
    417 -    def SetIGH(self, *args):
    418          """SetIGH(self) -> OGRErr"""
    419          return _osr.SpatialReference_SetIGH(self, *args)
    420
    421 -    def SetGEOS(self, *args, **kwargs):
    422          """SetGEOS(self, double cm, double satelliteheight, double fe, double fn) -> OGRErr"""
    423          return _osr.SpatialReference_SetGEOS(self, *args, **kwargs)
    424
    425 -    def SetGnomonic(self, *args, **kwargs):
    426          """SetGnomonic(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    427          return _osr.SpatialReference_SetGnomonic(self, *args, **kwargs)
    428
    429 -    def SetHOM(self, *args, **kwargs):
    430          """
    431          SetHOM(self, double clat, double clong, double azimuth, double recttoskew,
    432              double scale, double fe, double fn) -> OGRErr
    433          """
    434          return _osr.SpatialReference_SetHOM(self, *args, **kwargs)
    435
    436 -    def SetHOM2PNO(self, *args, **kwargs):
    437          """
    438          SetHOM2PNO(self, double clat, double dfLat1, double dfLong1, double dfLat2,
    439              double dfLong2, double scale, double fe,
    440              double fn) -> OGRErr
    441          """
    442          return _osr.SpatialReference_SetHOM2PNO(self, *args, **kwargs)
    443
    444 -    def SetKrovak(self, *args, **kwargs):
    445          """
    446          SetKrovak(self, double clat, double clong, double azimuth, double pseudostdparallellat,
    447              double scale, double fe,
    448              double fn) -> OGRErr
    449          """
    450          return _osr.SpatialReference_SetKrovak(self, *args, **kwargs)
    451
    452 -    def SetLAEA(self, *args, **kwargs):
    453          """SetLAEA(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    454          return _osr.SpatialReference_SetLAEA(self, *args, **kwargs)
    455
    456 -    def SetLCC(self, *args, **kwargs):
    457          """
    458          SetLCC(self, double stdp1, double stdp2, double clat, double clong,
    459              double fe, double fn) -> OGRErr
    460          """
    461          return _osr.SpatialReference_SetLCC(self, *args, **kwargs)
    462
    463 -    def SetLCC1SP(self, *args, **kwargs):
    464          """
    465          SetLCC1SP(self, double clat, double clong, double scale, double fe,
    466              double fn) -> OGRErr
    467          """
    468          return _osr.SpatialReference_SetLCC1SP(self, *args, **kwargs)
    469
    470 -    def SetLCCB(self, *args, **kwargs):
    471          """
    472          SetLCCB(self, double stdp1, double stdp2, double clat, double clong,
    473              double fe, double fn) -> OGRErr
    474          """
    475          return _osr.SpatialReference_SetLCCB(self, *args, **kwargs)
    476
    477 -    def SetMC(self, *args, **kwargs):
    478          """SetMC(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    479          return _osr.SpatialReference_SetMC(self, *args, **kwargs)
    480
    481 -    def SetMercator(self, *args, **kwargs):
    482          """
    483          SetMercator(self, double clat, double clong, double scale, double fe,
    484              double fn) -> OGRErr
    485          """
    486          return _osr.SpatialReference_SetMercator(self, *args, **kwargs)
    487
    488 -    def SetMollweide(self, *args, **kwargs):
    489          """SetMollweide(self, double cm, double fe, double fn) -> OGRErr"""
    490          return _osr.SpatialReference_SetMollweide(self, *args, **kwargs)
    491
    492 -    def SetNZMG(self, *args, **kwargs):
    493          """SetNZMG(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    494          return _osr.SpatialReference_SetNZMG(self, *args, **kwargs)
    495
    496 -    def SetOS(self, *args, **kwargs):
    497          """
    498          SetOS(self, double dfOriginLat, double dfCMeridian, double scale,
    499              double fe, double fn) -> OGRErr
    500          """
    501          return _osr.SpatialReference_SetOS(self, *args, **kwargs)
    502
    503 -    def SetOrthographic(self, *args, **kwargs):
    504          """SetOrthographic(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    505          return _osr.SpatialReference_SetOrthographic(self, *args, **kwargs)
    506
    507 -    def SetPolyconic(self, *args, **kwargs):
    508          """SetPolyconic(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    509          return _osr.SpatialReference_SetPolyconic(self, *args, **kwargs)
    510
    511 -    def SetPS(self, *args, **kwargs):
    512          """
    513          SetPS(self, double clat, double clong, double scale, double fe,
    514              double fn) -> OGRErr
    515          """
    516          return _osr.SpatialReference_SetPS(self, *args, **kwargs)
    517
    518 -    def SetRobinson(self, *args, **kwargs):
    519          """SetRobinson(self, double clong, double fe, double fn) -> OGRErr"""
    520          return _osr.SpatialReference_SetRobinson(self, *args, **kwargs)
    521
    522 -    def SetSinusoidal(self, *args, **kwargs):
    523          """SetSinusoidal(self, double clong, double fe, double fn) -> OGRErr"""
    524          return _osr.SpatialReference_SetSinusoidal(self, *args, **kwargs)
    525
    526 -    def SetStereographic(self, *args, **kwargs):
    527          """
    528          SetStereographic(self, double clat, double clong, double scale, double fe,
    529              double fn) -> OGRErr
    530          """
    531          return _osr.SpatialReference_SetStereographic(self, *args, **kwargs)
    532
    533 -    def SetSOC(self, *args, **kwargs):
    534          """SetSOC(self, double latitudeoforigin, double cm, double fe, double fn) -> OGRErr"""
    535          return _osr.SpatialReference_SetSOC(self, *args, **kwargs)
    536
    537 -    def SetTM(self, *args, **kwargs):
    538          """
    539          SetTM(self, double clat, double clong, double scale, double fe,
    540              double fn) -> OGRErr
    541          """
    542          return _osr.SpatialReference_SetTM(self, *args, **kwargs)
    543
    544 -    def SetTMVariant(self, *args, **kwargs):
    545          """
    546          SetTMVariant(self, char pszVariantName, double clat, double clong, double scale,
    547              double fe, double fn) -> OGRErr
    548          """
    549          return _osr.SpatialReference_SetTMVariant(self, *args, **kwargs)
    550
    551 -    def SetTMG(self, *args, **kwargs):
    552          """SetTMG(self, double clat, double clong, double fe, double fn) -> OGRErr"""
    553          return _osr.SpatialReference_SetTMG(self, *args, **kwargs)
    554
    555 -    def SetTMSO(self, *args, **kwargs):
    556          """
    557          SetTMSO(self, double clat, double clong, double scale, double fe,
    558              double fn) -> OGRErr
    559          """
    560          return _osr.SpatialReference_SetTMSO(self, *args, **kwargs)
    561
    562 -    def SetVDG(self, *args, **kwargs):
    563          """SetVDG(self, double clong, double fe, double fn) -> OGRErr"""
    564          return _osr.SpatialReference_SetVDG(self, *args, **kwargs)
    565
    566 -    def SetWellKnownGeogCS(self, *args):
    567          """SetWellKnownGeogCS(self, char name) -> OGRErr"""
    568          return _osr.SpatialReference_SetWellKnownGeogCS(self, *args)
    569
    570 -    def SetFromUserInput(self, *args):
    571          """SetFromUserInput(self, char name) -> OGRErr"""
    572          return _osr.SpatialReference_SetFromUserInput(self, *args)
    573
    574 -    def CopyGeogCSFrom(self, *args):
    575          """CopyGeogCSFrom(self, SpatialReference rhs) -> OGRErr"""
    576          return _osr.SpatialReference_CopyGeogCSFrom(self, *args)
    577
    578 -    def SetTOWGS84(self, *args):
    579          """
    580          SetTOWGS84(self, double p1, double p2, double p3, double p4 = 0.0, double p5 = 0.0,
    581              double p6 = 0.0, double p7 = 0.0) -> OGRErr
    582          """
    583          return _osr.SpatialReference_SetTOWGS84(self, *args)
    584
    585 -    def GetTOWGS84(self, *args):
    586          """GetTOWGS84(self) -> OGRErr"""
    587          return _osr.SpatialReference_GetTOWGS84(self, *args)
    588
    589 -    def SetLocalCS(self, *args):
    590          """SetLocalCS(self, char pszName) -> OGRErr"""
    591          return _osr.SpatialReference_SetLocalCS(self, *args)
    592
    593 -    def SetGeogCS(self, *args):
    594          """
    595          SetGeogCS(self, char pszGeogName, char pszDatumName, char pszEllipsoidName,
    596              double dfSemiMajor, double dfInvFlattening,
    597              char pszPMName = "Greenwich", double dfPMOffset = 0.0,
    598              char pszUnits = "degree", double dfConvertToRadians = 0.0174532925199433) -> OGRErr
    599          """
    600          return _osr.SpatialReference_SetGeogCS(self, *args)
    601
    602 -    def SetProjCS(self, *args):
    603          """SetProjCS(self, char name = "unnamed") -> OGRErr"""
    604          return _osr.SpatialReference_SetProjCS(self, *args)
    605
    606 -    def SetGeocCS(self, *args):
    607          """SetGeocCS(self, char name = "unnamed") -> OGRErr"""
    608          return _osr.SpatialReference_SetGeocCS(self, *args)
    609
    610 -    def SetVertCS(self, *args):
    611          """
    612          SetVertCS(self, char VertCSName = "unnamed", char VertDatumName = "unnamed",
    613              int VertDatumType = 0) -> OGRErr
    614          """
    615          return _osr.SpatialReference_SetVertCS(self, *args)
    616
    617 -    def SetCompoundCS(self, *args):
    618          """SetCompoundCS(self, char name, SpatialReference horizcs, SpatialReference vertcs) -> OGRErr"""
    619          return _osr.SpatialReference_SetCompoundCS(self, *args)
    620
    621 -    def ImportFromWkt(self, *args):
    622          """ImportFromWkt(self, char ppszInput) -> OGRErr"""
    623          return _osr.SpatialReference_ImportFromWkt(self, *args)
    624
    625 -    def ImportFromProj4(self, *args):
    626          """ImportFromProj4(self, char ppszInput) -> OGRErr"""
    627          return _osr.SpatialReference_ImportFromProj4(self, *args)
    628
    629 -    def ImportFromUrl(self, *args):
    630          """ImportFromUrl(self, char url) -> OGRErr"""
    631          return _osr.SpatialReference_ImportFromUrl(self, *args)
    632
    633 -    def ImportFromESRI(self, *args):
    634          """ImportFromESRI(self, char ppszInput) -> OGRErr"""
    635          return _osr.SpatialReference_ImportFromESRI(self, *args)
    636
    637 -    def ImportFromEPSG(self, *args):
    638          """ImportFromEPSG(self, int arg) -> OGRErr"""
    639          return _osr.SpatialReference_ImportFromEPSG(self, *args)
    640
    641 -    def ImportFromEPSGA(self, *args):
    642          """ImportFromEPSGA(self, int arg) -> OGRErr"""
    643          return _osr.SpatialReference_ImportFromEPSGA(self, *args)
    644
    645 -    def ImportFromPCI(self, *args):
    646          """ImportFromPCI(self, char proj, char units = "METRE", double argin = 0) -> OGRErr"""
    647          return _osr.SpatialReference_ImportFromPCI(self, *args)
    648
    649 -    def ImportFromUSGS(self, *args):
    650          """ImportFromUSGS(self, long proj_code, long zone = 0, double argin = 0, long datum_code = 0) -> OGRErr"""
    651          return _osr.SpatialReference_ImportFromUSGS(self, *args)
    652
    653 -    def ImportFromXML(self, *args):
    654          """ImportFromXML(self, char xmlString) -> OGRErr"""
    655          return _osr.SpatialReference_ImportFromXML(self, *args)
    656
    657 -    def ImportFromERM(self, *args):
    658          """ImportFromERM(self, char proj, char datum, char units) -> OGRErr"""
    659          return _osr.SpatialReference_ImportFromERM(self, *args)
    660
    661 -    def ImportFromMICoordSys(self, *args):
    662          """ImportFromMICoordSys(self, char pszCoordSys) -> OGRErr"""
    663          return _osr.SpatialReference_ImportFromMICoordSys(self, *args)
    664
    665 -    def ExportToWkt(self, *args):
    666          """ExportToWkt(self) -> OGRErr"""
    667          return _osr.SpatialReference_ExportToWkt(self, *args)
    668
    669 -    def ExportToPrettyWkt(self, *args):
    670          """ExportToPrettyWkt(self, int simplify = 0) -> OGRErr"""
    671          return _osr.SpatialReference_ExportToPrettyWkt(self, *args)
    672
    673 -    def ExportToProj4(self, *args):
    674          """ExportToProj4(self) -> OGRErr"""
    675          return _osr.SpatialReference_ExportToProj4(self, *args)
    676
    677 -    def ExportToPCI(self, *args):
    678          """ExportToPCI(self) -> OGRErr"""
    679          return _osr.SpatialReference_ExportToPCI(self, *args)
    680
    681 -    def ExportToUSGS(self, *args):
    682          """ExportToUSGS(self) -> OGRErr"""
    683          return _osr.SpatialReference_ExportToUSGS(self, *args)
    684
    685 -    def ExportToXML(self, *args):
    686          """ExportToXML(self, char dialect = "") -> OGRErr"""
    687          return _osr.SpatialReference_ExportToXML(self, *args)
    688
    689 -    def ExportToMICoordSys(self, *args):
    690          """ExportToMICoordSys(self) -> OGRErr"""
    691          return _osr.SpatialReference_ExportToMICoordSys(self, *args)
    692
    693 -    def CloneGeogCS(self, *args):
    694          """CloneGeogCS(self) -> SpatialReference"""
    695          return _osr.SpatialReference_CloneGeogCS(self, *args)
    696
    697 -    def Clone(self, *args):
    698          """Clone(self) -> SpatialReference"""
    699          return _osr.SpatialReference_Clone(self, *args)
    700
    701 -    def Validate(self, *args):
    702          """Validate(self) -> OGRErr"""
    703          return _osr.SpatialReference_Validate(self, *args)
    704
    705 -    def StripCTParms(self, *args):
    706          """StripCTParms(self) -> OGRErr"""
    707          return _osr.SpatialReference_StripCTParms(self, *args)
    708
    709 -    def FixupOrdering(self, *args):
    710          """FixupOrdering(self) -> OGRErr"""
    711          return _osr.SpatialReference_FixupOrdering(self, *args)
    712
    713 -    def Fixup(self, *args):
    714          """Fixup(self) -> OGRErr"""
    715          return _osr.SpatialReference_Fixup(self, *args)
    716
    717 -    def MorphToESRI(self, *args):
    718          """MorphToESRI(self) -> OGRErr"""
    719          return _osr.SpatialReference_MorphToESRI(self, *args)
    720
    721 -    def MorphFromESRI(self, *args):
    722          """MorphFromESRI(self) -> OGRErr"""
    723          return _osr.SpatialReference_MorphFromESRI(self, *args)
    724
    725  SpatialReference_swigregister = _osr.SpatialReference_swigregister
    726  SpatialReference_swigregister(SpatialReference)
    727  GetProjectionMethods = _osr.GetProjectionMethods
    728
    729 -class CoordinateTransformation(_object):
    730      """Proxy of C++ OSRCoordinateTransformationShadow class"""
    731      __swig_setmethods__ = {}
    732      __setattr__ = lambda self, name, value: _swig_setattr(self, CoordinateTransformation, name, value)
    733      __swig_getmethods__ = {}
    734      __getattr__ = lambda self, name: _swig_getattr(self, CoordinateTransformation, name)
    735      __repr__ = _swig_repr
    736 -    def __init__(self, *args):
    737          """__init__(self, SpatialReference src, SpatialReference dst) -> CoordinateTransformation"""
    738          this = _osr.new_CoordinateTransformation(*args)
    739          try: self.this.append(this)
    740          except: self.this = this
    741      __swig_destroy__ = _osr.delete_CoordinateTransformation
    742      __del__ = lambda self : None;
    743 -    def TransformPoint(self, *args):
    744          """
    745          TransformPoint(self, double inout)
    746          TransformPoint(self, double x, double y, double z = 0.0)
    747          """
    748          return _osr.CoordinateTransformation_TransformPoint(self, *args)
    749
    750 -    def TransformPoints(self, *args):
    751          """TransformPoints(self, int nCount)"""
    752          return _osr.CoordinateTransformation_TransformPoints(self, *args)
    753
    754  CoordinateTransformation_swigregister = _osr.CoordinateTransformation_swigregister
    755  CoordinateTransformation_swigregister(CoordinateTransformation)
    756