1
2
3
4
5
6
7 from sys import version_info as _swig_python_version_info
8 if _swig_python_version_info < (2, 7, 0):
9 raise RuntimeError("Python 2.7 or later required")
10
11
12 if __package__ or "." in __name__:
13 from . import _osr
14 else:
15 import _osr
16
17 try:
18 import builtins as __builtin__
19 except ImportError:
20 import __builtin__
21
23 try:
24 strthis = "proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
26 strthis = ""
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
29
31 def set_instance_attr(self, name, value):
32 if name == "thisown":
33 self.this.own(value)
34 elif name == "this":
35 set(self, name, value)
36 elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
38 else:
39 raise AttributeError("You cannot add instance attributes to %s" % self)
40 return set_instance_attr
41
42
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46 set(cls, name, value)
47 else:
48 raise AttributeError("You cannot add class attributes to %s" % cls)
49 return set_class_attr
50
51
56 return wrapper
57
58
62
63
64 SRS_WKT_WGS84_LAT_LONG = _osr.SRS_WKT_WGS84_LAT_LONG
65 SRS_PT_ALBERS_CONIC_EQUAL_AREA = _osr.SRS_PT_ALBERS_CONIC_EQUAL_AREA
66 SRS_PT_AZIMUTHAL_EQUIDISTANT = _osr.SRS_PT_AZIMUTHAL_EQUIDISTANT
67 SRS_PT_CASSINI_SOLDNER = _osr.SRS_PT_CASSINI_SOLDNER
68 SRS_PT_CYLINDRICAL_EQUAL_AREA = _osr.SRS_PT_CYLINDRICAL_EQUAL_AREA
69 SRS_PT_BONNE = _osr.SRS_PT_BONNE
70 SRS_PT_ECKERT_I = _osr.SRS_PT_ECKERT_I
71 SRS_PT_ECKERT_II = _osr.SRS_PT_ECKERT_II
72 SRS_PT_ECKERT_III = _osr.SRS_PT_ECKERT_III
73 SRS_PT_ECKERT_IV = _osr.SRS_PT_ECKERT_IV
74 SRS_PT_ECKERT_V = _osr.SRS_PT_ECKERT_V
75 SRS_PT_ECKERT_VI = _osr.SRS_PT_ECKERT_VI
76 SRS_PT_EQUIDISTANT_CONIC = _osr.SRS_PT_EQUIDISTANT_CONIC
77 SRS_PT_EQUIRECTANGULAR = _osr.SRS_PT_EQUIRECTANGULAR
78 SRS_PT_GALL_STEREOGRAPHIC = _osr.SRS_PT_GALL_STEREOGRAPHIC
79 SRS_PT_GAUSSSCHREIBERTMERCATOR = _osr.SRS_PT_GAUSSSCHREIBERTMERCATOR
80 SRS_PT_GEOSTATIONARY_SATELLITE = _osr.SRS_PT_GEOSTATIONARY_SATELLITE
81 SRS_PT_GOODE_HOMOLOSINE = _osr.SRS_PT_GOODE_HOMOLOSINE
82 SRS_PT_IGH = _osr.SRS_PT_IGH
83 SRS_PT_GNOMONIC = _osr.SRS_PT_GNOMONIC
84 SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER
85 SRS_PT_HOTINE_OBLIQUE_MERCATOR = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR
86 SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN = _osr.SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN
87 SRS_PT_LABORDE_OBLIQUE_MERCATOR = _osr.SRS_PT_LABORDE_OBLIQUE_MERCATOR
88 SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP
89 SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP
90 SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM = _osr.SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM
91 SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA = _osr.SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA
92 SRS_PT_MERCATOR_1SP = _osr.SRS_PT_MERCATOR_1SP
93 SRS_PT_MERCATOR_2SP = _osr.SRS_PT_MERCATOR_2SP
94 SRS_PT_MERCATOR_AUXILIARY_SPHERE = _osr.SRS_PT_MERCATOR_AUXILIARY_SPHERE
95 SRS_PT_MILLER_CYLINDRICAL = _osr.SRS_PT_MILLER_CYLINDRICAL
96 SRS_PT_MOLLWEIDE = _osr.SRS_PT_MOLLWEIDE
97 SRS_PT_NEW_ZEALAND_MAP_GRID = _osr.SRS_PT_NEW_ZEALAND_MAP_GRID
98 SRS_PT_OBLIQUE_STEREOGRAPHIC = _osr.SRS_PT_OBLIQUE_STEREOGRAPHIC
99 SRS_PT_ORTHOGRAPHIC = _osr.SRS_PT_ORTHOGRAPHIC
100 SRS_PT_POLAR_STEREOGRAPHIC = _osr.SRS_PT_POLAR_STEREOGRAPHIC
101 SRS_PT_POLYCONIC = _osr.SRS_PT_POLYCONIC
102 SRS_PT_ROBINSON = _osr.SRS_PT_ROBINSON
103 SRS_PT_SINUSOIDAL = _osr.SRS_PT_SINUSOIDAL
104 SRS_PT_STEREOGRAPHIC = _osr.SRS_PT_STEREOGRAPHIC
105 SRS_PT_SWISS_OBLIQUE_CYLINDRICAL = _osr.SRS_PT_SWISS_OBLIQUE_CYLINDRICAL
106 SRS_PT_TRANSVERSE_MERCATOR = _osr.SRS_PT_TRANSVERSE_MERCATOR
107 SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED = _osr.SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED
108 SRS_PT_TRANSVERSE_MERCATOR_MI_21 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_21
109 SRS_PT_TRANSVERSE_MERCATOR_MI_22 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_22
110 SRS_PT_TRANSVERSE_MERCATOR_MI_23 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_23
111 SRS_PT_TRANSVERSE_MERCATOR_MI_24 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_24
112 SRS_PT_TRANSVERSE_MERCATOR_MI_25 = _osr.SRS_PT_TRANSVERSE_MERCATOR_MI_25
113 SRS_PT_TUNISIA_MINING_GRID = _osr.SRS_PT_TUNISIA_MINING_GRID
114 SRS_PT_TWO_POINT_EQUIDISTANT = _osr.SRS_PT_TWO_POINT_EQUIDISTANT
115 SRS_PT_VANDERGRINTEN = _osr.SRS_PT_VANDERGRINTEN
116 SRS_PT_KROVAK = _osr.SRS_PT_KROVAK
117 SRS_PT_IMW_POLYCONIC = _osr.SRS_PT_IMW_POLYCONIC
118 SRS_PT_WAGNER_I = _osr.SRS_PT_WAGNER_I
119 SRS_PT_WAGNER_II = _osr.SRS_PT_WAGNER_II
120 SRS_PT_WAGNER_III = _osr.SRS_PT_WAGNER_III
121 SRS_PT_WAGNER_IV = _osr.SRS_PT_WAGNER_IV
122 SRS_PT_WAGNER_V = _osr.SRS_PT_WAGNER_V
123 SRS_PT_WAGNER_VI = _osr.SRS_PT_WAGNER_VI
124 SRS_PT_WAGNER_VII = _osr.SRS_PT_WAGNER_VII
125 SRS_PT_QSC = _osr.SRS_PT_QSC
126 SRS_PT_AITOFF = _osr.SRS_PT_AITOFF
127 SRS_PT_WINKEL_I = _osr.SRS_PT_WINKEL_I
128 SRS_PT_WINKEL_II = _osr.SRS_PT_WINKEL_II
129 SRS_PT_WINKEL_TRIPEL = _osr.SRS_PT_WINKEL_TRIPEL
130 SRS_PT_CRASTER_PARABOLIC = _osr.SRS_PT_CRASTER_PARABOLIC
131 SRS_PT_LOXIMUTHAL = _osr.SRS_PT_LOXIMUTHAL
132 SRS_PT_QUARTIC_AUTHALIC = _osr.SRS_PT_QUARTIC_AUTHALIC
133 SRS_PT_SCH = _osr.SRS_PT_SCH
134 SRS_PP_CENTRAL_MERIDIAN = _osr.SRS_PP_CENTRAL_MERIDIAN
135 SRS_PP_SCALE_FACTOR = _osr.SRS_PP_SCALE_FACTOR
136 SRS_PP_STANDARD_PARALLEL_1 = _osr.SRS_PP_STANDARD_PARALLEL_1
137 SRS_PP_STANDARD_PARALLEL_2 = _osr.SRS_PP_STANDARD_PARALLEL_2
138 SRS_PP_PSEUDO_STD_PARALLEL_1 = _osr.SRS_PP_PSEUDO_STD_PARALLEL_1
139 SRS_PP_LONGITUDE_OF_CENTER = _osr.SRS_PP_LONGITUDE_OF_CENTER
140 SRS_PP_LATITUDE_OF_CENTER = _osr.SRS_PP_LATITUDE_OF_CENTER
141 SRS_PP_LONGITUDE_OF_ORIGIN = _osr.SRS_PP_LONGITUDE_OF_ORIGIN
142 SRS_PP_LATITUDE_OF_ORIGIN = _osr.SRS_PP_LATITUDE_OF_ORIGIN
143 SRS_PP_FALSE_EASTING = _osr.SRS_PP_FALSE_EASTING
144 SRS_PP_FALSE_NORTHING = _osr.SRS_PP_FALSE_NORTHING
145 SRS_PP_AZIMUTH = _osr.SRS_PP_AZIMUTH
146 SRS_PP_LONGITUDE_OF_POINT_1 = _osr.SRS_PP_LONGITUDE_OF_POINT_1
147 SRS_PP_LATITUDE_OF_POINT_1 = _osr.SRS_PP_LATITUDE_OF_POINT_1
148 SRS_PP_LONGITUDE_OF_POINT_2 = _osr.SRS_PP_LONGITUDE_OF_POINT_2
149 SRS_PP_LATITUDE_OF_POINT_2 = _osr.SRS_PP_LATITUDE_OF_POINT_2
150 SRS_PP_LONGITUDE_OF_POINT_3 = _osr.SRS_PP_LONGITUDE_OF_POINT_3
151 SRS_PP_LATITUDE_OF_POINT_3 = _osr.SRS_PP_LATITUDE_OF_POINT_3
152 SRS_PP_RECTIFIED_GRID_ANGLE = _osr.SRS_PP_RECTIFIED_GRID_ANGLE
153 SRS_PP_LANDSAT_NUMBER = _osr.SRS_PP_LANDSAT_NUMBER
154 SRS_PP_PATH_NUMBER = _osr.SRS_PP_PATH_NUMBER
155 SRS_PP_PERSPECTIVE_POINT_HEIGHT = _osr.SRS_PP_PERSPECTIVE_POINT_HEIGHT
156 SRS_PP_SATELLITE_HEIGHT = _osr.SRS_PP_SATELLITE_HEIGHT
157 SRS_PP_FIPSZONE = _osr.SRS_PP_FIPSZONE
158 SRS_PP_ZONE = _osr.SRS_PP_ZONE
159 SRS_PP_LATITUDE_OF_1ST_POINT = _osr.SRS_PP_LATITUDE_OF_1ST_POINT
160 SRS_PP_LONGITUDE_OF_1ST_POINT = _osr.SRS_PP_LONGITUDE_OF_1ST_POINT
161 SRS_PP_LATITUDE_OF_2ND_POINT = _osr.SRS_PP_LATITUDE_OF_2ND_POINT
162 SRS_PP_LONGITUDE_OF_2ND_POINT = _osr.SRS_PP_LONGITUDE_OF_2ND_POINT
163 SRS_PP_PEG_POINT_LATITUDE = _osr.SRS_PP_PEG_POINT_LATITUDE
164 SRS_PP_PEG_POINT_LONGITUDE = _osr.SRS_PP_PEG_POINT_LONGITUDE
165 SRS_PP_PEG_POINT_HEADING = _osr.SRS_PP_PEG_POINT_HEADING
166 SRS_PP_PEG_POINT_HEIGHT = _osr.SRS_PP_PEG_POINT_HEIGHT
167 SRS_UL_METER = _osr.SRS_UL_METER
168 SRS_UL_FOOT = _osr.SRS_UL_FOOT
169 SRS_UL_FOOT_CONV = _osr.SRS_UL_FOOT_CONV
170 SRS_UL_US_FOOT = _osr.SRS_UL_US_FOOT
171 SRS_UL_US_FOOT_CONV = _osr.SRS_UL_US_FOOT_CONV
172 SRS_UL_NAUTICAL_MILE = _osr.SRS_UL_NAUTICAL_MILE
173 SRS_UL_NAUTICAL_MILE_CONV = _osr.SRS_UL_NAUTICAL_MILE_CONV
174 SRS_UL_LINK = _osr.SRS_UL_LINK
175 SRS_UL_LINK_CONV = _osr.SRS_UL_LINK_CONV
176 SRS_UL_CHAIN = _osr.SRS_UL_CHAIN
177 SRS_UL_CHAIN_CONV = _osr.SRS_UL_CHAIN_CONV
178 SRS_UL_ROD = _osr.SRS_UL_ROD
179 SRS_UL_ROD_CONV = _osr.SRS_UL_ROD_CONV
180 SRS_UL_LINK_Clarke = _osr.SRS_UL_LINK_Clarke
181 SRS_UL_LINK_Clarke_CONV = _osr.SRS_UL_LINK_Clarke_CONV
182 SRS_UL_KILOMETER = _osr.SRS_UL_KILOMETER
183 SRS_UL_KILOMETER_CONV = _osr.SRS_UL_KILOMETER_CONV
184 SRS_UL_DECIMETER = _osr.SRS_UL_DECIMETER
185 SRS_UL_DECIMETER_CONV = _osr.SRS_UL_DECIMETER_CONV
186 SRS_UL_CENTIMETER = _osr.SRS_UL_CENTIMETER
187 SRS_UL_CENTIMETER_CONV = _osr.SRS_UL_CENTIMETER_CONV
188 SRS_UL_MILLIMETER = _osr.SRS_UL_MILLIMETER
189 SRS_UL_MILLIMETER_CONV = _osr.SRS_UL_MILLIMETER_CONV
190 SRS_UL_INTL_NAUT_MILE = _osr.SRS_UL_INTL_NAUT_MILE
191 SRS_UL_INTL_NAUT_MILE_CONV = _osr.SRS_UL_INTL_NAUT_MILE_CONV
192 SRS_UL_INTL_INCH = _osr.SRS_UL_INTL_INCH
193 SRS_UL_INTL_INCH_CONV = _osr.SRS_UL_INTL_INCH_CONV
194 SRS_UL_INTL_FOOT = _osr.SRS_UL_INTL_FOOT
195 SRS_UL_INTL_FOOT_CONV = _osr.SRS_UL_INTL_FOOT_CONV
196 SRS_UL_INTL_YARD = _osr.SRS_UL_INTL_YARD
197 SRS_UL_INTL_YARD_CONV = _osr.SRS_UL_INTL_YARD_CONV
198 SRS_UL_INTL_STAT_MILE = _osr.SRS_UL_INTL_STAT_MILE
199 SRS_UL_INTL_STAT_MILE_CONV = _osr.SRS_UL_INTL_STAT_MILE_CONV
200 SRS_UL_INTL_FATHOM = _osr.SRS_UL_INTL_FATHOM
201 SRS_UL_INTL_FATHOM_CONV = _osr.SRS_UL_INTL_FATHOM_CONV
202 SRS_UL_INTL_CHAIN = _osr.SRS_UL_INTL_CHAIN
203 SRS_UL_INTL_CHAIN_CONV = _osr.SRS_UL_INTL_CHAIN_CONV
204 SRS_UL_INTL_LINK = _osr.SRS_UL_INTL_LINK
205 SRS_UL_INTL_LINK_CONV = _osr.SRS_UL_INTL_LINK_CONV
206 SRS_UL_US_INCH = _osr.SRS_UL_US_INCH
207 SRS_UL_US_INCH_CONV = _osr.SRS_UL_US_INCH_CONV
208 SRS_UL_US_YARD = _osr.SRS_UL_US_YARD
209 SRS_UL_US_YARD_CONV = _osr.SRS_UL_US_YARD_CONV
210 SRS_UL_US_CHAIN = _osr.SRS_UL_US_CHAIN
211 SRS_UL_US_CHAIN_CONV = _osr.SRS_UL_US_CHAIN_CONV
212 SRS_UL_US_STAT_MILE = _osr.SRS_UL_US_STAT_MILE
213 SRS_UL_US_STAT_MILE_CONV = _osr.SRS_UL_US_STAT_MILE_CONV
214 SRS_UL_INDIAN_YARD = _osr.SRS_UL_INDIAN_YARD
215 SRS_UL_INDIAN_YARD_CONV = _osr.SRS_UL_INDIAN_YARD_CONV
216 SRS_UL_INDIAN_FOOT = _osr.SRS_UL_INDIAN_FOOT
217 SRS_UL_INDIAN_FOOT_CONV = _osr.SRS_UL_INDIAN_FOOT_CONV
218 SRS_UL_INDIAN_CHAIN = _osr.SRS_UL_INDIAN_CHAIN
219 SRS_UL_INDIAN_CHAIN_CONV = _osr.SRS_UL_INDIAN_CHAIN_CONV
220 SRS_UA_DEGREE = _osr.SRS_UA_DEGREE
221 SRS_UA_DEGREE_CONV = _osr.SRS_UA_DEGREE_CONV
222 SRS_UA_RADIAN = _osr.SRS_UA_RADIAN
223 SRS_PM_GREENWICH = _osr.SRS_PM_GREENWICH
224 SRS_DN_NAD27 = _osr.SRS_DN_NAD27
225 SRS_DN_NAD83 = _osr.SRS_DN_NAD83
226 SRS_DN_WGS72 = _osr.SRS_DN_WGS72
227 SRS_DN_WGS84 = _osr.SRS_DN_WGS84
228 SRS_WGS84_SEMIMAJOR = _osr.SRS_WGS84_SEMIMAJOR
229 SRS_WGS84_INVFLATTENING = _osr.SRS_WGS84_INVFLATTENING
230 OAO_Other = _osr.OAO_Other
231 OAO_North = _osr.OAO_North
232 OAO_South = _osr.OAO_South
233 OAO_East = _osr.OAO_East
234 OAO_West = _osr.OAO_West
235 OAO_Up = _osr.OAO_Up
236 OAO_Down = _osr.OAO_Down
237 OAMS_TRADITIONAL_GIS_ORDER = _osr.OAMS_TRADITIONAL_GIS_ORDER
238 OAMS_AUTHORITY_COMPLIANT = _osr.OAMS_AUTHORITY_COMPLIANT
239 OAMS_CUSTOM = _osr.OAMS_CUSTOM
240 PROJ_ERR_INVALID_OP = _osr.PROJ_ERR_INVALID_OP
241 PROJ_ERR_INVALID_OP_WRONG_SYNTAX = _osr.PROJ_ERR_INVALID_OP_WRONG_SYNTAX
242 PROJ_ERR_INVALID_OP_MISSING_ARG = _osr.PROJ_ERR_INVALID_OP_MISSING_ARG
243 PROJ_ERR_INVALID_OP_ILLEGAL_ARG_VALUE = _osr.PROJ_ERR_INVALID_OP_ILLEGAL_ARG_VALUE
244 PROJ_ERR_INVALID_OP_MUTUALLY_EXCLUSIVE_ARGS = _osr.PROJ_ERR_INVALID_OP_MUTUALLY_EXCLUSIVE_ARGS
245 PROJ_ERR_INVALID_OP_FILE_NOT_FOUND_OR_INVALID = _osr.PROJ_ERR_INVALID_OP_FILE_NOT_FOUND_OR_INVALID
246 PROJ_ERR_COORD_TRANSFM = _osr.PROJ_ERR_COORD_TRANSFM
247 PROJ_ERR_COORD_TRANSFM_INVALID_COORD = _osr.PROJ_ERR_COORD_TRANSFM_INVALID_COORD
248 PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN = _osr.PROJ_ERR_COORD_TRANSFM_OUTSIDE_PROJECTION_DOMAIN
249 PROJ_ERR_COORD_TRANSFM_NO_OPERATION = _osr.PROJ_ERR_COORD_TRANSFM_NO_OPERATION
250 PROJ_ERR_COORD_TRANSFM_OUTSIDE_GRID = _osr.PROJ_ERR_COORD_TRANSFM_OUTSIDE_GRID
251 PROJ_ERR_COORD_TRANSFM_GRID_AT_NODATA = _osr.PROJ_ERR_COORD_TRANSFM_GRID_AT_NODATA
252 PROJ_ERR_OTHER = _osr.PROJ_ERR_OTHER
253 PROJ_ERR_OTHER_API_MISUSE = _osr.PROJ_ERR_OTHER_API_MISUSE
254 PROJ_ERR_OTHER_NO_INVERSE_OP = _osr.PROJ_ERR_OTHER_NO_INVERSE_OP
255 PROJ_ERR_OTHER_NETWORK_ERROR = _osr.PROJ_ERR_OTHER_NETWORK_ERROR
256
260
264
268
272
277 r"""Proxy of C++ OSRAreaOfUse class."""
278
279 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
280 __repr__ = _swig_repr
281 west_lon_degree = property(_osr.AreaOfUse_west_lon_degree_get, doc=r"""west_lon_degree : double""")
282 south_lat_degree = property(_osr.AreaOfUse_south_lat_degree_get, doc=r"""south_lat_degree : double""")
283 east_lon_degree = property(_osr.AreaOfUse_east_lon_degree_get, doc=r"""east_lon_degree : double""")
284 north_lat_degree = property(_osr.AreaOfUse_north_lat_degree_get, doc=r"""north_lat_degree : double""")
285 name = property(_osr.AreaOfUse_name_get, doc=r"""name : p.char""")
286
288 r"""__init__(AreaOfUse self, double west_lon_degree, double south_lat_degree, double east_lon_degree, double north_lat_degree, char * name) -> AreaOfUse"""
289 _osr.AreaOfUse_swiginit(self, _osr.new_AreaOfUse(*args))
290 __swig_destroy__ = _osr.delete_AreaOfUse
291
292
293 _osr.AreaOfUse_swigregister(AreaOfUse)
294
295
299
303
307
311
313 r"""OSRAreaOfUse_name_get(AreaOfUse area) -> char const *"""
314 return _osr.OSRAreaOfUse_name_get(*args)
316 r"""Proxy of C++ OSRSpatialReferenceShadow class."""
317
318 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
319 __repr__ = _swig_repr
320
322 r"""__init__(SpatialReference self, char const * wkt="") -> SpatialReference"""
323 _osr.SpatialReference_swiginit(self, _osr.new_SpatialReference(*args, **kwargs))
324 __swig_destroy__ = _osr.delete_SpatialReference
325
327 r"""__str__(SpatialReference self) -> retStringAndCPLFree *"""
328 return _osr.SpatialReference___str__(self, *args)
329
331 r"""GetName(SpatialReference self) -> char const *"""
332 return _osr.SpatialReference_GetName(self, *args)
333
334 - def IsSame(self, *args, **kwargs):
335 r"""IsSame(SpatialReference self, SpatialReference rhs, char ** options=None) -> int"""
336 return _osr.SpatialReference_IsSame(self, *args, **kwargs)
337
339 r"""IsSameGeogCS(SpatialReference self, SpatialReference rhs) -> int"""
340 return _osr.SpatialReference_IsSameGeogCS(self, *args)
341
343 r"""IsSameVertCS(SpatialReference self, SpatialReference rhs) -> int"""
344 return _osr.SpatialReference_IsSameVertCS(self, *args)
345
347 r"""IsGeographic(SpatialReference self) -> int"""
348 return _osr.SpatialReference_IsGeographic(self, *args)
349
351 r"""IsDerivedGeographic(SpatialReference self) -> int"""
352 return _osr.SpatialReference_IsDerivedGeographic(self, *args)
353
355 r"""IsProjected(SpatialReference self) -> int"""
356 return _osr.SpatialReference_IsProjected(self, *args)
357
359 r"""IsCompound(SpatialReference self) -> int"""
360 return _osr.SpatialReference_IsCompound(self, *args)
361
363 r"""IsGeocentric(SpatialReference self) -> int"""
364 return _osr.SpatialReference_IsGeocentric(self, *args)
365
367 r"""IsLocal(SpatialReference self) -> int"""
368 return _osr.SpatialReference_IsLocal(self, *args)
369
371 r"""IsVertical(SpatialReference self) -> int"""
372 return _osr.SpatialReference_IsVertical(self, *args)
373
375 r"""EPSGTreatsAsLatLong(SpatialReference self) -> int"""
376 return _osr.SpatialReference_EPSGTreatsAsLatLong(self, *args)
377
379 r"""EPSGTreatsAsNorthingEasting(SpatialReference self) -> int"""
380 return _osr.SpatialReference_EPSGTreatsAsNorthingEasting(self, *args)
381
383 r"""SetAuthority(SpatialReference self, char const * pszTargetKey, char const * pszAuthority, int nCode) -> OGRErr"""
384 return _osr.SpatialReference_SetAuthority(self, *args)
385
387 r"""GetAttrValue(SpatialReference self, char const * name, int child=0) -> char const *"""
388 return _osr.SpatialReference_GetAttrValue(self, *args)
389
391 r"""SetAttrValue(SpatialReference self, char const * name, char const * value) -> OGRErr"""
392 return _osr.SpatialReference_SetAttrValue(self, *args)
393
395 r"""SetAngularUnits(SpatialReference self, char const * name, double to_radians) -> OGRErr"""
396 return _osr.SpatialReference_SetAngularUnits(self, *args)
397
399 r"""GetAngularUnits(SpatialReference self) -> double"""
400 return _osr.SpatialReference_GetAngularUnits(self, *args)
401
403 r"""GetAngularUnitsName(SpatialReference self) -> char const *"""
404 return _osr.SpatialReference_GetAngularUnitsName(self, *args)
405
407 r"""SetTargetLinearUnits(SpatialReference self, char const * target, char const * name, double to_meters) -> OGRErr"""
408 return _osr.SpatialReference_SetTargetLinearUnits(self, *args)
409
411 r"""SetLinearUnits(SpatialReference self, char const * name, double to_meters) -> OGRErr"""
412 return _osr.SpatialReference_SetLinearUnits(self, *args)
413
415 r"""SetLinearUnitsAndUpdateParameters(SpatialReference self, char const * name, double to_meters) -> OGRErr"""
416 return _osr.SpatialReference_SetLinearUnitsAndUpdateParameters(self, *args)
417
419 r"""GetTargetLinearUnits(SpatialReference self, char const * target_key) -> double"""
420 return _osr.SpatialReference_GetTargetLinearUnits(self, *args)
421
423 r"""GetLinearUnits(SpatialReference self) -> double"""
424 return _osr.SpatialReference_GetLinearUnits(self, *args)
425
427 r"""GetLinearUnitsName(SpatialReference self) -> char const *"""
428 return _osr.SpatialReference_GetLinearUnitsName(self, *args)
429
431 r"""GetAuthorityCode(SpatialReference self, char const * target_key) -> char const *"""
432 return _osr.SpatialReference_GetAuthorityCode(self, *args)
433
435 r"""GetAuthorityName(SpatialReference self, char const * target_key) -> char const *"""
436 return _osr.SpatialReference_GetAuthorityName(self, *args)
437
439 r"""GetAreaOfUse(SpatialReference self) -> AreaOfUse"""
440 return _osr.SpatialReference_GetAreaOfUse(self, *args)
441
443 r"""GetAxisName(SpatialReference self, char const * target_key, int iAxis) -> char const *"""
444 return _osr.SpatialReference_GetAxisName(self, *args)
445
447 r"""GetAxesCount(SpatialReference self) -> int"""
448 return _osr.SpatialReference_GetAxesCount(self, *args)
449
451 r"""GetAxisOrientation(SpatialReference self, char const * target_key, int iAxis) -> OGRAxisOrientation"""
452 return _osr.SpatialReference_GetAxisOrientation(self, *args)
453
455 r"""GetAxisMappingStrategy(SpatialReference self) -> OSRAxisMappingStrategy"""
456 return _osr.SpatialReference_GetAxisMappingStrategy(self, *args)
457
459 r"""SetAxisMappingStrategy(SpatialReference self, OSRAxisMappingStrategy strategy)"""
460 return _osr.SpatialReference_SetAxisMappingStrategy(self, *args)
461
463 r"""GetDataAxisToSRSAxisMapping(SpatialReference self)"""
464 return _osr.SpatialReference_GetDataAxisToSRSAxisMapping(self, *args)
465
467 r"""SetDataAxisToSRSAxisMapping(SpatialReference self, int nList) -> OGRErr"""
468 return _osr.SpatialReference_SetDataAxisToSRSAxisMapping(self, *args)
469
471 r"""SetUTM(SpatialReference self, int zone, int north=1) -> OGRErr"""
472 return _osr.SpatialReference_SetUTM(self, *args)
473
475 r"""GetUTMZone(SpatialReference self) -> int"""
476 return _osr.SpatialReference_GetUTMZone(self, *args)
477
479 r"""SetStatePlane(SpatialReference self, int zone, int is_nad83=1, char const * unitsname="", double units=0.0) -> OGRErr"""
480 return _osr.SpatialReference_SetStatePlane(self, *args)
481
483 r"""AutoIdentifyEPSG(SpatialReference self) -> OGRErr"""
484 return _osr.SpatialReference_AutoIdentifyEPSG(self, *args)
485
487 r"""FindMatches(SpatialReference self, char ** options=None)"""
488 return _osr.SpatialReference_FindMatches(self, *args)
489
491 r"""SetProjection(SpatialReference self, char const * arg) -> OGRErr"""
492 return _osr.SpatialReference_SetProjection(self, *args)
493
495 r"""SetProjParm(SpatialReference self, char const * name, double val) -> OGRErr"""
496 return _osr.SpatialReference_SetProjParm(self, *args)
497
499 r"""GetProjParm(SpatialReference self, char const * name, double default_val=0.0) -> double"""
500 return _osr.SpatialReference_GetProjParm(self, *args)
501
503 r"""SetNormProjParm(SpatialReference self, char const * name, double val) -> OGRErr"""
504 return _osr.SpatialReference_SetNormProjParm(self, *args)
505
507 r"""GetNormProjParm(SpatialReference self, char const * name, double default_val=0.0) -> double"""
508 return _osr.SpatialReference_GetNormProjParm(self, *args)
509
511 r"""GetSemiMajor(SpatialReference self) -> double"""
512 return _osr.SpatialReference_GetSemiMajor(self, *args)
513
515 r"""GetSemiMinor(SpatialReference self) -> double"""
516 return _osr.SpatialReference_GetSemiMinor(self, *args)
517
519 r"""GetInvFlattening(SpatialReference self) -> double"""
520 return _osr.SpatialReference_GetInvFlattening(self, *args)
521
522 - def SetACEA(self, *args, **kwargs):
523 r"""SetACEA(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
524 return _osr.SpatialReference_SetACEA(self, *args, **kwargs)
525
526 - def SetAE(self, *args, **kwargs):
527 r"""SetAE(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
528 return _osr.SpatialReference_SetAE(self, *args, **kwargs)
529
531 r"""SetBonne(SpatialReference self, double stdp, double cm, double fe, double fn) -> OGRErr"""
532 return _osr.SpatialReference_SetBonne(self, *args, **kwargs)
533
534 - def SetCEA(self, *args, **kwargs):
535 r"""SetCEA(SpatialReference self, double stdp1, double cm, double fe, double fn) -> OGRErr"""
536 return _osr.SpatialReference_SetCEA(self, *args, **kwargs)
537
538 - def SetCS(self, *args, **kwargs):
539 r"""SetCS(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
540 return _osr.SpatialReference_SetCS(self, *args, **kwargs)
541
542 - def SetEC(self, *args, **kwargs):
543 r"""SetEC(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
544 return _osr.SpatialReference_SetEC(self, *args, **kwargs)
545
547 r"""SetEckertIV(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
548 return _osr.SpatialReference_SetEckertIV(self, *args, **kwargs)
549
551 r"""SetEckertVI(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
552 return _osr.SpatialReference_SetEckertVI(self, *args, **kwargs)
553
555 r"""SetEquirectangular(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
556 return _osr.SpatialReference_SetEquirectangular(self, *args, **kwargs)
557
559 r"""SetEquirectangular2(SpatialReference self, double clat, double clong, double pseudostdparallellat, double fe, double fn) -> OGRErr"""
560 return _osr.SpatialReference_SetEquirectangular2(self, *args, **kwargs)
561
563 r"""SetGaussSchreiberTMercator(SpatialReference self, double clat, double clong, double sc, double fe, double fn) -> OGRErr"""
564 return _osr.SpatialReference_SetGaussSchreiberTMercator(self, *args, **kwargs)
565
566 - def SetGS(self, *args, **kwargs):
567 r"""SetGS(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
568 return _osr.SpatialReference_SetGS(self, *args, **kwargs)
569
570 - def SetGH(self, *args, **kwargs):
571 r"""SetGH(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
572 return _osr.SpatialReference_SetGH(self, *args, **kwargs)
573
575 r"""SetIGH(SpatialReference self) -> OGRErr"""
576 return _osr.SpatialReference_SetIGH(self, *args)
577
578 - def SetGEOS(self, *args, **kwargs):
579 r"""SetGEOS(SpatialReference self, double cm, double satelliteheight, double fe, double fn) -> OGRErr"""
580 return _osr.SpatialReference_SetGEOS(self, *args, **kwargs)
581
583 r"""SetGnomonic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
584 return _osr.SpatialReference_SetGnomonic(self, *args, **kwargs)
585
586 - def SetHOM(self, *args, **kwargs):
587 r"""SetHOM(SpatialReference self, double clat, double clong, double azimuth, double recttoskew, double scale, double fe, double fn) -> OGRErr"""
588 return _osr.SpatialReference_SetHOM(self, *args, **kwargs)
589
591 r"""SetHOM2PNO(SpatialReference self, double clat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double scale, double fe, double fn) -> OGRErr"""
592 return _osr.SpatialReference_SetHOM2PNO(self, *args, **kwargs)
593
595 r"""SetKrovak(SpatialReference self, double clat, double clong, double azimuth, double pseudostdparallellat, double scale, double fe, double fn) -> OGRErr"""
596 return _osr.SpatialReference_SetKrovak(self, *args, **kwargs)
597
598 - def SetLAEA(self, *args, **kwargs):
599 r"""SetLAEA(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
600 return _osr.SpatialReference_SetLAEA(self, *args, **kwargs)
601
602 - def SetLCC(self, *args, **kwargs):
603 r"""SetLCC(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
604 return _osr.SpatialReference_SetLCC(self, *args, **kwargs)
605
607 r"""SetLCC1SP(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
608 return _osr.SpatialReference_SetLCC1SP(self, *args, **kwargs)
609
610 - def SetLCCB(self, *args, **kwargs):
611 r"""SetLCCB(SpatialReference self, double stdp1, double stdp2, double clat, double clong, double fe, double fn) -> OGRErr"""
612 return _osr.SpatialReference_SetLCCB(self, *args, **kwargs)
613
614 - def SetMC(self, *args, **kwargs):
615 r"""SetMC(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
616 return _osr.SpatialReference_SetMC(self, *args, **kwargs)
617
619 r"""SetMercator(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
620 return _osr.SpatialReference_SetMercator(self, *args, **kwargs)
621
623 r"""SetMercator2SP(SpatialReference self, double stdp1, double clat, double clong, double fe, double fn) -> OGRErr"""
624 return _osr.SpatialReference_SetMercator2SP(self, *args, **kwargs)
625
627 r"""SetMollweide(SpatialReference self, double cm, double fe, double fn) -> OGRErr"""
628 return _osr.SpatialReference_SetMollweide(self, *args, **kwargs)
629
630 - def SetNZMG(self, *args, **kwargs):
631 r"""SetNZMG(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
632 return _osr.SpatialReference_SetNZMG(self, *args, **kwargs)
633
634 - def SetOS(self, *args, **kwargs):
635 r"""SetOS(SpatialReference self, double dfOriginLat, double dfCMeridian, double scale, double fe, double fn) -> OGRErr"""
636 return _osr.SpatialReference_SetOS(self, *args, **kwargs)
637
639 r"""SetOrthographic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
640 return _osr.SpatialReference_SetOrthographic(self, *args, **kwargs)
641
643 r"""SetPolyconic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
644 return _osr.SpatialReference_SetPolyconic(self, *args, **kwargs)
645
646 - def SetPS(self, *args, **kwargs):
647 r"""SetPS(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
648 return _osr.SpatialReference_SetPS(self, *args, **kwargs)
649
651 r"""SetRobinson(SpatialReference self, double clong, double fe, double fn) -> OGRErr"""
652 return _osr.SpatialReference_SetRobinson(self, *args, **kwargs)
653
655 r"""SetSinusoidal(SpatialReference self, double clong, double fe, double fn) -> OGRErr"""
656 return _osr.SpatialReference_SetSinusoidal(self, *args, **kwargs)
657
659 r"""SetStereographic(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
660 return _osr.SpatialReference_SetStereographic(self, *args, **kwargs)
661
662 - def SetSOC(self, *args, **kwargs):
663 r"""SetSOC(SpatialReference self, double latitudeoforigin, double cm, double fe, double fn) -> OGRErr"""
664 return _osr.SpatialReference_SetSOC(self, *args, **kwargs)
665
666 - def SetTM(self, *args, **kwargs):
667 r"""SetTM(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
668 return _osr.SpatialReference_SetTM(self, *args, **kwargs)
669
671 r"""SetTMVariant(SpatialReference self, char const * pszVariantName, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
672 return _osr.SpatialReference_SetTMVariant(self, *args, **kwargs)
673
674 - def SetTMG(self, *args, **kwargs):
675 r"""SetTMG(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr"""
676 return _osr.SpatialReference_SetTMG(self, *args, **kwargs)
677
678 - def SetTMSO(self, *args, **kwargs):
679 r"""SetTMSO(SpatialReference self, double clat, double clong, double scale, double fe, double fn) -> OGRErr"""
680 return _osr.SpatialReference_SetTMSO(self, *args, **kwargs)
681
682 - def SetVDG(self, *args, **kwargs):
683 r"""SetVDG(SpatialReference self, double clong, double fe, double fn) -> OGRErr"""
684 return _osr.SpatialReference_SetVDG(self, *args, **kwargs)
685
687 r"""SetVerticalPerspective(SpatialReference self, double topoOriginLat, double topoOriginLon, double topoOriginHeight, double viewPointHeight, double fe, double fn) -> OGRErr"""
688 return _osr.SpatialReference_SetVerticalPerspective(self, *args, **kwargs)
689
691 r"""SetWellKnownGeogCS(SpatialReference self, char const * name) -> OGRErr"""
692 return _osr.SpatialReference_SetWellKnownGeogCS(self, *args)
693
697
699 r"""CopyGeogCSFrom(SpatialReference self, SpatialReference rhs) -> OGRErr"""
700 return _osr.SpatialReference_CopyGeogCSFrom(self, *args)
701
703 r"""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"""
704 return _osr.SpatialReference_SetTOWGS84(self, *args)
705
707 r"""HasTOWGS84(SpatialReference self) -> bool"""
708 return _osr.SpatialReference_HasTOWGS84(self, *args)
709
711 r"""GetTOWGS84(SpatialReference self) -> OGRErr"""
712 return _osr.SpatialReference_GetTOWGS84(self, *args)
713
715 r"""AddGuessedTOWGS84(SpatialReference self) -> OGRErr"""
716 return _osr.SpatialReference_AddGuessedTOWGS84(self, *args)
717
719 r"""SetLocalCS(SpatialReference self, char const * pszName) -> OGRErr"""
720 return _osr.SpatialReference_SetLocalCS(self, *args)
721
723 r"""SetGeogCS(SpatialReference self, char const * pszGeogName, char const * pszDatumName, char const * pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, char const * pszPMName="Greenwich", double dfPMOffset=0.0, char const * pszUnits="degree", double dfConvertToRadians=0.0174532925199433) -> OGRErr"""
724 return _osr.SpatialReference_SetGeogCS(self, *args)
725
727 r"""SetProjCS(SpatialReference self, char const * name="unnamed") -> OGRErr"""
728 return _osr.SpatialReference_SetProjCS(self, *args)
729
731 r"""SetGeocCS(SpatialReference self, char const * name="unnamed") -> OGRErr"""
732 return _osr.SpatialReference_SetGeocCS(self, *args)
733
735 r"""SetVertCS(SpatialReference self, char const * VertCSName="unnamed", char const * VertDatumName="unnamed", int VertDatumType=0) -> OGRErr"""
736 return _osr.SpatialReference_SetVertCS(self, *args)
737
739 r"""SetCompoundCS(SpatialReference self, char const * name, SpatialReference horizcs, SpatialReference vertcs) -> OGRErr"""
740 return _osr.SpatialReference_SetCompoundCS(self, *args)
741
743 r"""ImportFromWkt(SpatialReference self, char ** ppszInput) -> OGRErr"""
744 return _osr.SpatialReference_ImportFromWkt(self, *args)
745
747 r"""ImportFromProj4(SpatialReference self, char * ppszInput) -> OGRErr"""
748 return _osr.SpatialReference_ImportFromProj4(self, *args)
749
751 r"""ImportFromUrl(SpatialReference self, char * url) -> OGRErr"""
752 return _osr.SpatialReference_ImportFromUrl(self, *args)
753
755 r"""ImportFromESRI(SpatialReference self, char ** ppszInput) -> OGRErr"""
756 return _osr.SpatialReference_ImportFromESRI(self, *args)
757
759 r"""ImportFromEPSG(SpatialReference self, int arg) -> OGRErr"""
760 return _osr.SpatialReference_ImportFromEPSG(self, *args)
761
763 r"""ImportFromEPSGA(SpatialReference self, int arg) -> OGRErr"""
764 return _osr.SpatialReference_ImportFromEPSGA(self, *args)
765
767 r"""ImportFromPCI(SpatialReference self, char const * proj, char const * units="METRE", double [17] argin=0) -> OGRErr"""
768 return _osr.SpatialReference_ImportFromPCI(self, *args)
769
771 r"""ImportFromUSGS(SpatialReference self, long proj_code, long zone=0, double [15] argin=0, long datum_code=0) -> OGRErr"""
772 return _osr.SpatialReference_ImportFromUSGS(self, *args)
773
775 r"""ImportFromXML(SpatialReference self, char const * xmlString) -> OGRErr"""
776 return _osr.SpatialReference_ImportFromXML(self, *args)
777
779 r"""ImportFromERM(SpatialReference self, char const * proj, char const * datum, char const * units) -> OGRErr"""
780 return _osr.SpatialReference_ImportFromERM(self, *args)
781
783 r"""ImportFromMICoordSys(SpatialReference self, char const * pszCoordSys) -> OGRErr"""
784 return _osr.SpatialReference_ImportFromMICoordSys(self, *args)
785
787 r"""ImportFromOzi(SpatialReference self, char const *const * papszLines) -> OGRErr"""
788 return _osr.SpatialReference_ImportFromOzi(self, *args)
789
791 r"""ExportToWkt(SpatialReference self, char ** options=None) -> OGRErr"""
792 return _osr.SpatialReference_ExportToWkt(self, *args)
793
795 r"""ExportToPrettyWkt(SpatialReference self, int simplify=0) -> OGRErr"""
796 return _osr.SpatialReference_ExportToPrettyWkt(self, *args)
797
799 r"""ExportToPROJJSON(SpatialReference self, char ** options=None) -> OGRErr"""
800 return _osr.SpatialReference_ExportToPROJJSON(self, *args)
801
803 r"""ExportToProj4(SpatialReference self) -> OGRErr"""
804 return _osr.SpatialReference_ExportToProj4(self, *args)
805
807 r"""ExportToPCI(SpatialReference self) -> OGRErr"""
808 return _osr.SpatialReference_ExportToPCI(self, *args)
809
811 r"""ExportToUSGS(SpatialReference self) -> OGRErr"""
812 return _osr.SpatialReference_ExportToUSGS(self, *args)
813
815 r"""ExportToXML(SpatialReference self, char const * dialect="") -> OGRErr"""
816 return _osr.SpatialReference_ExportToXML(self, *args)
817
819 r"""ExportToMICoordSys(SpatialReference self) -> OGRErr"""
820 return _osr.SpatialReference_ExportToMICoordSys(self, *args)
821
823 r"""CloneGeogCS(SpatialReference self) -> SpatialReference"""
824 return _osr.SpatialReference_CloneGeogCS(self, *args)
825
827 r"""Clone(SpatialReference self) -> SpatialReference"""
828 return _osr.SpatialReference_Clone(self, *args)
829
831 r"""Validate(SpatialReference self) -> OGRErr"""
832 return _osr.SpatialReference_Validate(self, *args)
833
835 r"""MorphToESRI(SpatialReference self) -> OGRErr"""
836 return _osr.SpatialReference_MorphToESRI(self, *args)
837
839 r"""MorphFromESRI(SpatialReference self) -> OGRErr"""
840 return _osr.SpatialReference_MorphFromESRI(self, *args)
841
843 r"""ConvertToOtherProjection(SpatialReference self, char const * other_projection, char ** options=None) -> SpatialReference"""
844 return _osr.SpatialReference_ConvertToOtherProjection(self, *args)
845
849
851 r"""DemoteTo2D(SpatialReference self, char const * name=None) -> OGRErr"""
852 return _osr.SpatialReference_DemoteTo2D(self, *args)
853
854
856 """__init__(OSRSpatialReferenceShadow self, char const * wkt) -> SpatialReference"""
857 oldval = _osr.GetUseExceptions()
858 if not oldval:
859 _osr.UseExceptions()
860 try:
861 this = _osr.new_SpatialReference(*args, **kwargs)
862 finally:
863 if not oldval:
864 _osr.DontUseExceptions()
865 try:
866 self.this.append(this)
867 except __builtin__.Exception:
868 self.this = this
869
870
871
872
873 _osr.SpatialReference_swigregister(SpatialReference)
874
901
902
903 _osr.CoordinateTransformationOptions_swigregister(CoordinateTransformationOptions)
904
935
936
937 _osr.CoordinateTransformation_swigregister(CoordinateTransformation)
938
939
943 OSR_CRS_TYPE_GEOGRAPHIC_2D = _osr.OSR_CRS_TYPE_GEOGRAPHIC_2D
944
945 OSR_CRS_TYPE_GEOGRAPHIC_3D = _osr.OSR_CRS_TYPE_GEOGRAPHIC_3D
946
947 OSR_CRS_TYPE_GEOCENTRIC = _osr.OSR_CRS_TYPE_GEOCENTRIC
948
949 OSR_CRS_TYPE_PROJECTED = _osr.OSR_CRS_TYPE_PROJECTED
950
951 OSR_CRS_TYPE_VERTICAL = _osr.OSR_CRS_TYPE_VERTICAL
952
953 OSR_CRS_TYPE_COMPOUND = _osr.OSR_CRS_TYPE_COMPOUND
954
955 OSR_CRS_TYPE_OTHER = _osr.OSR_CRS_TYPE_OTHER
956
958 r"""Proxy of C++ OSRCRSInfo class."""
959
960 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
961 __repr__ = _swig_repr
962 auth_name = property(_osr.CRSInfo_auth_name_get, doc=r"""auth_name : p.char""")
963 code = property(_osr.CRSInfo_code_get, doc=r"""code : p.char""")
964 name = property(_osr.CRSInfo_name_get, doc=r"""name : p.char""")
965 type = property(_osr.CRSInfo_type_get, doc=r"""type : OSRCRSType""")
966 deprecated = property(_osr.CRSInfo_deprecated_get, doc=r"""deprecated : bool""")
967 bbox_valid = property(_osr.CRSInfo_bbox_valid_get, doc=r"""bbox_valid : bool""")
968 west_lon_degree = property(_osr.CRSInfo_west_lon_degree_get, doc=r"""west_lon_degree : double""")
969 south_lat_degree = property(_osr.CRSInfo_south_lat_degree_get, doc=r"""south_lat_degree : double""")
970 east_lon_degree = property(_osr.CRSInfo_east_lon_degree_get, doc=r"""east_lon_degree : double""")
971 north_lat_degree = property(_osr.CRSInfo_north_lat_degree_get, doc=r"""north_lat_degree : double""")
972 area_name = property(_osr.CRSInfo_area_name_get, doc=r"""area_name : p.char""")
973 projection_method = property(_osr.CRSInfo_projection_method_get, doc=r"""projection_method : p.char""")
974
976 r"""__init__(CRSInfo 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"""
977 _osr.CRSInfo_swiginit(self, _osr.new_CRSInfo(*args))
978 __swig_destroy__ = _osr.delete_CRSInfo
979
980
981 _osr.CRSInfo_swigregister(CRSInfo)
982
983
987
989 r"""OSRCRSInfo_code_get(CRSInfo crsInfo) -> char const *"""
990 return _osr.OSRCRSInfo_code_get(*args)
991
993 r"""OSRCRSInfo_name_get(CRSInfo crsInfo) -> char const *"""
994 return _osr.OSRCRSInfo_name_get(*args)
995
997 r"""OSRCRSInfo_type_get(CRSInfo crsInfo) -> OSRCRSType"""
998 return _osr.OSRCRSInfo_type_get(*args)
999
1003
1007
1011
1015
1019
1023
1027
1031
1035
1037 r"""SetPROJSearchPath(char const * utf8_path)"""
1038 return _osr.SetPROJSearchPath(*args)
1039
1043
1047
1051
1055
1059
1061 r"""SetPROJAuxDbPath(char const * utf8_path)"""
1062 return _osr.SetPROJAuxDbPath(*args)
1063
1065 r"""SetPROJAuxDbPaths(char ** paths)"""
1066 return _osr.SetPROJAuxDbPaths(*args)
1067
1071