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 3.0.12
       3  #
       4  # Do not make changes to this file unless you know what you are doing--modify
       5  # the SWIG interface file instead.
       6
       7  from sys import version_info as _swig_python_version_info
       8  if _swig_python_version_info >= (2, 7, 0):
       9 -    def swig_import_helper():
      10          import importlib
      11          pkg = __name__.rpartition('.')[0]
      12          mname = '.'.join((pkg, '_osr')).lstrip('.')
      13          try:
      14              return importlib.import_module(mname)
      15          except ImportError:
      16              return importlib.import_module('_osr')
      17      _osr = swig_import_helper()
      18      del swig_import_helper
      19  elif _swig_python_version_info >= (2, 6, 0):
      20 -    def swig_import_helper():
      21          from os.path import dirname
      22          import imp
      23          fp = None
      24          try:
      25              fp, pathname, description = imp.find_module('_osr', [dirname(__file__)])
      26          except ImportError:
      27              import _osr
      28              return _osr
      29          try:
      30              _mod = imp.load_module('_osr', fp, pathname, description)
      31          finally:
      32              if fp is not None:
      33                  fp.close()
      34          return _mod
      35      _osr = swig_import_helper()
      36      del swig_import_helper
      37  else:
      38      import _osr
      39  del _swig_python_version_info
      40
      41  try:
      42      _swig_property = property
      43  except NameError:
      44      pass  # Python < 2.2 doesn't have 'property'.
      45
      46  try:
      47      import builtins as __builtin__
      48  except ImportError:
      49      import __builtin__
      50
      51 -def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
      52      if (name == "thisown"):
      53          return self.this.own(value)
      54      if (name == "this"):
      55          if type(value).__name__ == 'SwigPyObject':
      56              self.__dict__[name] = value
      57              return
      58      method = class_type.__swig_setmethods__.get(name, None)
      59      if method:
      60          return method(self, value)
      61      if (not static):
      62          if _newclass:
      63              object.__setattr__(self, name, value)
      64          else:
      65              self.__dict__[name] = value
      66      else:
      67          raise AttributeError("You cannot add attributes to %s" % self)
      68
      69
      70 -def _swig_setattr(self, class_type, name, value):
      71      return _swig_setattr_nondynamic(self, class_type, name, value, 0)
      72
      73
      74 -def _swig_getattr(self, class_type, name):
      75      if (name == "thisown"):
      76          return self.this.own()
      77      method = class_type.__swig_getmethods__.get(name, None)
      78      if method:
      79          return method(self)
      80      raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
      81
      82
      83 -def _swig_repr(self):
      84      try:
      85          strthis = "proxy of " + self.this.__repr__()
      86      except __builtin__.Exception:
      87          strthis = ""
      88      return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
      89
      90  try:
      91      _object = object
      92      _newclass = 1
      93  except __builtin__.Exception:
      94 -    class _object:
      95          pass
      96      _newclass = 0
      97
      98  SRS_WKT_WGS84_LAT_LONG = _osr.SRS_WKT_WGS84_LAT_LONG
      99  SRS_PT_ALBERS_CONIC_EQUAL_AREA = _osr.SRS_PT_ALBERS_CONIC_EQUAL_AREA
     100  SRS_PT_AZIMUTHAL_EQUIDISTANT = _osr.SRS_PT_AZIMUTHAL_EQUIDISTANT
     101  SRS_PT_CASSINI_SOLDNER = _osr.SRS_PT_CASSINI_SOLDNER
     102  SRS_PT_CYLINDRICAL_EQUAL_AREA = _osr.SRS_PT_CYLINDRICAL_EQUAL_AREA
     103  SRS_PT_BONNE = _osr.SRS_PT_BONNE
     104  SRS_PT_ECKERT_I = _osr.SRS_PT_ECKERT_I
     105  SRS_PT_ECKERT_II = _osr.SRS_PT_ECKERT_II
     106  SRS_PT_ECKERT_III = _osr.SRS_PT_ECKERT_III
     107  SRS_PT_ECKERT_IV = _osr.SRS_PT_ECKERT_IV
     108  SRS_PT_ECKERT_V = _osr.SRS_PT_ECKERT_V
     109  SRS_PT_ECKERT_VI = _osr.SRS_PT_ECKERT_VI
     110  SRS_PT_EQUIDISTANT_CONIC = _osr.SRS_PT_EQUIDISTANT_CONIC
     111  SRS_PT_EQUIRECTANGULAR = _osr.SRS_PT_EQUIRECTANGULAR
     112  SRS_PT_GALL_STEREOGRAPHIC = _osr.SRS_PT_GALL_STEREOGRAPHIC
     113  SRS_PT_GAUSSSCHREIBERTMERCATOR = _osr.SRS_PT_GAUSSSCHREIBERTMERCATOR
     114  SRS_PT_GEOSTATIONARY_SATELLITE = _osr.SRS_PT_GEOSTATIONARY_SATELLITE
     115  SRS_PT_GOODE_HOMOLOSINE = _osr.SRS_PT_GOODE_HOMOLOSINE
     116  SRS_PT_IGH = _osr.SRS_PT_IGH
     117  SRS_PT_GNOMONIC = _osr.SRS_PT_GNOMONIC
     118  SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER
     119  SRS_PT_HOTINE_OBLIQUE_MERCATOR = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR
     120  SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN
     121  SRS_PT_LABORDE_OBLIQUE_MERCATOR = _osr.SRS_PT_LABORDE_OBLIQUE_MERCATOR
     122  SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
     123  SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
     124  SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM
     125  SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA = _osr.SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA
     126  SRS_PT_MERCATOR_1SP = _osr.SRS_PT_MERCATOR_1SP
     127  SRS_PT_MERCATOR_2SP = _osr.SRS_PT_MERCATOR_2SP
     128  SRS_PT_MERCATOR_AUXILIARY_SPHERE = _osr.SRS_PT_MERCATOR_AUXILIARY_SPHERE
     129  SRS_PT_MILLER_CYLINDRICAL = _osr.SRS_PT_MILLER_CYLINDRICAL
     130  SRS_PT_MOLLWEIDE = _osr.SRS_PT_MOLLWEIDE
     131  SRS_PT_NEW_ZEALAND_MAP_GRID = _osr.SRS_PT_NEW_ZEALAND_MAP_GRID
     132  SRS_PT_OBLIQUE_STEREOGRAPHIC = _osr.SRS_PT_OBLIQUE_STEREOGRAPHIC
     133  SRS_PT_ORTHOGRAPHIC = _osr.SRS_PT_ORTHOGRAPHIC
     134  SRS_PT_POLAR_STEREOGRAPHIC = _osr.SRS_PT_POLAR_STEREOGRAPHIC
     135  SRS_PT_POLYCONIC = _osr.SRS_PT_POLYCONIC
     136  SRS_PT_ROBINSON = _osr.SRS_PT_ROBINSON
     137  SRS_PT_SINUSOIDAL = _osr.SRS_PT_SINUSOIDAL
     138  SRS_PT_STEREOGRAPHIC = _osr.SRS_PT_STEREOGRAPHIC
     139  SRS_PT_SWISS_OBLIQUE_CYLINDRICAL = _osr.SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
     140  SRS_PT_TRANSVERSE_MERCATOR = _osr.SRS_PT_TRANSVERSE_MERCATOR
     141  SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED = _osr.SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED
     142  SRS_PT_TRANSVERSE_MERCATOR_MI_21 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_21
     143  SRS_PT_TRANSVERSE_MERCATOR_MI_22 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_22
     144  SRS_PT_TRANSVERSE_MERCATOR_MI_23 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_23
     145  SRS_PT_TRANSVERSE_MERCATOR_MI_24 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_24
     146  SRS_PT_TRANSVERSE_MERCATOR_MI_25 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_25
     147  SRS_PT_TUNISIA_MINING_GRID = _osr.SRS_PT_TUNISIA_MINING_GRID
     148  SRS_PT_TWO_POINT_EQUIDISTANT = _osr.SRS_PT_TWO_POINT_EQUIDISTANT
     149  SRS_PT_VANDERGRINTEN = _osr.SRS_PT_VANDERGRINTEN
     150  SRS_PT_KROVAK = _osr.SRS_PT_KROVAK
     151  SRS_PT_IMW_POLYCONIC = _osr.SRS_PT_IMW_POLYCONIC
     152  SRS_PT_WAGNER_I = _osr.SRS_PT_WAGNER_I
     153  SRS_PT_WAGNER_II = _osr.SRS_PT_WAGNER_II
     154  SRS_PT_WAGNER_III = _osr.SRS_PT_WAGNER_III
     155  SRS_PT_WAGNER_IV = _osr.SRS_PT_WAGNER_IV
     156  SRS_PT_WAGNER_V = _osr.SRS_PT_WAGNER_V
     157  SRS_PT_WAGNER_VI = _osr.SRS_PT_WAGNER_VI
     158  SRS_PT_WAGNER_VII = _osr.SRS_PT_WAGNER_VII
     159  SRS_PT_QSC = _osr.SRS_PT_QSC
     160  SRS_PT_AITOFF = _osr.SRS_PT_AITOFF
     161  SRS_PT_WINKEL_I = _osr.SRS_PT_WINKEL_I
     162  SRS_PT_WINKEL_II = _osr.SRS_PT_WINKEL_II
     163  SRS_PT_WINKEL_TRIPEL = _osr.SRS_PT_WINKEL_TRIPEL
     164  SRS_PT_CRASTER_PARABOLIC = _osr.SRS_PT_CRASTER_PARABOLIC
     165  SRS_PT_LOXIMUTHAL = _osr.SRS_PT_LOXIMUTHAL
     166  SRS_PT_QUARTIC_AUTHALIC = _osr.SRS_PT_QUARTIC_AUTHALIC
     167  SRS_PT_SCH = _osr.SRS_PT_SCH
     168  SRS_PP_CENTRAL_MERIDIAN = _osr.SRS_PP_CENTRAL_MERIDIAN
     169  SRS_PP_SCALE_FACTOR = _osr.SRS_PP_SCALE_FACTOR
     170  SRS_PP_STANDARD_PARALLEL_1 = _osr.SRS_PP_STANDARD_PARALLEL_1
     171  SRS_PP_STANDARD_PARALLEL_2 = _osr.SRS_PP_STANDARD_PARALLEL_2
     172  SRS_PP_PSEUDO_STD_PARALLEL_1 = _osr.SRS_PP_PSEUDO_STD_PARALLEL_1
     173  SRS_PP_LONGITUDE_OF_CENTER = _osr.SRS_PP_LONGITUDE_OF_CENTER
     174  SRS_PP_LATITUDE_OF_CENTER = _osr.SRS_PP_LATITUDE_OF_CENTER
     175  SRS_PP_LONGITUDE_OF_ORIGIN = _osr.SRS_PP_LONGITUDE_OF_ORIGIN
     176  SRS_PP_LATITUDE_OF_ORIGIN = _osr.SRS_PP_LATITUDE_OF_ORIGIN
     177  SRS_PP_FALSE_EASTING = _osr.SRS_PP_FALSE_EASTING
     178  SRS_PP_FALSE_NORTHING = _osr.SRS_PP_FALSE_NORTHING
     179  SRS_PP_AZIMUTH = _osr.SRS_PP_AZIMUTH
     180  SRS_PP_LONGITUDE_OF_POINT_1 = _osr.SRS_PP_LONGITUDE_OF_POINT_1
     181  SRS_PP_LATITUDE_OF_POINT_1 = _osr.SRS_PP_LATITUDE_OF_POINT_1
     182  SRS_PP_LONGITUDE_OF_POINT_2 = _osr.SRS_PP_LONGITUDE_OF_POINT_2
     183  SRS_PP_LATITUDE_OF_POINT_2 = _osr.SRS_PP_LATITUDE_OF_POINT_2
     184  SRS_PP_LONGITUDE_OF_POINT_3 = _osr.SRS_PP_LONGITUDE_OF_POINT_3
     185  SRS_PP_LATITUDE_OF_POINT_3 = _osr.SRS_PP_LATITUDE_OF_POINT_3
     186  SRS_PP_RECTIFIED_GRID_ANGLE = _osr.SRS_PP_RECTIFIED_GRID_ANGLE
     187  SRS_PP_LANDSAT_NUMBER = _osr.SRS_PP_LANDSAT_NUMBER
     188  SRS_PP_PATH_NUMBER = _osr.SRS_PP_PATH_NUMBER
     189  SRS_PP_PERSPECTIVE_POINT_HEIGHT = _osr.SRS_PP_PERSPECTIVE_POINT_HEIGHT
     190  SRS_PP_SATELLITE_HEIGHT = _osr.SRS_PP_SATELLITE_HEIGHT
     191  SRS_PP_FIPSZONE = _osr.SRS_PP_FIPSZONE
     192  SRS_PP_ZONE = _osr.SRS_PP_ZONE
     193  SRS_PP_LATITUDE_OF_1ST_POINT = _osr.SRS_PP_LATITUDE_OF_1ST_POINT
     194  SRS_PP_LONGITUDE_OF_1ST_POINT = _osr.SRS_PP_LONGITUDE_OF_1ST_POINT
     195  SRS_PP_LATITUDE_OF_2ND_POINT = _osr.SRS_PP_LATITUDE_OF_2ND_POINT
     196  SRS_PP_LONGITUDE_OF_2ND_POINT = _osr.SRS_PP_LONGITUDE_OF_2ND_POINT
     197  SRS_PP_PEG_POINT_LATITUDE = _osr.SRS_PP_PEG_POINT_LATITUDE
     198  SRS_PP_PEG_POINT_LONGITUDE = _osr.SRS_PP_PEG_POINT_LONGITUDE
     199  SRS_PP_PEG_POINT_HEADING = _osr.SRS_PP_PEG_POINT_HEADING
     200  SRS_PP_PEG_POINT_HEIGHT = _osr.SRS_PP_PEG_POINT_HEIGHT
     201  SRS_UL_METER = _osr.SRS_UL_METER
     202  SRS_UL_FOOT = _osr.SRS_UL_FOOT
     203  SRS_UL_FOOT_CONV = _osr.SRS_UL_FOOT_CONV
     204  SRS_UL_US_FOOT = _osr.SRS_UL_US_FOOT
     205  SRS_UL_US_FOOT_CONV = _osr.SRS_UL_US_FOOT_CONV
     206  SRS_UL_NAUTICAL_MILE = _osr.SRS_UL_NAUTICAL_MILE
     207  SRS_UL_NAUTICAL_MILE_CONV = _osr.SRS_UL_NAUTICAL_MILE_CONV
     208  SRS_UL_LINK = _osr.SRS_UL_LINK
     209  SRS_UL_LINK_CONV = _osr.SRS_UL_LINK_CONV
     210  SRS_UL_CHAIN = _osr.SRS_UL_CHAIN
     211  SRS_UL_CHAIN_CONV = _osr.SRS_UL_CHAIN_CONV
     212  SRS_UL_ROD = _osr.SRS_UL_ROD
     213  SRS_UL_ROD_CONV = _osr.SRS_UL_ROD_CONV
     214  SRS_UL_LINK_Clarke = _osr.SRS_UL_LINK_Clarke
     215  SRS_UL_LINK_Clarke_CONV = _osr.SRS_UL_LINK_Clarke_CONV
     216  SRS_UL_KILOMETER = _osr.SRS_UL_KILOMETER
     217  SRS_UL_KILOMETER_CONV = _osr.SRS_UL_KILOMETER_CONV
     218  SRS_UL_DECIMETER = _osr.SRS_UL_DECIMETER
     219  SRS_UL_DECIMETER_CONV = _osr.SRS_UL_DECIMETER_CONV
     220  SRS_UL_CENTIMETER = _osr.SRS_UL_CENTIMETER
     221  SRS_UL_CENTIMETER_CONV = _osr.SRS_UL_CENTIMETER_CONV
     222  SRS_UL_MILLIMETER = _osr.SRS_UL_MILLIMETER
     223  SRS_UL_MILLIMETER_CONV = _osr.SRS_UL_MILLIMETER_CONV
     224  SRS_UL_INTL_NAUT_MILE = _osr.SRS_UL_INTL_NAUT_MILE
     225  SRS_UL_INTL_NAUT_MILE_CONV = _osr.SRS_UL_INTL_NAUT_MILE_CONV
     226  SRS_UL_INTL_INCH = _osr.SRS_UL_INTL_INCH
     227  SRS_UL_INTL_INCH_CONV = _osr.SRS_UL_INTL_INCH_CONV
     228  SRS_UL_INTL_FOOT = _osr.SRS_UL_INTL_FOOT
     229  SRS_UL_INTL_FOOT_CONV = _osr.SRS_UL_INTL_FOOT_CONV
     230  SRS_UL_INTL_YARD = _osr.SRS_UL_INTL_YARD
     231  SRS_UL_INTL_YARD_CONV = _osr.SRS_UL_INTL_YARD_CONV
     232  SRS_UL_INTL_STAT_MILE = _osr.SRS_UL_INTL_STAT_MILE
     233  SRS_UL_INTL_STAT_MILE_CONV = _osr.SRS_UL_INTL_STAT_MILE_CONV
     234  SRS_UL_INTL_FATHOM = _osr.SRS_UL_INTL_FATHOM
     235  SRS_UL_INTL_FATHOM_CONV = _osr.SRS_UL_INTL_FATHOM_CONV
     236  SRS_UL_INTL_CHAIN = _osr.SRS_UL_INTL_CHAIN
     237  SRS_UL_INTL_CHAIN_CONV = _osr.SRS_UL_INTL_CHAIN_CONV
     238  SRS_UL_INTL_LINK = _osr.SRS_UL_INTL_LINK
     239  SRS_UL_INTL_LINK_CONV = _osr.SRS_UL_INTL_LINK_CONV
     240  SRS_UL_US_INCH = _osr.SRS_UL_US_INCH
     241  SRS_UL_US_INCH_CONV = _osr.SRS_UL_US_INCH_CONV
     242  SRS_UL_US_YARD = _osr.SRS_UL_US_YARD
     243  SRS_UL_US_YARD_CONV = _osr.SRS_UL_US_YARD_CONV
     244  SRS_UL_US_CHAIN = _osr.SRS_UL_US_CHAIN
     245  SRS_UL_US_CHAIN_CONV = _osr.SRS_UL_US_CHAIN_CONV
     246  SRS_UL_US_STAT_MILE = _osr.SRS_UL_US_STAT_MILE
     247  SRS_UL_US_STAT_MILE_CONV = _osr.SRS_UL_US_STAT_MILE_CONV
     248  SRS_UL_INDIAN_YARD = _osr.SRS_UL_INDIAN_YARD
     249  SRS_UL_INDIAN_YARD_CONV = _osr.SRS_UL_INDIAN_YARD_CONV
     250  SRS_UL_INDIAN_FOOT = _osr.SRS_UL_INDIAN_FOOT
     251  SRS_UL_INDIAN_FOOT_CONV = _osr.SRS_UL_INDIAN_FOOT_CONV
     252  SRS_UL_INDIAN_CHAIN = _osr.SRS_UL_INDIAN_CHAIN
     253  SRS_UL_INDIAN_CHAIN_CONV = _osr.SRS_UL_INDIAN_CHAIN_CONV
     254  SRS_UA_DEGREE = _osr.SRS_UA_DEGREE
     255  SRS_UA_DEGREE_CONV = _osr.SRS_UA_DEGREE_CONV
     256  SRS_UA_RADIAN = _osr.SRS_UA_RADIAN
     257  SRS_PM_GREENWICH = _osr.SRS_PM_GREENWICH
     258  SRS_DN_NAD27 = _osr.SRS_DN_NAD27
     259  SRS_DN_NAD83 = _osr.SRS_DN_NAD83
     260  SRS_DN_WGS72 = _osr.SRS_DN_WGS72
     261  SRS_DN_WGS84 = _osr.SRS_DN_WGS84
     262  SRS_WGS84_SEMIMAJOR = _osr.SRS_WGS84_SEMIMAJOR
     263  SRS_WGS84_INVFLATTENING = _osr.SRS_WGS84_INVFLATTENING
     264  OAO_Other = _osr.OAO_Other
     265  OAO_North = _osr.OAO_North
     266  OAO_South = _osr.OAO_South
     267  OAO_East = _osr.OAO_East
     268  OAO_West = _osr.OAO_West
     269  OAO_Up = _osr.OAO_Up
     270  OAO_Down = _osr.OAO_Down
     271  OAMS_TRADITIONAL_GIS_ORDER = _osr.OAMS_TRADITIONAL_GIS_ORDER
     272  OAMS_AUTHORITY_COMPLIANT = _osr.OAMS_AUTHORITY_COMPLIANT
     273  OAMS_CUSTOM = _osr.OAMS_CUSTOM
     274
     275 -def GetUseExceptions(*args):
     276      """GetUseExceptions() -> int"""
     277      return _osr.GetUseExceptions(*args)
     278
     279 -def UseExceptions(*args):
     280      """UseExceptions()"""
     281      return _osr.UseExceptions(*args)
     282
     283 -def DontUseExceptions(*args):
     284      """DontUseExceptions()"""
     285      return _osr.DontUseExceptions(*args)
     286
     287 -def GetWellKnownGeogCSAsWKT(*args):
     288      """GetWellKnownGeogCSAsWKT(char const * name) -> OGRErr"""
     289      return _osr.GetWellKnownGeogCSAsWKT(*args)
     290
     291 -def GetUserInputAsWKT(*args):
     292      """GetUserInputAsWKT(char const * name) -> OGRErr"""
     293      return _osr.GetUserInputAsWKT(*args)
     294 -class AreaOfUse(_object):
     295      """Proxy of C++ OSRAreaOfUse class."""
     296
     297      __swig_setmethods__ = {}
     298      __setattr__ = lambda self, name, value: _swig_setattr(self, AreaOfUse, name, value)
     299      __swig_getmethods__ = {}
     300      __getattr__ = lambda self, name: _swig_getattr(self, AreaOfUse, name)
     301      __repr__ = _swig_repr
     302      __swig_getmethods__["west_lon_degree"] = _osr.AreaOfUse_west_lon_degree_get
     303      if _newclass:
     304          west_lon_degree = _swig_property(_osr.AreaOfUse_west_lon_degree_get)
     305      __swig_getmethods__["south_lat_degree"] = _osr.AreaOfUse_south_lat_degree_get
     306      if _newclass:
     307          south_lat_degree = _swig_property(_osr.AreaOfUse_south_lat_degree_get)
     308      __swig_getmethods__["east_lon_degree"] = _osr.AreaOfUse_east_lon_degree_get
     309      if _newclass:
     310          east_lon_degree = _swig_property(_osr.AreaOfUse_east_lon_degree_get)
     311      __swig_getmethods__["north_lat_degree"] = _osr.AreaOfUse_north_lat_degree_get
     312      if _newclass:
     313          north_lat_degree = _swig_property(_osr.AreaOfUse_north_lat_degree_get)
     314      __swig_getmethods__["name"] = _osr.AreaOfUse_name_get
     315      if _newclass:
     316          name = _swig_property(_osr.AreaOfUse_name_get)
     317
     318 -    def __init__(self, *args):
     319          """__init__(OSRAreaOfUse self, double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, char * name) -> AreaOfUse"""
     320          this = _osr.new_AreaOfUse(*args)
     321          try:
     322              self.this.append(this)
     323          except __builtin__.Exception:
     324              self.this = this
     325      __swig_destroy__ = _osr.delete_AreaOfUse
     326      __del__ = lambda self: None
     327  AreaOfUse_swigregister = _osr.AreaOfUse_swigregister
     328  AreaOfUse_swigregister(AreaOfUse)
     329
     330
     331 -def OSRAreaOfUse_west_lon_degree_get(*args):
     332      """OSRAreaOfUse_west_lon_degree_get(AreaOfUse area) -> double"""
     333      return _osr.OSRAreaOfUse_west_lon_degree_get(*args)
     334
     335 -def OSRAreaOfUse_south_lat_degree_get(*args):
     336      """OSRAreaOfUse_south_lat_degree_get(AreaOfUse area) -> double"""
     337      return _osr.OSRAreaOfUse_south_lat_degree_get(*args)
     338
     339 -def OSRAreaOfUse_east_lon_degree_get(*args):
     340      """OSRAreaOfUse_east_lon_degree_get(AreaOfUse area) -> double"""
     341      return _osr.OSRAreaOfUse_east_lon_degree_get(*args)
     342
     343 -def OSRAreaOfUse_north_lat_degree_get(*args):
     344      """OSRAreaOfUse_north_lat_degree_get(AreaOfUse area) -> double"""
     345      return _osr.OSRAreaOfUse_north_lat_degree_get(*args)
     346
     347 -def OSRAreaOfUse_name_get(*args):
     348      """OSRAreaOfUse_name_get(AreaOfUse area) -> char const *"""
     349      return _osr.OSRAreaOfUse_name_get(*args)
     350 -class SpatialReference(_object):
     351      """Proxy of C++ OSRSpatialReferenceShadow class."""
     352
     353      __swig_setmethods__ = {}
     354      __setattr__ = lambda self, name, value: _swig_setattr(self, SpatialReference, name, value)
     355      __swig_getmethods__ = {}
     356      __getattr__ = lambda self, name: _swig_getattr(self, SpatialReference, name)
     357      __repr__ = _swig_repr
     358
     359 -    def __init__(self, *args, **kwargs):
     360          """__init__(OSRSpatialReferenceShadow self, char const * wkt) -> SpatialReference"""
     361          this = _osr.new_SpatialReference(*args, **kwargs)
     362          try:
     363              self.this.append(this)
     364          except __builtin__.Exception:
     365              self.this = this
     366      __swig_destroy__ = _osr.delete_SpatialReference
     367      __del__ = lambda self: None
     368
     369 -    def __str__(self, *args):
     370          """__str__(SpatialReference self) -> retStringAndCPLFree *"""
     371          return _osr.SpatialReference___str__(self, *args)
     372
     373
     374 -    def GetName(self, *args):
     375          """GetName(SpatialReference self) -> char const *"""
     376          return _osr.SpatialReference_GetName(self, *args)
     377
     378
     379 -    def IsSame(self, *args, **kwargs):
     380          """IsSame(SpatialReference self, SpatialReference rhs, char ** options=None) -> int"""
     381          return _osr.SpatialReference_IsSame(self, *args, **kwargs)
     382
     383
     384 -    def IsSameGeogCS(self, *args):
     385          """IsSameGeogCS(SpatialReference self, SpatialReference rhs) -> int"""
     386          return _osr.SpatialReference_IsSameGeogCS(self, *args)
     387
     388
     389 -    def IsSameVertCS(self, *args):
     390          """IsSameVertCS(SpatialReference self, SpatialReference rhs) -> int"""
     391          return _osr.SpatialReference_IsSameVertCS(self, *args)
     392
     393
     394 -    def IsGeographic(self, *args):
     395          """IsGeographic(SpatialReference self) -> int"""
     396          return _osr.SpatialReference_IsGeographic(self, *args)
     397
     398
     399 -    def IsDerivedGeographic(self, *args):
     400          """IsDerivedGeographic(SpatialReference self) -> int"""
     401          return _osr.SpatialReference_IsDerivedGeographic(self, *args)
     402
     403
     404 -    def IsProjected(self, *args):
     405          """IsProjected(SpatialReference self) -> int"""
     406          return _osr.SpatialReference_IsProjected(self, *args)
     407
     408
     409 -    def IsCompound(self, *args):
     410          """IsCompound(SpatialReference self) -> int"""
     411          return _osr.SpatialReference_IsCompound(self, *args)
     412
     413
     414 -    def IsGeocentric(self, *args):
     415          """IsGeocentric(SpatialReference self) -> int"""
     416          return _osr.SpatialReference_IsGeocentric(self, *args)
     417
     418
     419 -    def IsLocal(self, *args):
     420          """IsLocal(SpatialReference self) -> int"""
     421          return _osr.SpatialReference_IsLocal(self, *args)
     422
     423
     424 -    def IsVertical(self, *args):
     425          """IsVertical(SpatialReference self) -> int"""
     426          return _osr.SpatialReference_IsVertical(self, *args)
     427
     428
     429 -    def EPSGTreatsAsLatLong(self, *args):
     430          """EPSGTreatsAsLatLong(SpatialReference self) -> int"""
     431          return _osr.SpatialReference_EPSGTreatsAsLatLong(self, *args)
     432
     433
     434 -    def EPSGTreatsAsNorthingEasting(self, *args):
     435          """EPSGTreatsAsNorthingEasting(SpatialReference self) -> int"""
     436          return _osr.SpatialReference_EPSGTreatsAsNorthingEasting(self, *args)
     437
     438
     439 -    def SetAuthority(self, *args):
     440          """SetAuthority(SpatialReference self, char const * pszTargetKey, char const * pszAuthority, int nCode) -> OGRErr"""
     441          return _osr.SpatialReference_SetAuthority(self, *args)
     442
     443
     444 -    def GetAttrValue(self, *args):
     445          """GetAttrValue(SpatialReference self, char const * name, int child=0) -> char const *"""
     446          return _osr.SpatialReference_GetAttrValue(self, *args)
     447
     448
     449 -    def SetAttrValue(self, *args):
     450          """SetAttrValue(SpatialReference self, char const * name, char const * value) -> OGRErr"""
     451          return _osr.SpatialReference_SetAttrValue(self, *args)
     452
     453
     454 -    def SetAngularUnits(self, *args):
     455          """SetAngularUnits(SpatialReference self, char const * name, double to_radians) -> OGRErr"""
     456          return _osr.SpatialReference_SetAngularUnits(self, *args)
     457
     458
     459 -    def GetAngularUnits(self, *args):
     460          """GetAngularUnits(SpatialReference self) -> double"""
     461          return _osr.SpatialReference_GetAngularUnits(self, *args)
     462
     463
     464 -    def GetAngularUnitsName(self, *args):
     465          """GetAngularUnitsName(SpatialReference self) -> char const *"""
     466          return _osr.SpatialReference_GetAngularUnitsName(self, *args)
     467
     468
     469 -    def SetTargetLinearUnits(self, *args):
     470          """SetTargetLinearUnits(SpatialReference self, char const * target, char const * name, double to_meters) -> OGRErr"""
     471          return _osr.SpatialReference_SetTargetLinearUnits(self, *args)
     472
     473
     474 -    def SetLinearUnits(self, *args):
     475          """SetLinearUnits(SpatialReference self, char const * name, double to_meters) -> OGRErr"""
     476          return _osr.SpatialReference_SetLinearUnits(self, *args)
     477
     478
     479 -    def SetLinearUnitsAndUpdateParameters(self, *args):
     480          """SetLinearUnitsAndUpdateParameters(SpatialReference self, char const * name, double to_meters) -> OGRErr"""
     481          return _osr.SpatialReference_SetLinearUnitsAndUpdateParameters(self, *args)
     482
     483
     484 -    def GetTargetLinearUnits(self, *args):
     485          """GetTargetLinearUnits(SpatialReference self, char const * target_key) -> double"""
     486          return _osr.SpatialReference_GetTargetLinearUnits(self, *args)
     487
     488
     489 -    def GetLinearUnits(self, *args):
     490          """GetLinearUnits(SpatialReference self) -> double"""
     491          return _osr.SpatialReference_GetLinearUnits(self, *args)
     492
     493
     494 -    def GetLinearUnitsName(self, *args):
     495          """GetLinearUnitsName(SpatialReference self) -> char const *"""
     496          return _osr.SpatialReference_GetLinearUnitsName(self, *args)
     497
     498
     499 -    def GetAuthorityCode(self, *args):
     500          """GetAuthorityCode(SpatialReference self, char const * target_key) -> char const *"""
     501          return _osr.SpatialReference_GetAuthorityCode(self, *args)
     502
     503
     504 -    def GetAuthorityName(self, *args):
     505          """GetAuthorityName(SpatialReference self, char const * target_key) -> char const *"""
     506          return _osr.SpatialReference_GetAuthorityName(self, *args)
     507
     508
     509 -    def GetAreaOfUse(self, *args):
     510          """GetAreaOfUse(SpatialReference self) -> AreaOfUse"""
     511          return _osr.SpatialReference_GetAreaOfUse(self, *args)
     512
     513
     514 -    def GetAxisName(self, *args):
     515          """GetAxisName(SpatialReference self, char const * target_key, int iAxis) -> char const *"""
     516          return _osr.SpatialReference_GetAxisName(self, *args)
     517
     518
     519 -    def GetAxesCount(self, *args):
     520          """GetAxesCount(SpatialReference self) -> int"""
     521          return _osr.SpatialReference_GetAxesCount(self, *args)
     522
     523
     524 -    def GetAxisOrientation(self, *args):
     525          """GetAxisOrientation(SpatialReference self, char const * target_key, int iAxis) -> OGRAxisOrientation"""
     526          return _osr.SpatialReference_GetAxisOrientation(self, *args)
     527
     528
     529 -    def GetAxisMappingStrategy(self, *args):
     530          """GetAxisMappingStrategy(SpatialReference self) -> OSRAxisMappingStrategy"""
     531          return _osr.SpatialReference_GetAxisMappingStrategy(self, *args)
     532
     533
     534 -    def SetAxisMappingStrategy(self, *args):
     535          """SetAxisMappingStrategy(SpatialReference self, OSRAxisMappingStrategy strategy)"""
     536          return _osr.SpatialReference_SetAxisMappingStrategy(self, *args)
     537
     538
     539 -    def GetDataAxisToSRSAxisMapping(self, *args):
     540          """GetDataAxisToSRSAxisMapping(SpatialReference self)"""
     541          return _osr.SpatialReference_GetDataAxisToSRSAxisMapping(self, *args)
     542
     543
     544 -    def SetDataAxisToSRSAxisMapping(self, *args):
     545          """SetDataAxisToSRSAxisMapping(SpatialReference self, int nList) -> OGRErr"""
     546          return _osr.SpatialReference_SetDataAxisToSRSAxisMapping(self, *args)
     547
     548
     549 -    def SetUTM(self, *args):
     550          """SetUTM(SpatialReference self, int zone, int north=1) -> OGRErr"""
     551          return _osr.SpatialReference_SetUTM(self, *args)
     552
     553
     554 -    def GetUTMZone(self, *args):
     555          """GetUTMZone(SpatialReference self) -> int"""
     556          return _osr.SpatialReference_GetUTMZone(self, *args)
     557
     558
     559 -    def SetStatePlane(self, *args):
     560          """SetStatePlane(SpatialReference self, int zone, int is_nad83=1, char const * unitsname, double units=0.0) -> OGRErr"""
     561          return _osr.SpatialReference_SetStatePlane(self, *args)
     562
     563
     564 -    def AutoIdentifyEPSG(self, *args):
     565          """AutoIdentifyEPSG(SpatialReference self) -> OGRErr"""
     566          return _osr.SpatialReference_AutoIdentifyEPSG(self, *args)
     567
     568
     569 -    def FindMatches(self, *args):
     570          """FindMatches(SpatialReference self, char ** options=None)"""
     571          return _osr.SpatialReference_FindMatches(self, *args)
     572
     573
     574 -    def SetProjection(self, *args):
     575          """SetProjection(SpatialReference self, char const * arg) -> OGRErr"""
     576          return _osr.SpatialReference_SetProjection(self, *args)
     577
     578
     579 -    def SetProjParm(self, *args):
     580          """SetProjParm(SpatialReference self, char const * name, double val) -> OGRErr"""
     581          return _osr.SpatialReference_SetProjParm(self, *args)
     582
     583
     584 -    def GetProjParm(self, *args):
     585          """GetProjParm(SpatialReference self, char const * name, double default_val=0.0) -> double"""
     586          return _osr.SpatialReference_GetProjParm(self, *args)
     587
     588
     589 -    def SetNormProjParm(self, *args):
     590          """SetNormProjParm(SpatialReference self, char const * name, double val) -> OGRErr"""
     591          return _osr.SpatialReference_SetNormProjParm(self, *args)
     592
     593
     594 -    def GetNormProjParm(self, *args):
     595          """GetNormProjParm(SpatialReference self, char const * name, double default_val=0.0) -> double"""
     596          return _osr.SpatialReference_GetNormProjParm(self, *args)
     597
     598
     599 -    def GetSemiMajor(self, *args):
     600          """GetSemiMajor(SpatialReference self) -> double"""
     601          return _osr.SpatialReference_GetSemiMajor(self, *args)
     602
     603
     604 -    def GetSemiMinor(self, *args):
     605          """GetSemiMinor(SpatialReference self) -> double"""
     606          return _osr.SpatialReference_GetSemiMinor(self, *args)
     607
     608
     609 -    def GetInvFlattening(self, *args):
     610          """GetInvFlattening(SpatialReference self) -> double"""
     611          return _osr.SpatialReference_GetInvFlattening(self, *args)
     612
     613
     614 -    def SetACEA(self, *args, **kwargs):
     615          """SetACEA(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
     616          return _osr.SpatialReference_SetACEA(self, *args, **kwargs)
     617
     618
     619 -    def SetAE(self, *args, **kwargs):
     620          """SetAE(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     621          return _osr.SpatialReference_SetAE(self, *args, **kwargs)
     622
     623
     624 -    def SetBonne(self, *args, **kwargs):
     625          """SetBonne(SpatialReference self, double stdp, double cm, double fe, double fn) -> OGRErr"""
     626          return _osr.SpatialReference_SetBonne(self, *args, **kwargs)
     627
     628
     629 -    def SetCEA(self, *args, **kwargs):
     630          """SetCEA(SpatialReference self, double stdp1, double cm, double fe, double fn) -> OGRErr"""
     631          return _osr.SpatialReference_SetCEA(self, *args, **kwargs)
     632
     633
     634 -    def SetCS(self, *args, **kwargs):
     635          """SetCS(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     636          return _osr.SpatialReference_SetCS(self, *args, **kwargs)
     637
     638
     639 -    def SetEC(self, *args, **kwargs):
     640          """SetEC(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
     641          return _osr.SpatialReference_SetEC(self, *args, **kwargs)
     642
     643
     644 -    def SetEckertIV(self, *args, **kwargs):
     645          """SetEckertIV(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
     646          return _osr.SpatialReference_SetEckertIV(self, *args, **kwargs)
     647
     648
     649 -    def SetEckertVI(self, *args, **kwargs):
     650          """SetEckertVI(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
     651          return _osr.SpatialReference_SetEckertVI(self, *args, **kwargs)
     652
     653
     654 -    def SetEquirectangular(self, *args, **kwargs):
     655          """SetEquirectangular(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     656          return _osr.SpatialReference_SetEquirectangular(self, *args, **kwargs)
     657
     658
     659 -    def SetEquirectangular2(self, *args, **kwargs):
     660          """SetEquirectangular2(SpatialReference self, double clat, double clong, double pseudostdparallellat, double fe, double fn) -> OGRErr"""
     661          return _osr.SpatialReference_SetEquirectangular2(self, *args, **kwargs)
     662
     663
     664 -    def SetGaussSchreiberTMercator(self, *args, **kwargs):
     665          """SetGaussSchreiberTMercator(SpatialReference self, double clat, double clong, double sc, double fe, double fn) -> OGRErr"""
     666          return _osr.SpatialReference_SetGaussSchreiberTMercator(self, *args, **kwargs)
     667
     668
     669 -    def SetGS(self, *args, **kwargs):
     670          """SetGS(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
     671          return _osr.SpatialReference_SetGS(self, *args, **kwargs)
     672
     673
     674 -    def SetGH(self, *args, **kwargs):
     675          """SetGH(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
     676          return _osr.SpatialReference_SetGH(self, *args, **kwargs)
     677
     678
     679 -    def SetIGH(self, *args):
     680          """SetIGH(SpatialReference self) -> OGRErr"""
     681          return _osr.SpatialReference_SetIGH(self, *args)
     682
     683
     684 -    def SetGEOS(self, *args, **kwargs):
     685          """SetGEOS(SpatialReference self, double cm, double satelliteheight, double fe, double fn) -> OGRErr"""
     686          return _osr.SpatialReference_SetGEOS(self, *args, **kwargs)
     687
     688
     689 -    def SetGnomonic(self, *args, **kwargs):
     690          """SetGnomonic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     691          return _osr.SpatialReference_SetGnomonic(self, *args, **kwargs)
     692
     693
     694 -    def SetHOM(self, *args, **kwargs):
     695          """SetHOM(SpatialReference self, double clat, double clong, double azimuth, double recttoskew, double scale, double fe, double fn) -> OGRErr"""
     696          return _osr.SpatialReference_SetHOM(self, *args, **kwargs)
     697
     698
     699 -    def SetHOM2PNO(self, *args, **kwargs):
     700          """SetHOM2PNO(SpatialReference self, double clat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double scale, double fe, double fn) -> OGRErr"""
     701          return _osr.SpatialReference_SetHOM2PNO(self, *args, **kwargs)
     702
     703
     704 -    def SetKrovak(self, *args, **kwargs):
     705          """SetKrovak(SpatialReference self, double clat, double clong, double azimuth, double pseudostdparallellat, double scale, double fe, double fn) -> OGRErr"""
     706          return _osr.SpatialReference_SetKrovak(self, *args, **kwargs)
     707
     708
     709 -    def SetLAEA(self, *args, **kwargs):
     710          """SetLAEA(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     711          return _osr.SpatialReference_SetLAEA(self, *args, **kwargs)
     712
     713
     714 -    def SetLCC(self, *args, **kwargs):
     715          """SetLCC(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
     716          return _osr.SpatialReference_SetLCC(self, *args, **kwargs)
     717
     718
     719 -    def SetLCC1SP(self, *args, **kwargs):
     720          """SetLCC1SP(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     721          return _osr.SpatialReference_SetLCC1SP(self, *args, **kwargs)
     722
     723
     724 -    def SetLCCB(self, *args, **kwargs):
     725          """SetLCCB(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
     726          return _osr.SpatialReference_SetLCCB(self, *args, **kwargs)
     727
     728
     729 -    def SetMC(self, *args, **kwargs):
     730          """SetMC(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     731          return _osr.SpatialReference_SetMC(self, *args, **kwargs)
     732
     733
     734 -    def SetMercator(self, *args, **kwargs):
     735          """SetMercator(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     736          return _osr.SpatialReference_SetMercator(self, *args, **kwargs)
     737
     738
     739 -    def SetMercator2SP(self, *args, **kwargs):
     740          """SetMercator2SP(SpatialReference self, double stdp1, double clat, double clong, double fe, double fn) -> OGRErr"""
     741          return _osr.SpatialReference_SetMercator2SP(self, *args, **kwargs)
     742
     743
     744 -    def SetMollweide(self, *args, **kwargs):
     745          """SetMollweide(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
     746          return _osr.SpatialReference_SetMollweide(self, *args, **kwargs)
     747
     748
     749 -    def SetNZMG(self, *args, **kwargs):
     750          """SetNZMG(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     751          return _osr.SpatialReference_SetNZMG(self, *args, **kwargs)
     752
     753
     754 -    def SetOS(self, *args, **kwargs):
     755          """SetOS(SpatialReference self, double dfOriginLat, double dfCMeridian, double scale, double fe, double fn) -> OGRErr"""
     756          return _osr.SpatialReference_SetOS(self, *args, **kwargs)
     757
     758
     759 -    def SetOrthographic(self, *args, **kwargs):
     760          """SetOrthographic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     761          return _osr.SpatialReference_SetOrthographic(self, *args, **kwargs)
     762
     763
     764 -    def SetPolyconic(self, *args, **kwargs):
     765          """SetPolyconic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     766          return _osr.SpatialReference_SetPolyconic(self, *args, **kwargs)
     767
     768
     769 -    def SetPS(self, *args, **kwargs):
     770          """SetPS(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     771          return _osr.SpatialReference_SetPS(self, *args, **kwargs)
     772
     773
     774 -    def SetRobinson(self, *args, **kwargs):
     775          """SetRobinson(SpatialReference self, double clong, double fe, double fn) -> OGRErr"""
     776          return _osr.SpatialReference_SetRobinson(self, *args, **kwargs)
     777
     778
     779 -    def SetSinusoidal(self, *args, **kwargs):
     780          """SetSinusoidal(SpatialReference self, double clong, double fe, double fn) -> OGRErr"""
     781          return _osr.SpatialReference_SetSinusoidal(self, *args, **kwargs)
     782
     783
     784 -    def SetStereographic(self, *args, **kwargs):
     785          """SetStereographic(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     786          return _osr.SpatialReference_SetStereographic(self, *args, **kwargs)
     787
     788
     789 -    def SetSOC(self, *args, **kwargs):
     790          """SetSOC(SpatialReference self, double latitudeoforigin, double cm, double fe, double fn) -> OGRErr"""
     791          return _osr.SpatialReference_SetSOC(self, *args, **kwargs)
     792
     793
     794 -    def SetTM(self, *args, **kwargs):
     795          """SetTM(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     796          return _osr.SpatialReference_SetTM(self, *args, **kwargs)
     797
     798
     799 -    def SetTMVariant(self, *args, **kwargs):
     800          """SetTMVariant(SpatialReference self, char const * pszVariantName, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     801          return _osr.SpatialReference_SetTMVariant(self, *args, **kwargs)
     802
     803
     804 -    def SetTMG(self, *args, **kwargs):
     805          """SetTMG(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
     806          return _osr.SpatialReference_SetTMG(self, *args, **kwargs)
     807
     808
     809 -    def SetTMSO(self, *args, **kwargs):
     810          """SetTMSO(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
     811          return _osr.SpatialReference_SetTMSO(self, *args, **kwargs)
     812
     813
     814 -    def SetVDG(self, *args, **kwargs):
     815          """SetVDG(SpatialReference self, double clong, double fe, double fn) -> OGRErr"""
     816          return _osr.SpatialReference_SetVDG(self, *args, **kwargs)
     817
     818
     819 -    def SetVerticalPerspective(self, *args, **kwargs):
     820          """SetVerticalPerspective(SpatialReference self, double topoOriginLat, double topoOriginLon, double topoOriginHeight, double viewPointHeight, double fe, double fn) -> OGRErr"""
     821          return _osr.SpatialReference_SetVerticalPerspective(self, *args, **kwargs)
     822
     823
     824 -    def SetWellKnownGeogCS(self, *args):
     825          """SetWellKnownGeogCS(SpatialReference self, char const * name) -> OGRErr"""
     826          return _osr.SpatialReference_SetWellKnownGeogCS(self, *args)
     827
     828
     829 -    def SetFromUserInput(self, *args):
     830          """SetFromUserInput(SpatialReference self, char const * name) -> OGRErr"""
     831          return _osr.SpatialReference_SetFromUserInput(self, *args)
     832
     833
     834 -    def CopyGeogCSFrom(self, *args):
     835          """CopyGeogCSFrom(SpatialReference self, SpatialReference rhs) -> OGRErr"""
     836          return _osr.SpatialReference_CopyGeogCSFrom(self, *args)
     837
     838
     839 -    def SetTOWGS84(self, *args):
     840          """SetTOWGS84(SpatialReference self, double p1, double p2, double p3, double p4=0.0, double p5=0.0, double p6=0.0, double p7=0.0) -> OGRErr"""
     841          return _osr.SpatialReference_SetTOWGS84(self, *args)
     842
     843
     844 -    def HasTOWGS84(self, *args):
     845          """HasTOWGS84(SpatialReference self) -> bool"""
     846          return _osr.SpatialReference_HasTOWGS84(self, *args)
     847
     848
     849 -    def GetTOWGS84(self, *args):
     850          """GetTOWGS84(SpatialReference self) -> OGRErr"""
     851          return _osr.SpatialReference_GetTOWGS84(self, *args)
     852
     853
     854 -    def AddGuessedTOWGS84(self, *args):
     855          """AddGuessedTOWGS84(SpatialReference self) -> OGRErr"""
     856          return _osr.SpatialReference_AddGuessedTOWGS84(self, *args)
     857
     858
     859 -    def SetLocalCS(self, *args):
     860          """SetLocalCS(SpatialReference self, char const * pszName) -> OGRErr"""
     861          return _osr.SpatialReference_SetLocalCS(self, *args)
     862
     863
     864 -    def SetGeogCS(self, *args):
     865          """SetGeogCS(SpatialReference self, char const * pszGeogName, char const * pszDatumName, char const * pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, char const * pszPMName, double dfPMOffset=0.0, char const * pszUnits, double dfConvertToRadians=0.0174532925199433) -> OGRErr"""
     866          return _osr.SpatialReference_SetGeogCS(self, *args)
     867
     868
     869 -    def SetProjCS(self, *args):
     870          """SetProjCS(SpatialReference self, char const * name) -> OGRErr"""
     871          return _osr.SpatialReference_SetProjCS(self, *args)
     872
     873
     874 -    def SetGeocCS(self, *args):
     875          """SetGeocCS(SpatialReference self, char const * name) -> OGRErr"""
     876          return _osr.SpatialReference_SetGeocCS(self, *args)
     877
     878
     879 -    def SetVertCS(self, *args):
     880          """SetVertCS(SpatialReference self, char const * VertCSName, char const * VertDatumName, int VertDatumType=0) -> OGRErr"""
     881          return _osr.SpatialReference_SetVertCS(self, *args)
     882
     883
     884 -    def SetCompoundCS(self, *args):
     885          """SetCompoundCS(SpatialReference self, char const * name, SpatialReference horizcs, SpatialReference vertcs) -> OGRErr"""
     886          return _osr.SpatialReference_SetCompoundCS(self, *args)
     887
     888
     889 -    def ImportFromWkt(self, *args):
     890          """ImportFromWkt(SpatialReference self, char ** ppszInput) -> OGRErr"""
     891          return _osr.SpatialReference_ImportFromWkt(self, *args)
     892
     893
     894 -    def ImportFromProj4(self, *args):
     895          """ImportFromProj4(SpatialReference self, char * ppszInput) -> OGRErr"""
     896          return _osr.SpatialReference_ImportFromProj4(self, *args)
     897
     898
     899 -    def ImportFromUrl(self, *args):
     900          """ImportFromUrl(SpatialReference self, char * url) -> OGRErr"""
     901          return _osr.SpatialReference_ImportFromUrl(self, *args)
     902
     903
     904 -    def ImportFromESRI(self, *args):
     905          """ImportFromESRI(SpatialReference self, char ** ppszInput) -> OGRErr"""
     906          return _osr.SpatialReference_ImportFromESRI(self, *args)
     907
     908
     909 -    def ImportFromEPSG(self, *args):
     910          """ImportFromEPSG(SpatialReference self, int arg) -> OGRErr"""
     911          return _osr.SpatialReference_ImportFromEPSG(self, *args)
     912
     913
     914 -    def ImportFromEPSGA(self, *args):
     915          """ImportFromEPSGA(SpatialReference self, int arg) -> OGRErr"""
     916          return _osr.SpatialReference_ImportFromEPSGA(self, *args)
     917
     918
     919 -    def ImportFromPCI(self, *args):
     920          """ImportFromPCI(SpatialReference self, char const * proj, char const * units, double [17] argin=0) -> OGRErr"""
     921          return _osr.SpatialReference_ImportFromPCI(self, *args)
     922
     923
     924 -    def ImportFromUSGS(self, *args):
     925          """ImportFromUSGS(SpatialReference self, long proj_code, long zone=0, double [15] argin=0, long datum_code=0) -> OGRErr"""
     926          return _osr.SpatialReference_ImportFromUSGS(self, *args)
     927
     928
     929 -    def ImportFromXML(self, *args):
     930          """ImportFromXML(SpatialReference self, char const * xmlString) -> OGRErr"""
     931          return _osr.SpatialReference_ImportFromXML(self, *args)
     932
     933
     934 -    def ImportFromERM(self, *args):
     935          """ImportFromERM(SpatialReference self, char const * proj, char const * datum, char const * units) -> OGRErr"""
     936          return _osr.SpatialReference_ImportFromERM(self, *args)
     937
     938
     939 -    def ImportFromMICoordSys(self, *args):
     940          """ImportFromMICoordSys(SpatialReference self, char const * pszCoordSys) -> OGRErr"""
     941          return _osr.SpatialReference_ImportFromMICoordSys(self, *args)
     942
     943
     944 -    def ImportFromOzi(self, *args):
     945          """ImportFromOzi(SpatialReference self, char const *const * papszLines) -> OGRErr"""
     946          return _osr.SpatialReference_ImportFromOzi(self, *args)
     947
     948
     949 -    def ExportToWkt(self, *args):
     950          """ExportToWkt(SpatialReference self, char ** options=None) -> OGRErr"""
     951          return _osr.SpatialReference_ExportToWkt(self, *args)
     952
     953
     954 -    def ExportToPrettyWkt(self, *args):
     955          """ExportToPrettyWkt(SpatialReference self, int simplify=0) -> OGRErr"""
     956          return _osr.SpatialReference_ExportToPrettyWkt(self, *args)
     957
     958
     959 -    def ExportToPROJJSON(self, *args):
     960          """ExportToPROJJSON(SpatialReference self, char ** options=None) -> OGRErr"""
     961          return _osr.SpatialReference_ExportToPROJJSON(self, *args)
     962
     963
     964 -    def ExportToProj4(self, *args):
     965          """ExportToProj4(SpatialReference self) -> OGRErr"""
     966          return _osr.SpatialReference_ExportToProj4(self, *args)
     967
     968
     969 -    def ExportToPCI(self, *args):
     970          """ExportToPCI(SpatialReference self) -> OGRErr"""
     971          return _osr.SpatialReference_ExportToPCI(self, *args)
     972
     973
     974 -    def ExportToUSGS(self, *args):
     975          """ExportToUSGS(SpatialReference self) -> OGRErr"""
     976          return _osr.SpatialReference_ExportToUSGS(self, *args)
     977
     978
     979 -    def ExportToXML(self, *args):
     980          """ExportToXML(SpatialReference self, char const * dialect) -> OGRErr"""
     981          return _osr.SpatialReference_ExportToXML(self, *args)
     982
     983
     984 -    def ExportToMICoordSys(self, *args):
     985          """ExportToMICoordSys(SpatialReference self) -> OGRErr"""
     986          return _osr.SpatialReference_ExportToMICoordSys(self, *args)
     987
     988
     989 -    def CloneGeogCS(self, *args):
     990          """CloneGeogCS(SpatialReference self) -> SpatialReference"""
     991          return _osr.SpatialReference_CloneGeogCS(self, *args)
     992
     993
     994 -    def Clone(self, *args):
     995          """Clone(SpatialReference self) -> SpatialReference"""
     996          return _osr.SpatialReference_Clone(self, *args)
     997
     998
     999 -    def Validate(self, *args):
    1000          """Validate(SpatialReference self) -> OGRErr"""
    1001          return _osr.SpatialReference_Validate(self, *args)
    1002
    1003
    1004 -    def MorphToESRI(self, *args):
    1005          """MorphToESRI(SpatialReference self) -> OGRErr"""
    1006          return _osr.SpatialReference_MorphToESRI(self, *args)
    1007
    1008
    1009 -    def MorphFromESRI(self, *args):
    1010          """MorphFromESRI(SpatialReference self) -> OGRErr"""
    1011          return _osr.SpatialReference_MorphFromESRI(self, *args)
    1012
    1013
    1014 -    def ConvertToOtherProjection(self, *args):
    1015          """ConvertToOtherProjection(SpatialReference self, char const * other_projection, char ** options=None) -> SpatialReference"""
    1016          return _osr.SpatialReference_ConvertToOtherProjection(self, *args)
    1017
    1018
    1019 -    def PromoteTo3D(self, *args):
    1020          """PromoteTo3D(SpatialReference self, char const * name=None) -> OGRErr"""
    1021          return _osr.SpatialReference_PromoteTo3D(self, *args)
    1022
    1023
    1024 -    def DemoteTo2D(self, *args):
    1025          """DemoteTo2D(SpatialReference self, char const * name=None) -> OGRErr"""
    1026          return _osr.SpatialReference_DemoteTo2D(self, *args)
    1027
    1028
    1029
    1030 -    def __init__(self, *args, **kwargs):
    1031          """__init__(OSRSpatialReferenceShadow self, char const * wkt) -> SpatialReference"""
    1032          oldval = _osr.GetUseExceptions()
    1033          if not oldval:
    1034              _osr.UseExceptions()
    1035          try:
    1036              this = _osr.new_SpatialReference(*args, **kwargs)
    1037          finally:
    1038              if not oldval:
    1039                  _osr.DontUseExceptions()
    1040          try:
    1041              self.this.append(this)
    1042          except __builtin__.Exception:
    1043              self.this = this
    1044
    1045
    1046  SpatialReference_swigregister = _osr.SpatialReference_swigregister
    1047  SpatialReference_swigregister(SpatialReference)
    1048
    1049 -class CoordinateTransformationOptions(_object):
    1050      """Proxy of C++ OGRCoordinateTransformationOptions class."""
    1051
    1052      __swig_setmethods__ = {}
    1053      __setattr__ = lambda self, name, value: _swig_setattr(self, CoordinateTransformationOptions, name, value)
    1054      __swig_getmethods__ = {}
    1055      __getattr__ = lambda self, name: _swig_getattr(self, CoordinateTransformationOptions, name)
    1056      __repr__ = _swig_repr
    1057
    1058 -    def __init__(self, *args):
    1059          """__init__(OGRCoordinateTransformationOptions self) -> CoordinateTransformationOptions"""
    1060          this = _osr.new_CoordinateTransformationOptions(*args)
    1061          try:
    1062              self.this.append(this)
    1063          except __builtin__.Exception:
    1064              self.this = this
    1065      __swig_destroy__ = _osr.delete_CoordinateTransformationOptions
    1066      __del__ = lambda self: None
    1067
    1068 -    def SetAreaOfInterest(self, *args):
    1069          """SetAreaOfInterest(CoordinateTransformationOptions self, double westLongitudeDeg, double southLatitudeDeg, double eastLongitudeDeg, double northLatitudeDeg) -> bool"""
    1070          return _osr.CoordinateTransformationOptions_SetAreaOfInterest(self, *args)
    1071
    1072
    1073 -    def SetOperation(self, *args):
    1074          """SetOperation(CoordinateTransformationOptions self, char const * operation) -> bool"""
    1075          return _osr.CoordinateTransformationOptions_SetOperation(self, *args)
    1076
    1077  CoordinateTransformationOptions_swigregister = _osr.CoordinateTransformationOptions_swigregister
    1078  CoordinateTransformationOptions_swigregister(CoordinateTransformationOptions)
    1079
    1080 -class CoordinateTransformation(_object):
    1081      """Proxy of C++ OSRCoordinateTransformationShadow class."""
    1082
    1083      __swig_setmethods__ = {}
    1084      __setattr__ = lambda self, name, value: _swig_setattr(self, CoordinateTransformation, name, value)
    1085      __swig_getmethods__ = {}
    1086      __getattr__ = lambda self, name: _swig_getattr(self, CoordinateTransformation, name)
    1087      __repr__ = _swig_repr
    1088
    1089 -    def __init__(self, *args):
    1090          """
    1091          __init__(OSRCoordinateTransformationShadow self, SpatialReference src, SpatialReference dst) -> CoordinateTransformation
    1092          __init__(OSRCoordinateTransformationShadow self, SpatialReference src, SpatialReference dst, CoordinateTransformationOptions options) -> CoordinateTransformation
    1093          """
    1094          this = _osr.new_CoordinateTransformation(*args)
    1095          try:
    1096              self.this.append(this)
    1097          except __builtin__.Exception:
    1098              self.this = this
    1099      __swig_destroy__ = _osr.delete_CoordinateTransformation
    1100      __del__ = lambda self: None
    1101
    1102 -    def TransformPoint(self, *args):
    1103          """
    1104          TransformPoint(CoordinateTransformation self, double [3] inout)
    1105          TransformPoint(CoordinateTransformation self, double [4] inout)
    1106          TransformPoint(CoordinateTransformation self, double x, double y, double z=0.0)
    1107          TransformPoint(CoordinateTransformation self, double x, double y, double z, double t)
    1108          """
    1109          return _osr.CoordinateTransformation_TransformPoint(self, *args)
    1110
    1111
    1112 -    def TransformPoints(self, *args):
    1113          """TransformPoints(CoordinateTransformation self, int nCount)"""
    1114          return _osr.CoordinateTransformation_TransformPoints(self, *args)
    1115
    1116  CoordinateTransformation_swigregister = _osr.CoordinateTransformation_swigregister
    1117  CoordinateTransformation_swigregister(CoordinateTransformation)
    1118
    1119
    1120 -def CreateCoordinateTransformation(*args):
    1121      """CreateCoordinateTransformation(SpatialReference src, SpatialReference dst, CoordinateTransformationOptions options=None) -> CoordinateTransformation"""
    1122      return _osr.CreateCoordinateTransformation(*args)
    1123  OSR_CRS_TYPE_GEOGRAPHIC_2D = _osr.OSR_CRS_TYPE_GEOGRAPHIC_2D
    1124  OSR_CRS_TYPE_GEOGRAPHIC_3D = _osr.OSR_CRS_TYPE_GEOGRAPHIC_3D
    1125  OSR_CRS_TYPE_GEOCENTRIC = _osr.OSR_CRS_TYPE_GEOCENTRIC
    1126  OSR_CRS_TYPE_PROJECTED = _osr.OSR_CRS_TYPE_PROJECTED
    1127  OSR_CRS_TYPE_VERTICAL = _osr.OSR_CRS_TYPE_VERTICAL
    1128  OSR_CRS_TYPE_COMPOUND = _osr.OSR_CRS_TYPE_COMPOUND
    1129  OSR_CRS_TYPE_OTHER = _osr.OSR_CRS_TYPE_OTHER
    1130 -class CRSInfo(_object):
    1131      """Proxy of C++ OSRCRSInfo class."""
    1132
    1133      __swig_setmethods__ = {}
    1134      __setattr__ = lambda self, name, value: _swig_setattr(self, CRSInfo, name, value)
    1135      __swig_getmethods__ = {}
    1136      __getattr__ = lambda self, name: _swig_getattr(self, CRSInfo, name)
    1137      __repr__ = _swig_repr
    1138      __swig_getmethods__["auth_name"] = _osr.CRSInfo_auth_name_get
    1139      if _newclass:
    1140          auth_name = _swig_property(_osr.CRSInfo_auth_name_get)
    1141      __swig_getmethods__["code"] = _osr.CRSInfo_code_get
    1142      if _newclass:
    1143          code = _swig_property(_osr.CRSInfo_code_get)
    1144      __swig_getmethods__["name"] = _osr.CRSInfo_name_get
    1145      if _newclass:
    1146          name = _swig_property(_osr.CRSInfo_name_get)
    1147      __swig_getmethods__["type"] = _osr.CRSInfo_type_get
    1148      if _newclass:
    1149          type = _swig_property(_osr.CRSInfo_type_get)
    1150      __swig_getmethods__["deprecated"] = _osr.CRSInfo_deprecated_get
    1151      if _newclass:
    1152          deprecated = _swig_property(_osr.CRSInfo_deprecated_get)
    1153      __swig_getmethods__["bbox_valid"] = _osr.CRSInfo_bbox_valid_get
    1154      if _newclass:
    1155          bbox_valid = _swig_property(_osr.CRSInfo_bbox_valid_get)
    1156      __swig_getmethods__["west_lon_degree"] = _osr.CRSInfo_west_lon_degree_get
    1157      if _newclass:
    1158          west_lon_degree = _swig_property(_osr.CRSInfo_west_lon_degree_get)
    1159      __swig_getmethods__["south_lat_degree"] = _osr.CRSInfo_south_lat_degree_get
    1160      if _newclass:
    1161          south_lat_degree = _swig_property(_osr.CRSInfo_south_lat_degree_get)
    1162      __swig_getmethods__["east_lon_degree"] = _osr.CRSInfo_east_lon_degree_get
    1163      if _newclass:
    1164          east_lon_degree = _swig_property(_osr.CRSInfo_east_lon_degree_get)
    1165      __swig_getmethods__["north_lat_degree"] = _osr.CRSInfo_north_lat_degree_get
    1166      if _newclass:
    1167          north_lat_degree = _swig_property(_osr.CRSInfo_north_lat_degree_get)
    1168      __swig_getmethods__["area_name"] = _osr.CRSInfo_area_name_get
    1169      if _newclass:
    1170          area_name = _swig_property(_osr.CRSInfo_area_name_get)
    1171      __swig_getmethods__["projection_method"] = _osr.CRSInfo_projection_method_get
    1172      if _newclass:
    1173          projection_method = _swig_property(_osr.CRSInfo_projection_method_get)
    1174
    1175 -    def __init__(self, *args):
    1176          """__init__(OSRCRSInfo self, char const * auth_name, char const * code, char const * name, OSRCRSType type, bool deprecated, bool bbox_valid, double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, char const * area_name, char const * projection_method) -> CRSInfo"""
    1177          this = _osr.new_CRSInfo(*args)
    1178          try:
    1179              self.this.append(this)
    1180          except __builtin__.Exception:
    1181              self.this = this
    1182      __swig_destroy__ = _osr.delete_CRSInfo
    1183      __del__ = lambda self: None
    1184  CRSInfo_swigregister = _osr.CRSInfo_swigregister
    1185  CRSInfo_swigregister(CRSInfo)
    1186
    1187
    1188 -def OSRCRSInfo_auth_name_get(*args):
    1189      """OSRCRSInfo_auth_name_get(CRSInfo crsInfo) -> char const *"""
    1190      return _osr.OSRCRSInfo_auth_name_get(*args)
    1191
    1192 -def OSRCRSInfo_code_get(*args):
    1193      """OSRCRSInfo_code_get(CRSInfo crsInfo) -> char const *"""
    1194      return _osr.OSRCRSInfo_code_get(*args)
    1195
    1196 -def OSRCRSInfo_name_get(*args):
    1197      """OSRCRSInfo_name_get(CRSInfo crsInfo) -> char const *"""
    1198      return _osr.OSRCRSInfo_name_get(*args)
    1199
    1200 -def OSRCRSInfo_type_get(*args):
    1201      """OSRCRSInfo_type_get(CRSInfo crsInfo) -> OSRCRSType"""
    1202      return _osr.OSRCRSInfo_type_get(*args)
    1203
    1204 -def OSRCRSInfo_deprecated_get(*args):
    1205      """OSRCRSInfo_deprecated_get(CRSInfo crsInfo) -> bool"""
    1206      return _osr.OSRCRSInfo_deprecated_get(*args)
    1207
    1208 -def OSRCRSInfo_bbox_valid_get(*args):
    1209      """OSRCRSInfo_bbox_valid_get(CRSInfo crsInfo) -> bool"""
    1210      return _osr.OSRCRSInfo_bbox_valid_get(*args)
    1211
    1212 -def OSRCRSInfo_west_lon_degree_get(*args):
    1213      """OSRCRSInfo_west_lon_degree_get(CRSInfo crsInfo) -> double"""
    1214      return _osr.OSRCRSInfo_west_lon_degree_get(*args)
    1215
    1216 -def OSRCRSInfo_south_lat_degree_get(*args):
    1217      """OSRCRSInfo_south_lat_degree_get(CRSInfo crsInfo) -> double"""
    1218      return _osr.OSRCRSInfo_south_lat_degree_get(*args)
    1219
    1220 -def OSRCRSInfo_east_lon_degree_get(*args):
    1221      """OSRCRSInfo_east_lon_degree_get(CRSInfo crsInfo) -> double"""
    1222      return _osr.OSRCRSInfo_east_lon_degree_get(*args)
    1223
    1224 -def OSRCRSInfo_north_lat_degree_get(*args):
    1225      """OSRCRSInfo_north_lat_degree_get(CRSInfo crsInfo) -> double"""
    1226      return _osr.OSRCRSInfo_north_lat_degree_get(*args)
    1227
    1228 -def OSRCRSInfo_area_name_get(*args):
    1229      """OSRCRSInfo_area_name_get(CRSInfo crsInfo) -> char const *"""
    1230      return _osr.OSRCRSInfo_area_name_get(*args)
    1231
    1232 -def OSRCRSInfo_projection_method_get(*args):
    1233      """OSRCRSInfo_projection_method_get(CRSInfo crsInfo) -> char const *"""
    1234      return _osr.OSRCRSInfo_projection_method_get(*args)
    1235
    1236 -def GetCRSInfoListFromDatabase(*args):
    1237      """GetCRSInfoListFromDatabase(char const * authName)"""
    1238      return _osr.GetCRSInfoListFromDatabase(*args)
    1239
    1240 -def SetPROJSearchPath(*args):
    1241      """SetPROJSearchPath(char const * utf8_path)"""
    1242      return _osr.SetPROJSearchPath(*args)
    1243
    1244 -def SetPROJSearchPaths(*args):
    1245      """SetPROJSearchPaths(char ** paths)"""
    1246      return _osr.SetPROJSearchPaths(*args)
    1247
    1248 -def GetPROJSearchPaths(*args):
    1249      """GetPROJSearchPaths() -> char **"""
    1250      return _osr.GetPROJSearchPaths(*args)
    1251
    1252 -def GetPROJVersionMajor(*args):
    1253      """GetPROJVersionMajor() -> int"""
    1254      return _osr.GetPROJVersionMajor(*args)
    1255
    1256 -def GetPROJVersionMinor(*args):
    1257      """GetPROJVersionMinor() -> int"""
    1258      return _osr.GetPROJVersionMinor(*args)
    1259
    1260 -def GetPROJVersionMicro(*args):
    1261      """GetPROJVersionMicro() -> int"""
    1262      return _osr.GetPROJVersionMicro(*args)
    1263  # This file is compatible with both classic and new-style classes.
    1264