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 4.0.1 
   3  # 
   4  # Do not make changes to this file unless you know what you are doing--modify 
   5  # the SWIG interface file instead. 
   6   
   7  from sys import version_info as _swig_python_version_info 
   8  if _swig_python_version_info < (2, 7, 0): 
   9      raise RuntimeError("Python 2.7 or later required") 
  10   
  11  # Import the low-level C/C++ module 
  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   
22 -def _swig_repr(self):
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
30 -def _swig_setattr_nondynamic_instance_variable(set):
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
43 -def _swig_setattr_nondynamic_class_variable(set):
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
52 -def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass""" 54 def wrapper(cls): 55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 return wrapper 57 58
59 -class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class""" 61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
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
257 -def GetUseExceptions(*args):
258 r"""GetUseExceptions() -> int""" 259 return _osr.GetUseExceptions(*args)
260
261 -def UseExceptions(*args):
262 r"""UseExceptions()""" 263 return _osr.UseExceptions(*args)
264
265 -def DontUseExceptions(*args):
266 r"""DontUseExceptions()""" 267 return _osr.DontUseExceptions(*args)
268
269 -def GetWellKnownGeogCSAsWKT(*args):
270 r"""GetWellKnownGeogCSAsWKT(char const * name) -> OGRErr""" 271 return _osr.GetWellKnownGeogCSAsWKT(*args)
272
273 -def GetUserInputAsWKT(*args):
274 r"""GetUserInputAsWKT(char const * name) -> OGRErr""" 275 return _osr.GetUserInputAsWKT(*args)
276 -class AreaOfUse(object):
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
287 - def __init__(self, *args):
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 # Register AreaOfUse in _osr: 293 _osr.AreaOfUse_swigregister(AreaOfUse) 294 295
296 -def OSRAreaOfUse_west_lon_degree_get(*args):
297 r"""OSRAreaOfUse_west_lon_degree_get(AreaOfUse area) -> double""" 298 return _osr.OSRAreaOfUse_west_lon_degree_get(*args)
299
300 -def OSRAreaOfUse_south_lat_degree_get(*args):
301 r"""OSRAreaOfUse_south_lat_degree_get(AreaOfUse area) -> double""" 302 return _osr.OSRAreaOfUse_south_lat_degree_get(*args)
303
304 -def OSRAreaOfUse_east_lon_degree_get(*args):
305 r"""OSRAreaOfUse_east_lon_degree_get(AreaOfUse area) -> double""" 306 return _osr.OSRAreaOfUse_east_lon_degree_get(*args)
307
308 -def OSRAreaOfUse_north_lat_degree_get(*args):
309 r"""OSRAreaOfUse_north_lat_degree_get(AreaOfUse area) -> double""" 310 return _osr.OSRAreaOfUse_north_lat_degree_get(*args)
311
312 -def OSRAreaOfUse_name_get(*args):
313 r"""OSRAreaOfUse_name_get(AreaOfUse area) -> char const *""" 314 return _osr.OSRAreaOfUse_name_get(*args)
315 -class SpatialReference(object):
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
321 - def __init__(self, *args, **kwargs):
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
326 - def __str__(self, *args):
327 r"""__str__(SpatialReference self) -> retStringAndCPLFree *""" 328 return _osr.SpatialReference___str__(self, *args)
329
330 - def GetName(self, *args):
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
338 - def IsSameGeogCS(self, *args):
339 r"""IsSameGeogCS(SpatialReference self, SpatialReference rhs) -> int""" 340 return _osr.SpatialReference_IsSameGeogCS(self, *args)
341
342 - def IsSameVertCS(self, *args):
343 r"""IsSameVertCS(SpatialReference self, SpatialReference rhs) -> int""" 344 return _osr.SpatialReference_IsSameVertCS(self, *args)
345
346 - def IsGeographic(self, *args):
347 r"""IsGeographic(SpatialReference self) -> int""" 348 return _osr.SpatialReference_IsGeographic(self, *args)
349
350 - def IsDerivedGeographic(self, *args):
351 r"""IsDerivedGeographic(SpatialReference self) -> int""" 352 return _osr.SpatialReference_IsDerivedGeographic(self, *args)
353
354 - def IsProjected(self, *args):
355 r"""IsProjected(SpatialReference self) -> int""" 356 return _osr.SpatialReference_IsProjected(self, *args)
357
358 - def IsCompound(self, *args):
359 r"""IsCompound(SpatialReference self) -> int""" 360 return _osr.SpatialReference_IsCompound(self, *args)
361
362 - def IsGeocentric(self, *args):
363 r"""IsGeocentric(SpatialReference self) -> int""" 364 return _osr.SpatialReference_IsGeocentric(self, *args)
365
366 - def IsLocal(self, *args):
367 r"""IsLocal(SpatialReference self) -> int""" 368 return _osr.SpatialReference_IsLocal(self, *args)
369
370 - def IsVertical(self, *args):
371 r"""IsVertical(SpatialReference self) -> int""" 372 return _osr.SpatialReference_IsVertical(self, *args)
373
374 - def EPSGTreatsAsLatLong(self, *args):
375 r"""EPSGTreatsAsLatLong(SpatialReference self) -> int""" 376 return _osr.SpatialReference_EPSGTreatsAsLatLong(self, *args)
377
378 - def EPSGTreatsAsNorthingEasting(self, *args):
379 r"""EPSGTreatsAsNorthingEasting(SpatialReference self) -> int""" 380 return _osr.SpatialReference_EPSGTreatsAsNorthingEasting(self, *args)
381
382 - def SetAuthority(self, *args):
383 r"""SetAuthority(SpatialReference self, char const * pszTargetKey, char const * pszAuthority, int nCode) -> OGRErr""" 384 return _osr.SpatialReference_SetAuthority(self, *args)
385
386 - def GetAttrValue(self, *args):
387 r"""GetAttrValue(SpatialReference self, char const * name, int child=0) -> char const *""" 388 return _osr.SpatialReference_GetAttrValue(self, *args)
389
390 - def SetAttrValue(self, *args):
391 r"""SetAttrValue(SpatialReference self, char const * name, char const * value) -> OGRErr""" 392 return _osr.SpatialReference_SetAttrValue(self, *args)
393
394 - def SetAngularUnits(self, *args):
395 r"""SetAngularUnits(SpatialReference self, char const * name, double to_radians) -> OGRErr""" 396 return _osr.SpatialReference_SetAngularUnits(self, *args)
397
398 - def GetAngularUnits(self, *args):
399 r"""GetAngularUnits(SpatialReference self) -> double""" 400 return _osr.SpatialReference_GetAngularUnits(self, *args)
401
402 - def GetAngularUnitsName(self, *args):
403 r"""GetAngularUnitsName(SpatialReference self) -> char const *""" 404 return _osr.SpatialReference_GetAngularUnitsName(self, *args)
405
406 - def SetTargetLinearUnits(self, *args):
407 r"""SetTargetLinearUnits(SpatialReference self, char const * target, char const * name, double to_meters) -> OGRErr""" 408 return _osr.SpatialReference_SetTargetLinearUnits(self, *args)
409
410 - def SetLinearUnits(self, *args):
411 r"""SetLinearUnits(SpatialReference self, char const * name, double to_meters) -> OGRErr""" 412 return _osr.SpatialReference_SetLinearUnits(self, *args)
413
414 - def SetLinearUnitsAndUpdateParameters(self, *args):
415 r"""SetLinearUnitsAndUpdateParameters(SpatialReference self, char const * name, double to_meters) -> OGRErr""" 416 return _osr.SpatialReference_SetLinearUnitsAndUpdateParameters(self, *args)
417
418 - def GetTargetLinearUnits(self, *args):
419 r"""GetTargetLinearUnits(SpatialReference self, char const * target_key) -> double""" 420 return _osr.SpatialReference_GetTargetLinearUnits(self, *args)
421
422 - def GetLinearUnits(self, *args):
423 r"""GetLinearUnits(SpatialReference self) -> double""" 424 return _osr.SpatialReference_GetLinearUnits(self, *args)
425
426 - def GetLinearUnitsName(self, *args):
427 r"""GetLinearUnitsName(SpatialReference self) -> char const *""" 428 return _osr.SpatialReference_GetLinearUnitsName(self, *args)
429
430 - def GetAuthorityCode(self, *args):
431 r"""GetAuthorityCode(SpatialReference self, char const * target_key) -> char const *""" 432 return _osr.SpatialReference_GetAuthorityCode(self, *args)
433
434 - def GetAuthorityName(self, *args):
435 r"""GetAuthorityName(SpatialReference self, char const * target_key) -> char const *""" 436 return _osr.SpatialReference_GetAuthorityName(self, *args)
437
438 - def GetAreaOfUse(self, *args):
439 r"""GetAreaOfUse(SpatialReference self) -> AreaOfUse""" 440 return _osr.SpatialReference_GetAreaOfUse(self, *args)
441
442 - def GetAxisName(self, *args):
443 r"""GetAxisName(SpatialReference self, char const * target_key, int iAxis) -> char const *""" 444 return _osr.SpatialReference_GetAxisName(self, *args)
445
446 - def GetAxesCount(self, *args):
447 r"""GetAxesCount(SpatialReference self) -> int""" 448 return _osr.SpatialReference_GetAxesCount(self, *args)
449
450 - def GetAxisOrientation(self, *args):
451 r"""GetAxisOrientation(SpatialReference self, char const * target_key, int iAxis) -> OGRAxisOrientation""" 452 return _osr.SpatialReference_GetAxisOrientation(self, *args)
453
454 - def GetAxisMappingStrategy(self, *args):
455 r"""GetAxisMappingStrategy(SpatialReference self) -> OSRAxisMappingStrategy""" 456 return _osr.SpatialReference_GetAxisMappingStrategy(self, *args)
457
458 - def SetAxisMappingStrategy(self, *args):
459 r"""SetAxisMappingStrategy(SpatialReference self, OSRAxisMappingStrategy strategy)""" 460 return _osr.SpatialReference_SetAxisMappingStrategy(self, *args)
461
462 - def GetDataAxisToSRSAxisMapping(self, *args):
463 r"""GetDataAxisToSRSAxisMapping(SpatialReference self)""" 464 return _osr.SpatialReference_GetDataAxisToSRSAxisMapping(self, *args)
465
466 - def SetDataAxisToSRSAxisMapping(self, *args):
467 r"""SetDataAxisToSRSAxisMapping(SpatialReference self, int nList) -> OGRErr""" 468 return _osr.SpatialReference_SetDataAxisToSRSAxisMapping(self, *args)
469
470 - def SetUTM(self, *args):
471 r"""SetUTM(SpatialReference self, int zone, int north=1) -> OGRErr""" 472 return _osr.SpatialReference_SetUTM(self, *args)
473
474 - def GetUTMZone(self, *args):
475 r"""GetUTMZone(SpatialReference self) -> int""" 476 return _osr.SpatialReference_GetUTMZone(self, *args)
477
478 - def SetStatePlane(self, *args):
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
482 - def AutoIdentifyEPSG(self, *args):
483 r"""AutoIdentifyEPSG(SpatialReference self) -> OGRErr""" 484 return _osr.SpatialReference_AutoIdentifyEPSG(self, *args)
485
486 - def FindMatches(self, *args):
487 r"""FindMatches(SpatialReference self, char ** options=None)""" 488 return _osr.SpatialReference_FindMatches(self, *args)
489
490 - def SetProjection(self, *args):
491 r"""SetProjection(SpatialReference self, char const * arg) -> OGRErr""" 492 return _osr.SpatialReference_SetProjection(self, *args)
493
494 - def SetProjParm(self, *args):
495 r"""SetProjParm(SpatialReference self, char const * name, double val) -> OGRErr""" 496 return _osr.SpatialReference_SetProjParm(self, *args)
497
498 - def GetProjParm(self, *args):
499 r"""GetProjParm(SpatialReference self, char const * name, double default_val=0.0) -> double""" 500 return _osr.SpatialReference_GetProjParm(self, *args)
501
502 - def SetNormProjParm(self, *args):
503 r"""SetNormProjParm(SpatialReference self, char const * name, double val) -> OGRErr""" 504 return _osr.SpatialReference_SetNormProjParm(self, *args)
505
506 - def GetNormProjParm(self, *args):
507 r"""GetNormProjParm(SpatialReference self, char const * name, double default_val=0.0) -> double""" 508 return _osr.SpatialReference_GetNormProjParm(self, *args)
509
510 - def GetSemiMajor(self, *args):
511 r"""GetSemiMajor(SpatialReference self) -> double""" 512 return _osr.SpatialReference_GetSemiMajor(self, *args)
513
514 - def GetSemiMinor(self, *args):
515 r"""GetSemiMinor(SpatialReference self) -> double""" 516 return _osr.SpatialReference_GetSemiMinor(self, *args)
517
518 - def GetInvFlattening(self, *args):
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
530 - def SetBonne(self, *args, **kwargs):
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
546 - def SetEckertIV(self, *args, **kwargs):
547 r"""SetEckertIV(SpatialReference self, double cm, double fe, double fn) -> OGRErr""" 548 return _osr.SpatialReference_SetEckertIV(self, *args, **kwargs)
549
550 - def SetEckertVI(self, *args, **kwargs):
551 r"""SetEckertVI(SpatialReference self, double cm, double fe, double fn) -> OGRErr""" 552 return _osr.SpatialReference_SetEckertVI(self, *args, **kwargs)
553
554 - def SetEquirectangular(self, *args, **kwargs):
555 r"""SetEquirectangular(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr""" 556 return _osr.SpatialReference_SetEquirectangular(self, *args, **kwargs)
557
558 - def SetEquirectangular2(self, *args, **kwargs):
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
562 - def SetGaussSchreiberTMercator(self, *args, **kwargs):
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
574 - def SetIGH(self, *args):
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
582 - def SetGnomonic(self, *args, **kwargs):
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
590 - def SetHOM2PNO(self, *args, **kwargs):
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
594 - def SetKrovak(self, *args, **kwargs):
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
606 - def SetLCC1SP(self, *args, **kwargs):
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
618 - def SetMercator(self, *args, **kwargs):
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
622 - def SetMercator2SP(self, *args, **kwargs):
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
626 - def SetMollweide(self, *args, **kwargs):
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
638 - def SetOrthographic(self, *args, **kwargs):
639 r"""SetOrthographic(SpatialReference self, double clat, double clong, double fe, double fn) -> OGRErr""" 640 return _osr.SpatialReference_SetOrthographic(self, *args, **kwargs)
641
642 - def SetPolyconic(self, *args, **kwargs):
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
650 - def SetRobinson(self, *args, **kwargs):
651 r"""SetRobinson(SpatialReference self, double clong, double fe, double fn) -> OGRErr""" 652 return _osr.SpatialReference_SetRobinson(self, *args, **kwargs)
653
654 - def SetSinusoidal(self, *args, **kwargs):
655 r"""SetSinusoidal(SpatialReference self, double clong, double fe, double fn) -> OGRErr""" 656 return _osr.SpatialReference_SetSinusoidal(self, *args, **kwargs)
657
658 - def SetStereographic(self, *args, **kwargs):
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
670 - def SetTMVariant(self, *args, **kwargs):
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
686 - def SetVerticalPerspective(self, *args, **kwargs):
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
690 - def SetWellKnownGeogCS(self, *args):
691 r"""SetWellKnownGeogCS(SpatialReference self, char const * name) -> OGRErr""" 692 return _osr.SpatialReference_SetWellKnownGeogCS(self, *args)
693
694 - def SetFromUserInput(self, *args):
695 r"""SetFromUserInput(SpatialReference self, char const * name) -> OGRErr""" 696 return _osr.SpatialReference_SetFromUserInput(self, *args)
697
698 - def CopyGeogCSFrom(self, *args):
699 r"""CopyGeogCSFrom(SpatialReference self, SpatialReference rhs) -> OGRErr""" 700 return _osr.SpatialReference_CopyGeogCSFrom(self, *args)
701
702 - def SetTOWGS84(self, *args):
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
706 - def HasTOWGS84(self, *args):
707 r"""HasTOWGS84(SpatialReference self) -> bool""" 708 return _osr.SpatialReference_HasTOWGS84(self, *args)
709
710 - def GetTOWGS84(self, *args):
711 r"""GetTOWGS84(SpatialReference self) -> OGRErr""" 712 return _osr.SpatialReference_GetTOWGS84(self, *args)
713
714 - def AddGuessedTOWGS84(self, *args):
715 r"""AddGuessedTOWGS84(SpatialReference self) -> OGRErr""" 716 return _osr.SpatialReference_AddGuessedTOWGS84(self, *args)
717
718 - def SetLocalCS(self, *args):
719 r"""SetLocalCS(SpatialReference self, char const * pszName) -> OGRErr""" 720 return _osr.SpatialReference_SetLocalCS(self, *args)
721
722 - def SetGeogCS(self, *args):
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
726 - def SetProjCS(self, *args):
727 r"""SetProjCS(SpatialReference self, char const * name="unnamed") -> OGRErr""" 728 return _osr.SpatialReference_SetProjCS(self, *args)
729
730 - def SetGeocCS(self, *args):
731 r"""SetGeocCS(SpatialReference self, char const * name="unnamed") -> OGRErr""" 732 return _osr.SpatialReference_SetGeocCS(self, *args)
733
734 - def SetVertCS(self, *args):
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
738 - def SetCompoundCS(self, *args):
739 r"""SetCompoundCS(SpatialReference self, char const * name, SpatialReference horizcs, SpatialReference vertcs) -> OGRErr""" 740 return _osr.SpatialReference_SetCompoundCS(self, *args)
741
742 - def ImportFromWkt(self, *args):
743 r"""ImportFromWkt(SpatialReference self, char ** ppszInput) -> OGRErr""" 744 return _osr.SpatialReference_ImportFromWkt(self, *args)
745
746 - def ImportFromProj4(self, *args):
747 r"""ImportFromProj4(SpatialReference self, char * ppszInput) -> OGRErr""" 748 return _osr.SpatialReference_ImportFromProj4(self, *args)
749
750 - def ImportFromUrl(self, *args):
751 r"""ImportFromUrl(SpatialReference self, char * url) -> OGRErr""" 752 return _osr.SpatialReference_ImportFromUrl(self, *args)
753
754 - def ImportFromESRI(self, *args):
755 r"""ImportFromESRI(SpatialReference self, char ** ppszInput) -> OGRErr""" 756 return _osr.SpatialReference_ImportFromESRI(self, *args)
757
758 - def ImportFromEPSG(self, *args):
759 r"""ImportFromEPSG(SpatialReference self, int arg) -> OGRErr""" 760 return _osr.SpatialReference_ImportFromEPSG(self, *args)
761
762 - def ImportFromEPSGA(self, *args):
763 r"""ImportFromEPSGA(SpatialReference self, int arg) -> OGRErr""" 764 return _osr.SpatialReference_ImportFromEPSGA(self, *args)
765
766 - def ImportFromPCI(self, *args):
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
770 - def ImportFromUSGS(self, *args):
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
774 - def ImportFromXML(self, *args):
775 r"""ImportFromXML(SpatialReference self, char const * xmlString) -> OGRErr""" 776 return _osr.SpatialReference_ImportFromXML(self, *args)
777
778 - def ImportFromERM(self, *args):
779 r"""ImportFromERM(SpatialReference self, char const * proj, char const * datum, char const * units) -> OGRErr""" 780 return _osr.SpatialReference_ImportFromERM(self, *args)
781
782 - def ImportFromMICoordSys(self, *args):
783 r"""ImportFromMICoordSys(SpatialReference self, char const * pszCoordSys) -> OGRErr""" 784 return _osr.SpatialReference_ImportFromMICoordSys(self, *args)
785
786 - def ImportFromOzi(self, *args):
787 r"""ImportFromOzi(SpatialReference self, char const *const * papszLines) -> OGRErr""" 788 return _osr.SpatialReference_ImportFromOzi(self, *args)
789
790 - def ExportToWkt(self, *args):
791 r"""ExportToWkt(SpatialReference self, char ** options=None) -> OGRErr""" 792 return _osr.SpatialReference_ExportToWkt(self, *args)
793
794 - def ExportToPrettyWkt(self, *args):
795 r"""ExportToPrettyWkt(SpatialReference self, int simplify=0) -> OGRErr""" 796 return _osr.SpatialReference_ExportToPrettyWkt(self, *args)
797
798 - def ExportToPROJJSON(self, *args):
799 r"""ExportToPROJJSON(SpatialReference self, char ** options=None) -> OGRErr""" 800 return _osr.SpatialReference_ExportToPROJJSON(self, *args)
801
802 - def ExportToProj4(self, *args):
803 r"""ExportToProj4(SpatialReference self) -> OGRErr""" 804 return _osr.SpatialReference_ExportToProj4(self, *args)
805
806 - def ExportToPCI(self, *args):
807 r"""ExportToPCI(SpatialReference self) -> OGRErr""" 808 return _osr.SpatialReference_ExportToPCI(self, *args)
809
810 - def ExportToUSGS(self, *args):
811 r"""ExportToUSGS(SpatialReference self) -> OGRErr""" 812 return _osr.SpatialReference_ExportToUSGS(self, *args)
813
814 - def ExportToXML(self, *args):
815 r"""ExportToXML(SpatialReference self, char const * dialect="") -> OGRErr""" 816 return _osr.SpatialReference_ExportToXML(self, *args)
817
818 - def ExportToMICoordSys(self, *args):
819 r"""ExportToMICoordSys(SpatialReference self) -> OGRErr""" 820 return _osr.SpatialReference_ExportToMICoordSys(self, *args)
821
822 - def CloneGeogCS(self, *args):
823 r"""CloneGeogCS(SpatialReference self) -> SpatialReference""" 824 return _osr.SpatialReference_CloneGeogCS(self, *args)
825
826 - def Clone(self, *args):
827 r"""Clone(SpatialReference self) -> SpatialReference""" 828 return _osr.SpatialReference_Clone(self, *args)
829
830 - def Validate(self, *args):
831 r"""Validate(SpatialReference self) -> OGRErr""" 832 return _osr.SpatialReference_Validate(self, *args)
833
834 - def MorphToESRI(self, *args):
835 r"""MorphToESRI(SpatialReference self) -> OGRErr""" 836 return _osr.SpatialReference_MorphToESRI(self, *args)
837
838 - def MorphFromESRI(self, *args):
839 r"""MorphFromESRI(SpatialReference self) -> OGRErr""" 840 return _osr.SpatialReference_MorphFromESRI(self, *args)
841
842 - def ConvertToOtherProjection(self, *args):
843 r"""ConvertToOtherProjection(SpatialReference self, char const * other_projection, char ** options=None) -> SpatialReference""" 844 return _osr.SpatialReference_ConvertToOtherProjection(self, *args)
845
846 - def PromoteTo3D(self, *args):
847 r"""PromoteTo3D(SpatialReference self, char const * name=None) -> OGRErr""" 848 return _osr.SpatialReference_PromoteTo3D(self, *args)
849
850 - def DemoteTo2D(self, *args):
851 r"""DemoteTo2D(SpatialReference self, char const * name=None) -> OGRErr""" 852 return _osr.SpatialReference_DemoteTo2D(self, *args)
853 854
855 - def __init__(self, *args, **kwargs):
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 # Register SpatialReference in _osr: 873 _osr.SpatialReference_swigregister(SpatialReference) 874
875 -class CoordinateTransformationOptions(object):
876 r"""Proxy of C++ OGRCoordinateTransformationOptions class.""" 877 878 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 879 __repr__ = _swig_repr 880
881 - def __init__(self, *args):
882 r"""__init__(CoordinateTransformationOptions self) -> CoordinateTransformationOptions""" 883 _osr.CoordinateTransformationOptions_swiginit(self, _osr.new_CoordinateTransformationOptions(*args))
884 __swig_destroy__ = _osr.delete_CoordinateTransformationOptions 885
886 - def SetAreaOfInterest(self, *args):
887 r"""SetAreaOfInterest(CoordinateTransformationOptions self, double westLongitudeDeg, double southLatitudeDeg, double eastLongitudeDeg, double northLatitudeDeg) -> bool""" 888 return _osr.CoordinateTransformationOptions_SetAreaOfInterest(self, *args)
889
890 - def SetOperation(self, *args):
891 r"""SetOperation(CoordinateTransformationOptions self, char const * operation) -> bool""" 892 return _osr.CoordinateTransformationOptions_SetOperation(self, *args)
893
894 - def SetDesiredAccuracy(self, *args):
895 r"""SetDesiredAccuracy(CoordinateTransformationOptions self, double accuracy) -> bool""" 896 return _osr.CoordinateTransformationOptions_SetDesiredAccuracy(self, *args)
897
898 - def SetBallparkAllowed(self, *args):
899 r"""SetBallparkAllowed(CoordinateTransformationOptions self, bool allowBallpark) -> bool""" 900 return _osr.CoordinateTransformationOptions_SetBallparkAllowed(self, *args)
901 902 # Register CoordinateTransformationOptions in _osr: 903 _osr.CoordinateTransformationOptions_swigregister(CoordinateTransformationOptions) 904
905 -class CoordinateTransformation(object):
906 r"""Proxy of C++ OSRCoordinateTransformationShadow class.""" 907 908 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") 909 __repr__ = _swig_repr 910
911 - def __init__(self, *args):
912 r""" 913 __init__(CoordinateTransformation self, SpatialReference src, SpatialReference dst) -> CoordinateTransformation 914 __init__(CoordinateTransformation self, SpatialReference src, SpatialReference dst, CoordinateTransformationOptions options) -> CoordinateTransformation 915 """ 916 _osr.CoordinateTransformation_swiginit(self, _osr.new_CoordinateTransformation(*args))
917 __swig_destroy__ = _osr.delete_CoordinateTransformation 918
919 - def TransformPoint(self, *args):
920 r""" 921 TransformPoint(CoordinateTransformation self, double [3] inout) 922 TransformPoint(CoordinateTransformation self, double [4] inout) 923 TransformPoint(CoordinateTransformation self, double x, double y, double z=0.0) 924 TransformPoint(CoordinateTransformation self, double x, double y, double z, double t) 925 """ 926 return _osr.CoordinateTransformation_TransformPoint(self, *args)
927
928 - def TransformPointWithErrorCode(self, *args):
929 r"""TransformPointWithErrorCode(CoordinateTransformation self, double x, double y, double z, double t)""" 930 return _osr.CoordinateTransformation_TransformPointWithErrorCode(self, *args)
931
932 - def TransformPoints(self, *args):
933 r"""TransformPoints(CoordinateTransformation self, int nCount)""" 934 return _osr.CoordinateTransformation_TransformPoints(self, *args)
935 936 # Register CoordinateTransformation in _osr: 937 _osr.CoordinateTransformation_swigregister(CoordinateTransformation) 938 939
940 -def CreateCoordinateTransformation(*args):
941 r"""CreateCoordinateTransformation(SpatialReference src, SpatialReference dst, CoordinateTransformationOptions options=None) -> CoordinateTransformation""" 942 return _osr.CreateCoordinateTransformation(*args)
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
957 -class CRSInfo(object):
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
975 - def __init__(self, *args):
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 # Register CRSInfo in _osr: 981 _osr.CRSInfo_swigregister(CRSInfo) 982 983
984 -def OSRCRSInfo_auth_name_get(*args):
985 r"""OSRCRSInfo_auth_name_get(CRSInfo crsInfo) -> char const *""" 986 return _osr.OSRCRSInfo_auth_name_get(*args)
987
988 -def OSRCRSInfo_code_get(*args):
989 r"""OSRCRSInfo_code_get(CRSInfo crsInfo) -> char const *""" 990 return _osr.OSRCRSInfo_code_get(*args)
991
992 -def OSRCRSInfo_name_get(*args):
993 r"""OSRCRSInfo_name_get(CRSInfo crsInfo) -> char const *""" 994 return _osr.OSRCRSInfo_name_get(*args)
995
996 -def OSRCRSInfo_type_get(*args):
997 r"""OSRCRSInfo_type_get(CRSInfo crsInfo) -> OSRCRSType""" 998 return _osr.OSRCRSInfo_type_get(*args)
999
1000 -def OSRCRSInfo_deprecated_get(*args):
1001 r"""OSRCRSInfo_deprecated_get(CRSInfo crsInfo) -> bool""" 1002 return _osr.OSRCRSInfo_deprecated_get(*args)
1003
1004 -def OSRCRSInfo_bbox_valid_get(*args):
1005 r"""OSRCRSInfo_bbox_valid_get(CRSInfo crsInfo) -> bool""" 1006 return _osr.OSRCRSInfo_bbox_valid_get(*args)
1007
1008 -def OSRCRSInfo_west_lon_degree_get(*args):
1009 r"""OSRCRSInfo_west_lon_degree_get(CRSInfo crsInfo) -> double""" 1010 return _osr.OSRCRSInfo_west_lon_degree_get(*args)
1011
1012 -def OSRCRSInfo_south_lat_degree_get(*args):
1013 r"""OSRCRSInfo_south_lat_degree_get(CRSInfo crsInfo) -> double""" 1014 return _osr.OSRCRSInfo_south_lat_degree_get(*args)
1015
1016 -def OSRCRSInfo_east_lon_degree_get(*args):
1017 r"""OSRCRSInfo_east_lon_degree_get(CRSInfo crsInfo) -> double""" 1018 return _osr.OSRCRSInfo_east_lon_degree_get(*args)
1019
1020 -def OSRCRSInfo_north_lat_degree_get(*args):
1021 r"""OSRCRSInfo_north_lat_degree_get(CRSInfo crsInfo) -> double""" 1022 return _osr.OSRCRSInfo_north_lat_degree_get(*args)
1023
1024 -def OSRCRSInfo_area_name_get(*args):
1025 r"""OSRCRSInfo_area_name_get(CRSInfo crsInfo) -> char const *""" 1026 return _osr.OSRCRSInfo_area_name_get(*args)
1027
1028 -def OSRCRSInfo_projection_method_get(*args):
1029 r"""OSRCRSInfo_projection_method_get(CRSInfo crsInfo) -> char const *""" 1030 return _osr.OSRCRSInfo_projection_method_get(*args)
1031
1032 -def GetCRSInfoListFromDatabase(*args):
1033 r"""GetCRSInfoListFromDatabase(char const * authName)""" 1034 return _osr.GetCRSInfoListFromDatabase(*args)
1035
1036 -def SetPROJSearchPath(*args):
1037 r"""SetPROJSearchPath(char const * utf8_path)""" 1038 return _osr.SetPROJSearchPath(*args)
1039
1040 -def SetPROJSearchPaths(*args):
1041 r"""SetPROJSearchPaths(char ** paths)""" 1042 return _osr.SetPROJSearchPaths(*args)
1043
1044 -def GetPROJSearchPaths(*args):
1045 r"""GetPROJSearchPaths() -> char **""" 1046 return _osr.GetPROJSearchPaths(*args)
1047
1048 -def GetPROJVersionMajor(*args):
1049 r"""GetPROJVersionMajor() -> int""" 1050 return _osr.GetPROJVersionMajor(*args)
1051
1052 -def GetPROJVersionMinor(*args):
1053 r"""GetPROJVersionMinor() -> int""" 1054 return _osr.GetPROJVersionMinor(*args)
1055
1056 -def GetPROJVersionMicro(*args):
1057 r"""GetPROJVersionMicro() -> int""" 1058 return _osr.GetPROJVersionMicro(*args)
1059
1060 -def SetPROJAuxDbPath(*args):
1061 r"""SetPROJAuxDbPath(char const * utf8_path)""" 1062 return _osr.SetPROJAuxDbPath(*args)
1063
1064 -def SetPROJAuxDbPaths(*args):
1065 r"""SetPROJAuxDbPaths(char ** paths)""" 1066 return _osr.SetPROJAuxDbPaths(*args)
1067
1068 -def GetPROJAuxDbPaths(*args):
1069 r"""GetPROJAuxDbPaths() -> char **""" 1070 return _osr.GetPROJAuxDbPaths(*args)
1071