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

Source Code for Module osgeo.osr

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