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