ext/gdal-ruby/osr/osr.cpp in gdal-0.0.7 vs ext/gdal-ruby/osr/osr.cpp in gdal-1.0.0

- old
+ new

@@ -1,13 +1,13 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 - * - * This file is not intended to be easily readable and contains a number of + * Version 3.0.5 + * + * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. * ----------------------------------------------------------------------------- */ #define SWIGRUBY @@ -63,32 +63,32 @@ /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else -# define SWIGUNUSED +# define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif +# endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN @@ -127,11 +127,11 @@ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL -# endif +# endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE @@ -172,32 +172,32 @@ /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) +# define SWIGUNUSED __attribute__ ((__unused__)) # else -# define SWIGUNUSED +# define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif +# endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN @@ -236,11 +236,11 @@ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL -# endif +# endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE @@ -274,11 +274,11 @@ /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. - + But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME @@ -300,20 +300,20 @@ /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 -/* +/* Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer + + The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). - + Use the following macros/flags to set or process the returning states. - + In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { @@ -342,27 +342,27 @@ ... } } else { // fail code } - + I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as - int SWIG_ConvertPtr(obj, ptr,...) { - if (<obj is ok>) { - if (<need new object>) { - *ptr = <ptr to new allocated object>; - return SWIG_NEWOBJ; - } else { - *ptr = <ptr to old object>; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } + int SWIG_ConvertPtr(obj, ptr,...) { + if (<obj is ok>) { + if (<need new object>) { + *ptr = <ptr to new allocated object>; + return SWIG_NEWOBJ; + } else { + *ptr = <ptr to old object>; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. @@ -372,21 +372,21 @@ int food(double) int fooi(int); and you call - + food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ -#define SWIG_OK (0) +#define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) @@ -413,18 +413,18 @@ # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { +SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ -# define SWIG_AddCast +# define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include <string.h> @@ -464,11 +464,11 @@ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; -/* +/* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class<int>" == "Class<int >", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. @@ -484,47 +484,36 @@ return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like <name1>|<name2>|... - Return 0 if not equal, 1 if equal + Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - int equiv = 0; +SWIG_TypeCmp(const char *nb, const char *tb) { + int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; - while (!equiv && *ne) { + while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like <name1>|<name2>|... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb + Return 0 if not equal, 1 if equal */ SWIGRUNTIME int -SWIG_TypeCompare(const char *nb, const char *tb) { - int equiv = 0; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (!equiv && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; - if (*ne) ++ne; - } - return equiv; +SWIG_TypeEquiv(const char *nb, const char *tb) { + return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } - /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { @@ -548,11 +537,11 @@ } } return 0; } -/* +/* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { @@ -583,11 +572,11 @@ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } -/* +/* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; @@ -627,59 +616,59 @@ } else return type->name; } -/* +/* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; - + while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } - } + } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } - + /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { + int compare = strcmp(name, iname); + if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { @@ -700,86 +689,86 @@ /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. + + We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } - + /* neither found a match */ return 0; } -/* +/* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } -/* +/* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); - else + else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); - else + else return (char *) 0; *u = uu; } return c; } -/* +/* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; @@ -835,22 +824,22 @@ #ifdef __cplusplus } #endif /* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 +#define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #include <ruby.h> @@ -1396,11 +1385,11 @@ #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) /* Runtime API */ -#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule() +#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) /* Error manipulation */ @@ -1512,18 +1501,17 @@ /* Define Ruby class for C type */ SWIGRUNTIME void SWIG_Ruby_define_class(swig_type_info *type) { - VALUE klass; char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); sprintf(klass_name, "TYPE%s", type->name); if (NIL_P(_cSWIG_Pointer)) { _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); } - klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); + rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); free((void *) klass_name); } /* Create a new pointer object */ SWIGRUNTIME VALUE @@ -1550,11 +1538,11 @@ /* Check the object's type and make sure it has the correct type. It might not in cases where methods do things like downcast methods. */ if (obj != Qnil) { VALUE value = rb_iv_get(obj, "@__swigtype__"); - char* type_name = RSTRING_PTR(value); + const char* type_name = RSTRING_PTR(value); if (strcmp(type->name, type_name) == 0) { return obj; } } @@ -1732,11 +1720,11 @@ type_error: return SWIG_ERROR; } SWIGRUNTIME swig_module_info * -SWIG_Ruby_GetModule(void) +SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata)) { VALUE pointer; swig_module_info *ret = 0; VALUE verbose = rb_gv_get("VERBOSE"); @@ -1772,11 +1760,11 @@ } */ SWIGINTERN int SWIG_Ruby_isCallable( VALUE proc ) { - if ( rb_respond_to( proc, swig_call_id ) == Qtrue ) + if ( rb_respond_to( proc, swig_call_id ) ) return 1; return 0; } /* This function can be used to check the arity (number of arguments) @@ -1785,11 +1773,11 @@ which indicate a variable number of parameters at the end. */ SWIGINTERN int SWIG_Ruby_arity( VALUE proc, int minimal ) { - if ( rb_respond_to( proc, swig_arity_id ) == Qtrue ) + if ( rb_respond_to( proc, swig_arity_id ) ) { VALUE num = rb_funcall( proc, swig_arity_id, 0 ); int arity = NUM2INT(num); if ( arity < 0 && (arity+1) < -minimal ) return 1; if ( arity == minimal ) return 1; @@ -1838,11 +1826,11 @@ #define SWIG_RUBY_THREAD_BEGIN_BLOCK #define SWIG_RUBY_THREAD_END_BLOCK -#define SWIGVERSION 0x020004 +#define SWIGVERSION 0x030005 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) @@ -1914,11 +1902,11 @@ #ifdef __cplusplus extern "C" { #endif -// Ruby 1.9 changed the file name of this header +/* Ruby 1.9 changed the file name of this header */ #ifdef HAVE_RUBY_IO_H #include "ruby/io.h" #else #include "rubyio.h" #endif @@ -1981,15 +1969,11 @@ SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { - #if defined(StringValuePtr) char *cstr = StringValuePtr(obj); - #else - char *cstr = STR2CSTR(obj); - #endif size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); @@ -2096,11 +2080,11 @@ { return Qnil; } -/*@SWIG:/usr/local/Cellar/swig/2.0.4/share/swig/2.0.4/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/local/Cellar/swig/3.0.5/share/swig/3.0.5/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); long *res = (long *)(args[1]); @@ -2150,17 +2134,17 @@ } SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAttrValue(OSRSpatialReferenceShadow *self,char const *name,char const *value){ return OSRSetAttrValue( self, name, value ); } -/*@SWIG:/usr/local/Cellar/swig/2.0.4/share/swig/2.0.4/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ +/*@SWIG:/usr/local/Cellar/swig/3.0.5/share/swig/3.0.5/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) { VALUE obj = args[0]; VALUE type = TYPE(obj); double *res = (double *)(args[1]); - *res = NUM2DBL(obj); + *res = NUM2DBL(obj); (void)type; return obj; } /*@SWIG@*/ SWIGINTERN int @@ -2486,10 +2470,13 @@ return OSRImportFromERM( self, proj, datum, units ); } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromMICoordSys(OSRSpatialReferenceShadow *self,char const *pszCoordSys){ return OSRImportFromMICoordSys( self, pszCoordSys ); } +SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromOzi(OSRSpatialReferenceShadow *self,char const *datum,char const *proj,char const *projParms){ + return OSRImportFromOzi( self, datum, proj, projParms ); + } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToWkt(OSRSpatialReferenceShadow *self,char **argout){ return OSRExportToWkt( self, argout ); } SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPrettyWkt(OSRSpatialReferenceShadow *self,char **argout,int simplify=0){ return OSRExportToPrettyWkt( self, argout, simplify ); @@ -2553,10 +2540,16 @@ SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoints(OSRCoordinateTransformationShadow *self,int nCount,double *x,double *y,double *z){ if (self == NULL) return; OCTTransform( self, nCount, x, y, z ); } + + OSRCoordinateTransformationShadow *CreateCoordinateTransformation( OSRSpatialReferenceShadow *src, OSRSpatialReferenceShadow *dst ) { + OSRCoordinateTransformationShadow *obj = (OSRCoordinateTransformationShadow*) OCTNewCoordinateTransformation( src, dst ); + return obj; +} + SWIGINTERN VALUE _wrap_get_well_known_geog_csas_wkt(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; char **arg2 = (char **) 0 ; int res1 ; @@ -2807,11 +2800,11 @@ if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return Qnil; } -swig_class SwigClassSpatialReference; +static swig_class SwigClassSpatialReference; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_SpatialReference_allocate(VALUE self) { #else @@ -2832,11 +2825,11 @@ _wrap_new_SpatialReference(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) "" ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "wkt", NULL }; OSRSpatialReferenceShadow *result = 0 ; if ((argc < 0) || (argc > 1)) { @@ -4272,11 +4265,11 @@ int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","stdp1","stdp2","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4351,11 +4344,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4420,11 +4413,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","stdp","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4489,11 +4482,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","stdp1","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4558,11 +4551,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4633,11 +4626,11 @@ int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","stdp1","stdp2","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4709,11 +4702,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4770,11 +4763,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4834,11 +4827,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4906,11 +4899,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","pseudostdparallellat","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -4983,11 +4976,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","sc","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5054,11 +5047,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5115,11 +5108,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5213,11 +5206,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","cm","satelliteheight","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5282,11 +5275,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5360,11 +5353,11 @@ int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; double val8 ; int ecode8 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","azimuth","recttoskew","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5456,11 +5449,11 @@ int ecode7 = 0 ; double val8 ; int ecode8 = 0 ; double val9 ; int ecode9 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","dfLat1","dfLong1","dfLat2","dfLong2","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5554,11 +5547,11 @@ int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; double val8 ; int ecode8 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","azimuth","pseudostdparallellat","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5638,11 +5631,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5713,11 +5706,11 @@ int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","stdp1","stdp2","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5795,11 +5788,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5875,11 +5868,11 @@ int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","stdp1","stdp2","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -5954,11 +5947,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6026,11 +6019,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6097,11 +6090,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6161,11 +6154,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6233,11 +6226,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","dfOriginLat","dfCMeridian","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6307,11 +6300,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6376,11 +6369,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6448,11 +6441,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6519,11 +6512,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6580,11 +6573,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6647,11 +6640,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6721,11 +6714,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","latitudeoforigin","cm","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6793,11 +6786,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6874,11 +6867,11 @@ int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; double val7 ; int ecode7 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","pszVariantName","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -6955,11 +6948,11 @@ int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -7027,11 +7020,11 @@ int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; double val6 ; int ecode6 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clat","clong","scale","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -7098,11 +7091,11 @@ int ecode2 = 0 ; double val3 ; int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; - char *kwnames[] = { + const char *kwnames[] = { "self","clong","fe","fn", NULL }; OGRErr result; VALUE vresult = Qnil; @@ -8488,10 +8481,92 @@ return Qnil; } SWIGINTERN VALUE +_wrap_SpatialReference_import_from_ozi(int argc, VALUE *argv, VALUE self) { + OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + OGRErr result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","ImportFromOzi", 1, self )); + } + arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ImportFromOzi", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ImportFromOzi", 3, argv[1] )); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ImportFromOzi", 4, argv[2] )); + } + arg4 = reinterpret_cast< char * >(buf4); + { + if (!arg2) { + SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); + } + } + { + if (!arg3) { + SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); + } + } + { + if (!arg4) { + SWIG_exception(SWIG_ValueError,"Received a NULL pointer."); + } + } + result = (OGRErr)OSRSpatialReferenceShadow_ImportFromOzi(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + { + /* %typemap(out) OGRErr */ + if (result != 0) { + rb_raise(rb_eRuntimeError, OGRErrMessages(result)); + } + } + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + { + /* %typemap(ret) OGRErr */ + if (vresult == Qnil) { + vresult = INT2NUM(0); + } + } return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return Qnil; +} + + +SWIGINTERN VALUE _wrap_SpatialReference_export_to_wkt(int argc, VALUE *argv, VALUE self) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; void *argp1 = 0 ; int res1 = 0 ; @@ -9298,11 +9373,11 @@ fail: return Qnil; } -swig_class SwigClassCoordinateTransformation; +static swig_class SwigClassCoordinateTransformation; #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_CoordinateTransformation_allocate(VALUE self) { #else @@ -9601,11 +9676,43 @@ fail: return Qnil; } +SWIGINTERN VALUE +_wrap_create_coordinate_transformation(int argc, VALUE *argv, VALUE self) { + OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; + OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + OSRCoordinateTransformationShadow *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CreateCoordinateTransformation", 1, argv[0] )); + } + arg1 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp1); + res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_OSRSpatialReferenceShadow, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OSRSpatialReferenceShadow *","CreateCoordinateTransformation", 2, argv[1] )); + } + arg2 = reinterpret_cast< OSRSpatialReferenceShadow * >(argp2); + result = (OSRCoordinateTransformationShadow *)CreateCoordinateTransformation(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OSRCoordinateTransformationShadow, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_OSRCoordinateTransformationShadow = {"_p_OSRCoordinateTransformationShadow", "OSRCoordinateTransformationShadow *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_OSRSpatialReferenceShadow = {"_p_OSRSpatialReferenceShadow", "OSRSpatialReferenceShadow *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *|retStringAndCPLFree *", 0, 0, (void*)0, 0}; @@ -9649,42 +9756,42 @@ /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* ----------------------------------------------------------------------------- * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it + * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * - * First off, we lookup the cast->type name to see if it is already loaded. + * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the + * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. @@ -9704,14 +9811,12 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int init; - clientdata = clientdata; - /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; @@ -9725,31 +9830,27 @@ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } - /* When multiple interpeters are used, a module could have already been initialized in + /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; @@ -9759,11 +9860,11 @@ #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; - + #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ @@ -9786,11 +9887,11 @@ } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { - + /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif @@ -9923,10 +10024,11 @@ rb_define_const(mOsr, "SRS_PT_GAUSSSCHREIBERTMERCATOR", SWIG_FromCharPtr("Gauss_Schreiber_Transverse_Mercator")); rb_define_const(mOsr, "SRS_PT_GEOSTATIONARY_SATELLITE", SWIG_FromCharPtr("Geostationary_Satellite")); rb_define_const(mOsr, "SRS_PT_GOODE_HOMOLOSINE", SWIG_FromCharPtr("Goode_Homolosine")); rb_define_const(mOsr, "SRS_PT_IGH", SWIG_FromCharPtr("Interrupted_Goode_Homolosine")); rb_define_const(mOsr, "SRS_PT_GNOMONIC", SWIG_FromCharPtr("Gnomonic")); + rb_define_const(mOsr, "SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER", SWIG_FromCharPtr("Hotine_Oblique_Mercator_Azimuth_Center")); rb_define_const(mOsr, "SRS_PT_HOTINE_OBLIQUE_MERCATOR", SWIG_FromCharPtr("Hotine_Oblique_Mercator")); rb_define_const(mOsr, "SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN", SWIG_FromCharPtr("Hotine_Oblique_Mercator_Two_Point_Natural_Origin")); rb_define_const(mOsr, "SRS_PT_LABORDE_OBLIQUE_MERCATOR", SWIG_FromCharPtr("Laborde_Oblique_Mercator")); rb_define_const(mOsr, "SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP", SWIG_FromCharPtr("Lambert_Conformal_Conic_1SP")); rb_define_const(mOsr, "SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP", SWIG_FromCharPtr("Lambert_Conformal_Conic_2SP")); @@ -10123,10 +10225,11 @@ rb_define_method(SwigClassSpatialReference.klass, "import_from_pci", VALUEFUNC(_wrap_SpatialReference_import_from_pci), -1); rb_define_method(SwigClassSpatialReference.klass, "import_from_usgs", VALUEFUNC(_wrap_SpatialReference_import_from_usgs), -1); rb_define_method(SwigClassSpatialReference.klass, "import_from_xml", VALUEFUNC(_wrap_SpatialReference_import_from_xml), -1); rb_define_method(SwigClassSpatialReference.klass, "import_from_erm", VALUEFUNC(_wrap_SpatialReference_import_from_erm), -1); rb_define_method(SwigClassSpatialReference.klass, "import_from_micoord_sys", VALUEFUNC(_wrap_SpatialReference_import_from_micoord_sys), -1); + rb_define_method(SwigClassSpatialReference.klass, "import_from_ozi", VALUEFUNC(_wrap_SpatialReference_import_from_ozi), -1); rb_define_method(SwigClassSpatialReference.klass, "export_to_wkt", VALUEFUNC(_wrap_SpatialReference_export_to_wkt), -1); rb_define_method(SwigClassSpatialReference.klass, "export_to_pretty_wkt", VALUEFUNC(_wrap_SpatialReference_export_to_pretty_wkt), -1); rb_define_method(SwigClassSpatialReference.klass, "export_to_proj4", VALUEFUNC(_wrap_SpatialReference_export_to_proj4), -1); rb_define_method(SwigClassSpatialReference.klass, "export_to_pci", VALUEFUNC(_wrap_SpatialReference_export_to_pci), -1); rb_define_method(SwigClassSpatialReference.klass, "export_to_usgs", VALUEFUNC(_wrap_SpatialReference_export_to_usgs), -1); @@ -10151,7 +10254,8 @@ rb_define_method(SwigClassCoordinateTransformation.klass, "transform_point", VALUEFUNC(_wrap_CoordinateTransformation_transform_point), -1); rb_define_method(SwigClassCoordinateTransformation.klass, "transform_points", VALUEFUNC(_wrap_CoordinateTransformation_transform_points), -1); SwigClassCoordinateTransformation.mark = 0; SwigClassCoordinateTransformation.destroy = (void (*)(void *)) free_OSRCoordinateTransformationShadow; SwigClassCoordinateTransformation.trackObjects = 0; + rb_define_module_function(mOsr, "create_coordinate_transformation", VALUEFUNC(_wrap_create_coordinate_transformation), -1); }