/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.26 * * 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. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus template class SwigValueWrapper { T *tt; public: SwigValueWrapper() : tt(0) { } SwigValueWrapper(const SwigValueWrapper& rhs) : tt(new T(*rhs.tt)) { } SwigValueWrapper(const T& t) : tt(new T(t)) { } ~SwigValueWrapper() { delete tt; } SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } operator T&() const { return *tt; } T *operator&() { return tt; } private: SwigValueWrapper& operator=(const SwigValueWrapper& rhs); }; #endif /*********************************************************************** * * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ************************************************************************/ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) || defined(__ICC) # define SWIGUNUSED __attribute__ ((unused)) # else # define SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods for Windows DLLs */ #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # define SWIGEXPORT # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /*********************************************************************** * swigrun.swg * * This file contains generic CAPI SWIG runtime support for pointer * type checking. * ************************************************************************/ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "2" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* 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 is strictly necessary, ie, if you have problems with your compiler or so. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store inforomation on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ 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" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (int)(*f1 - *f2); } return (l1 - f1) - (l2 - f2); } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(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; } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ 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; } /* think of this as a c++ template<> or a scheme macro */ #define SWIG_TypeCheck_Template(comparison, ty) \ if (ty) { \ swig_cast_info *iter = ty->cast; \ while (iter) { \ if (comparison) { \ if (iter == ty->cast) return iter; \ /* Move iter to the top of the linked list */ \ iter->prev->next = iter->next; \ if (iter->next) \ iter->next->prev = iter->prev; \ iter->next = ty->cast; \ iter->prev = 0; \ if (ty->cast) ty->cast->prev = iter; \ ty->cast = iter; \ return iter; \ } \ iter = iter->next; \ } \ } \ return 0 /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); } /* Same as previous function, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { SWIG_TypeCheck_Template(iter->type == from, into); } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } 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; } } /* 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. 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, const char *name) { swig_module_info *iter = start; do { if (iter->size) { register size_t l = 0; register size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ register size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { register int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* 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. 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, 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; 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; for (; u != eu; ++u) { register 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; for (; u != eu; ++u) { register char d = *(c++); register unsigned char uu = 0; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); 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 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; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* * php4.swg * * PHP4 runtime library * */ #ifdef __cplusplus extern "C" { #endif #include "zend.h" #include "zend_API.h" #include "php.h" /* These TSRMLS_ stuff should already be defined now, but with older php under redhat are not... */ #ifndef TSRMLS_D #define TSRMLS_D #endif #ifndef TSRMLS_DC #define TSRMLS_DC #endif #ifndef TSRMLS_C #define TSRMLS_C #endif #ifndef TSRMLS_CC #define TSRMLS_CC #endif #ifdef __cplusplus } #endif /* But in fact SWIG_ConvertPtr is the native interface for getting typed pointer values out of zvals. We need the TSRMLS_ macros for when we make PHP type calls later as we handle php resources */ #define SWIG_ConvertPtr(obj,pp,type,flags) SWIG_ZTS_ConvertPtr(obj,pp,type,flags TSRMLS_CC) /* Flags for SWIG_ConvertPtr */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_fail goto fail static char *default_error_msg = "Unknown error occurred"; static int default_error_code = E_ERROR; #define SWIG_PHP_Arg_Error_Msg(argnum,extramsg) "Error in argument " #argnum " "#extramsg #define SWIG_PHP_Error(code,msg) ErrorCode() = code; ErrorMsg() = msg; SWIG_fail; #define SWIG_contract_assert(expr,msg) \ if (!(expr) ) { zend_printf("Contract Assert Failed %s\n",msg ); } else /* Standard SWIG API */ #define SWIG_GetModule(clientdata) SWIG_Php4_GetModule() #define SWIG_SetModule(clientdata, pointer) SWIG_Php4_SetModule(pointer) /* used to wrap returned objects in so we know whether they are newobject and need freeing, or not */ typedef struct _swig_object_wrapper { void * ptr; int newobject; } swig_object_wrapper; /* empty zend destructor for types without one */ static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) {}; #define SWIG_SetPointerZval(a,b,c,d) SWIG_ZTS_SetPointerZval(a,b,c,d, SWIG_module_entry TSRMLS_CC) static void SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject, zend_module_entry* module_entry TSRMLS_DC) { swig_object_wrapper *value=NULL; /* * First test for Null pointers. Return those as PHP native NULL */ if (!ptr ) { ZVAL_NULL(z); return; } if (type->clientdata) { if (! (*(int *)(type->clientdata))) zend_error(E_ERROR, "Type: %s failed to register with zend",type->name); value=(swig_object_wrapper *)emalloc(sizeof(swig_object_wrapper)); value->ptr=ptr; value->newobject=newobject; ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata)); return; } else { /* have to deal with old fashioned string pointer? but this should not get this far */ zend_error(E_ERROR, "Type: %s not registered with zend",type->name); } } /* This is a new pointer conversion routine Taking the native pointer p (which would have been converted from the old string pointer) and it's php type id, and it's type name (which also would have come from the old string pointer) it converts it to ptr calling appropriate casting functions according to ty Sadly PHP has no API to find a type name from a type id, only from an instance of a resource of the type id, so we have to pass type_name as well. The two functions which might call this are: SWIG_ZTS_ConvertResourcePtr which gets the type name from the resource and the registered zend destructors for which we have one per type each with the type name hard wired in. */ static int SWIG_ZTS_ConvertResourceData(void * p, int type, const char *type_name, void **ptr, swig_type_info *ty TSRMLS_DC) { swig_cast_info *tc; if (ty) { if (! type_name) { /* can't convert p to ptr type ty if we don't know what type p is */ return -1; } else { /* convert and cast p from type_name to ptr as ty Need to sort out const-ness, can SWIG_TypeCast really not take a const? */ tc = SWIG_TypeCheck((char *)type_name,ty); if (!tc) return -1; *ptr = SWIG_TypeCast(tc, (void*)p); } } else { /* They don't care about the target type, so just pass on the pointer! */ *ptr = (void *) p; } return 0; } /* This function fills ptr with a pointer of type ty by extracting the pointer and type info from the resource in z. z must be a resource It uses SWIG_ZTS_ConvertResourceData to do the real work. */ static int SWIG_ZTS_ConvertResourcePtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC) { swig_object_wrapper *value; void *p; int type; char *type_name; value = (swig_object_wrapper *) zend_list_find(z->value.lval,&type); if ( flags && SWIG_POINTER_DISOWN ) { value->newobject = 0; } p = value->ptr; if (type==-1) return -1; type_name=zend_rsrc_list_get_rsrc_type(z->value.lval TSRMLS_CC); return SWIG_ZTS_ConvertResourceData(p,type,type_name,ptr,ty TSRMLS_CC); } /* We allow passing of a STRING or RESOURCE pointing to the object or an OBJECT whose _cPtr is a string or resource pointing to the object STRING pointers are very depracated */ static int SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC) { char *c; zval *val; if(z == NULL) { *ptr = 0; return 0; } if (z->type==IS_OBJECT) { zval ** _cPtr; if (zend_hash_find(HASH_OF(z),"_cPtr",sizeof("_cPtr"),(void**)&_cPtr)==SUCCESS) { /* Don't co-erce to string if it isn't */ if ((*_cPtr)->type==IS_STRING) c = Z_STRVAL_PP(_cPtr); else if ((*_cPtr)->type==IS_RESOURCE) { return SWIG_ZTS_ConvertResourcePtr(*_cPtr,ptr,ty, flags TSRMLS_CC); } else goto type_error; /* _cPtr was not string or resource property */ } else goto type_error; /* can't find property _cPtr */ } else if (z->type==IS_RESOURCE) { return SWIG_ZTS_ConvertResourcePtr(z,ptr,ty, flags TSRMLS_CC); } else goto type_error; type_error: return -1; } static char const_name[] = "swig_runtime_data_type_pointer"; static swig_module_info *SWIG_Php4_GetModule() { zval *pointer; swig_module_info *ret = 0; MAKE_STD_ZVAL(pointer); if (zend_get_constant(const_name, sizeof(const_name), pointer)) { if (pointer->type == IS_LONG) { ret = (swig_module_info *) pointer->value.lval; } } return 0; } static void SWIG_Php4_SetModule(swig_module_info *pointer) { REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0); } /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_double swig_types[0] #define SWIGTYPE_p_OSRCoordinateTransformationShadow swig_types[1] #define SWIGTYPE_p_OSRSpatialReferenceShadow swig_types[2] #define SWIGTYPE_p_char swig_types[3] #define SWIGTYPE_p_double swig_types[4] #define SWIGTYPE_p_int swig_types[5] #define SWIGTYPE_p_long swig_types[6] #define SWIGTYPE_p_p_OSRCoordinateTransformationShadow swig_types[7] #define SWIGTYPE_p_p_OSRSpatialReferenceShadow swig_types[8] #define SWIGTYPE_p_p_char swig_types[9] #define SWIGTYPE_p_p_double swig_types[10] #define SWIGTYPE_p_p_p_char swig_types[11] static swig_type_info *swig_types[13]; static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ /* header section */ /* +----------------------------------------------------------------------+ | PHP version 4.0 | +----------------------------------------------------------------------+ | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available at through the world-wide-web at | | http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: | | | +----------------------------------------------------------------------+ */ ZEND_BEGIN_MODULE_GLOBALS(osr) char *error_msg; int error_code; ZEND_END_MODULE_GLOBALS(osr) ZEND_DECLARE_MODULE_GLOBALS(osr) #ifdef ZTS #define ErrorMsg() TSRMG(osr_globals_id, zend_osr_globals *, error_msg ); #define ErrorCode() TSRMG(osr_globals_id, zend_osr_globals *, error_code ); #else #define ErrorMsg() (osr_globals.error_msg) #define ErrorCode() (osr_globals.error_code) #endif static void osr_init_globals(zend_osr_globals *osr_globals ) { osr_globals->error_msg = default_error_msg; osr_globals->error_code = default_error_code; } static void osr_destroy_globals(zend_osr_globals *osr_globals) { } void SWIG_ResetError() { ErrorMsg() = default_error_msg; ErrorCode() = default_error_code; } #define SWIG_name "osr" #ifdef __cplusplus extern "C" { #endif #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" #include "php_osr.h" #ifdef __cplusplus } #endif #include using namespace std; #include "cpl_string.h" #include "cpl_conv.h" #include "ogr_srs_api.h" typedef void OSRSpatialReferenceShadow; typedef void OSRCoordinateTransformationShadow; OGRErr GetWellKnownGeogCSAsWKT( const char *name, char **argout ) { OGRSpatialReferenceH srs = OSRNewSpatialReference(""); OSRSetWellKnownGeogCS( srs, name ); OGRErr rcode = OSRExportToWkt ( srs, argout ); OSRDestroySpatialReference( srs ); return rcode; } void t_output_helper( zval **target, zval *o) { if ( (*target)->type == IS_ARRAY ) { /* it's already an array, just append */ add_next_index_zval( *target, o ); return; } if ( (*target)->type == IS_NULL ) { REPLACE_ZVAL_VALUE(target,o,1); return; } zval *tmp; tmp = *target; zval_copy_ctor(tmp); array_init(*target); add_next_index_zval( *target, tmp); add_next_index_zval( *target, o); } static char * OGRErrMessages( int rc ) { switch( rc ) { case 0: return "OGR Error 0: None"; case 1: return "OGR Error 1: Not enough data"; case 2: return "OGR Error 2: Unsupported geometry type"; case 3: return "OGR Error 3: Unsupported operation"; case 4: return "OGR Error 4: Corrupt data"; case 5: return "OGR Error 5: General Error"; case 6: return "OGR Error 6: Unsupported SRS"; default: return "OGR Error: Unknown"; } } static OSRSpatialReferenceShadow *new_OSRSpatialReferenceShadow(char const *wkt=""){ OSRSpatialReferenceShadow *sr = (OSRSpatialReferenceShadow*) OSRNewSpatialReference(wkt); if (sr) { OSRReference( sr ); } return sr; } static void delete_OSRSpatialReferenceShadow(OSRSpatialReferenceShadow *self){ if (OSRDereference( self ) == 0 ) { OSRDestroySpatialReference( self ); } } static char *OSRSpatialReferenceShadow___str__(OSRSpatialReferenceShadow *self){ char *buf = 0; OSRExportToPrettyWkt( self, &buf, 0 ); return buf; } static int OSRSpatialReferenceShadow_IsSame(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){ return OSRIsSame( self, rhs ); } static int OSRSpatialReferenceShadow_IsSameGeogCS(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){ return OSRIsSameGeogCS( self, rhs ); } static int OSRSpatialReferenceShadow_IsGeographic(OSRSpatialReferenceShadow *self){ return OSRIsGeographic(self); } static int OSRSpatialReferenceShadow_IsProjected(OSRSpatialReferenceShadow *self){ return OSRIsProjected(self); } static char const *OSRSpatialReferenceShadow_GetAttrValue(OSRSpatialReferenceShadow *self,char const *name,int child=0){ return OSRGetAttrValue( self, name, child ); } static OGRErr OSRSpatialReferenceShadow_SetAttrValue(OSRSpatialReferenceShadow *self,char const *name,char const *value){ return OSRSetAttrValue( self, name, value ); } static OGRErr OSRSpatialReferenceShadow_SetAngularUnits(OSRSpatialReferenceShadow *self,char const *name,double to_radians){ return OSRSetAngularUnits( self, name, to_radians ); } static double OSRSpatialReferenceShadow_GetAngularUnits(OSRSpatialReferenceShadow *self){ // Return code ignored. return OSRGetAngularUnits( self, 0 ); } static OGRErr OSRSpatialReferenceShadow_SetLinearUnits(OSRSpatialReferenceShadow *self,char const *name,double to_meters){ return OSRSetAngularUnits( self, name, to_meters ); } static double OSRSpatialReferenceShadow_GetLinearUnits(OSRSpatialReferenceShadow *self){ // Return code ignored. return OSRGetLinearUnits( self, 0 ); } static char const *OSRSpatialReferenceShadow_GetLinearUnitsName(OSRSpatialReferenceShadow *self){ const char *name = 0; if ( OSRIsProjected( self ) ) { name = OSRGetAttrValue( self, "PROJCS|UNIT", 0 ); } else if ( OSRIsLocal( self ) ) { name = OSRGetAttrValue( self, "LOCAL_CS|UNIT", 0 ); } if (name != 0) return name; return "Meter"; } static char const *OSRSpatialReferenceShadow_GetAuthorityCode(OSRSpatialReferenceShadow *self,char const *target_key){ return OSRGetAuthorityCode( self, target_key ); } static char const *OSRSpatialReferenceShadow_GetAuthorityName(OSRSpatialReferenceShadow *self,char const *target_key){ return OSRGetAuthorityName( self, target_key ); } static OGRErr OSRSpatialReferenceShadow_SetUTM(OSRSpatialReferenceShadow *self,int zone,int north=1){ return OSRSetUTM( self, zone, north ); } static OGRErr OSRSpatialReferenceShadow_SetStatePlane(OSRSpatialReferenceShadow *self,int zone,int is_nad83=1,char const *unitsname="",double units=0.0){ return OSRSetStatePlaneWithUnits( self, zone, is_nad83, unitsname, units ); } static OGRErr OSRSpatialReferenceShadow_AutoIdentifyEPSG(OSRSpatialReferenceShadow *self){ return OSRAutoIdentifyEPSG( self ); } static OGRErr OSRSpatialReferenceShadow_SetProjection(OSRSpatialReferenceShadow *self,char const *arg){ return OSRSetProjection( self, arg ); } static OGRErr OSRSpatialReferenceShadow_SetProjParm(OSRSpatialReferenceShadow *self,char const *name,double val){ return OSRSetProjParm( self, name, val ); } static double OSRSpatialReferenceShadow_GetProjParm(OSRSpatialReferenceShadow *self,char const *name,double default_val=0.0){ // Return code ignored. return OSRGetProjParm( self, name, default_val, 0 ); } static OGRErr OSRSpatialReferenceShadow_SetNormProjParm(OSRSpatialReferenceShadow *self,char const *name,double val){ return OSRSetNormProjParm( self, name, val ); } static double OSRSpatialReferenceShadow_GetNormProjParm(OSRSpatialReferenceShadow *self,char const *name,double default_val=0.0){ // Return code ignored. return OSRGetNormProjParm( self, name, default_val, 0 ); } static OGRErr OSRSpatialReferenceShadow_SetACEA(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){ return OSRSetACEA( self, stdp1, stdp2, clat, clong, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetAE(OSRSpatialReferenceShadow *self,double clat,double clon,double fe,double fn){ return OSRSetAE( self, clat, clon, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetCS(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){ return OSRSetCS( self, clat, clong, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetBonne(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){ return OSRSetBonne( self, clat, clong, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetEC(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){ return OSRSetEC( self, stdp1, stdp2, clat, clong, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetEckertIV(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){ return OSRSetEckertIV( self, cm, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetEckertVI(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){ return OSRSetEckertVI( self, cm, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetEquirectangular(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){ return OSRSetEquirectangular( self, clat, clong, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetGS(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){ return OSRSetGS( self, cm, fe, fn ); } static OGRErr OSRSpatialReferenceShadow_SetWellKnownGeogCS(OSRSpatialReferenceShadow *self,char const *name){ return OSRSetWellKnownGeogCS( self, name ); } static OGRErr OSRSpatialReferenceShadow_SetFromUserInput(OSRSpatialReferenceShadow *self,char const *name){ return OSRSetFromUserInput( self, name ); } static OGRErr OSRSpatialReferenceShadow_CopyGeogCSFrom(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){ return OSRCopyGeogCSFrom( self, rhs ); } static OGRErr OSRSpatialReferenceShadow_SetTOWGS84(OSRSpatialReferenceShadow *self,double p1,double p2,double p3,double p4=0.0,double p5=0.0,double p6=0.0,double p7=0.0){ return OSRSetTOWGS84( self, p1, p2, p3, p4, p5, p6, p7 ); } zval * CreateTupleFromDoubleArray( double *first, unsigned int size ) { zval *tmp; MAKE_STD_ZVAL(tmp); array_init(tmp); for( unsigned int i=0; i 20010900 STANDARD_MODULE_HEADER, #endif "osr", osr_functions, PHP_MINIT(osr), PHP_MSHUTDOWN(osr), PHP_RINIT(osr), PHP_RSHUTDOWN(osr), PHP_MINFO(osr), #if ZEND_MODULE_API_NO > 20010900 NO_VERSION_YET, #endif STANDARD_MODULE_PROPERTIES }; zend_module_entry* SWIG_module_entry = &osr_module_entry; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__double = {"_double", "double", 0, 0, 0}; static swig_type_info _swigt__p_OSRCoordinateTransformationShadow = {"_p_OSRCoordinateTransformationShadow", "OSRCoordinateTransformationShadow *", 0, 0, 0}; static swig_type_info _swigt__p_OSRSpatialReferenceShadow = {"_p_OSRSpatialReferenceShadow", "OSRSpatialReferenceShadow *", 0, 0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|OGRErr *", 0, 0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, 0}; static swig_type_info _swigt__p_p_OSRCoordinateTransformationShadow = {"_p_p_OSRCoordinateTransformationShadow", "OSRCoordinateTransformationShadow **", 0, 0, 0}; static swig_type_info _swigt__p_p_OSRSpatialReferenceShadow = {"_p_p_OSRSpatialReferenceShadow", "OSRSpatialReferenceShadow **", 0, 0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, 0}; static swig_type_info _swigt__p_p_double = {"_p_p_double", "double **", 0, 0, 0}; static swig_type_info _swigt__p_p_p_char = {"_p_p_p_char", "char ***", 0, 0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__double, &_swigt__p_OSRCoordinateTransformationShadow, &_swigt__p_OSRSpatialReferenceShadow, &_swigt__p_char, &_swigt__p_double, &_swigt__p_int, &_swigt__p_long, &_swigt__p_p_OSRCoordinateTransformationShadow, &_swigt__p_p_OSRSpatialReferenceShadow, &_swigt__p_p_char, &_swigt__p_p_double, &_swigt__p_p_p_char, }; static swig_cast_info _swigc__double[] = { {&_swigt__double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_OSRCoordinateTransformationShadow[] = { {&_swigt__p_OSRCoordinateTransformationShadow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_OSRSpatialReferenceShadow[] = { {&_swigt__p_OSRSpatialReferenceShadow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_OSRCoordinateTransformationShadow[] = { {&_swigt__p_p_OSRCoordinateTransformationShadow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_OSRSpatialReferenceShadow[] = { {&_swigt__p_p_OSRSpatialReferenceShadow, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_double[] = { {&_swigt__p_p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_p_char[] = { {&_swigt__p_p_p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__double, _swigc__p_OSRCoordinateTransformationShadow, _swigc__p_OSRSpatialReferenceShadow, _swigc__p_char, _swigc__p_double, _swigc__p_int, _swigc__p_long, _swigc__p_p_OSRCoordinateTransformationShadow, _swigc__p_p_OSRSpatialReferenceShadow, _swigc__p_p_char, _swigc__p_p_double, _swigc__p_p_p_char, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ /* end header section */ /* vdecl subsection */ static zend_class_entry ce_swig_SpatialReference; static zend_class_entry* ptr_ce_swig_SpatialReference=NULL; static zend_class_entry ce_swig_CoordinateTransformation; static zend_class_entry* ptr_ce_swig_CoordinateTransformation=NULL; static int le_swig__p_char=0; /* handle for */ static int le_swig__double=0; /* handle for */ static int le_swig__p_p_char=0; /* handle for */ static int le_swig__p_p_p_char=0; /* handle for */ static int le_swig__p_double=0; /* handle for */ static int le_swig__p_p_double=0; /* handle for */ static int le_swig__p_long=0; /* handle for */ static int le_swig__p_OSRCoordinateTransformationShadow=0; /* handle for CoordinateTransformation */ static int le_swig__p_p_OSRCoordinateTransformationShadow=0; /* handle for CoordinateTransformation */ static int le_swig__p_int=0; /* handle for CoordinateTransformation */ static int le_swig__p_OSRSpatialReferenceShadow=0; /* handle for SpatialReference */ static int le_swig__p_p_OSRSpatialReferenceShadow=0; /* handle for SpatialReference */ /* end vdecl subsection */ /* wrapper section */ ZEND_NAMED_FUNCTION(_wrap_GetWellKnownGeogCSAsWKT) { char *arg1 = (char *) 0 ; char **arg2 = (char **) 0 ; OGRErr result; char *argout2 = 0 ; zval **args[1]; { /* %typemap(in,numinputs=0) (char **argout2) */ arg2 = &argout2; } SWIG_ResetError(); if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg1 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (OGRErr)GetWellKnownGeogCSAsWKT((char const *)arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg2 ) { ZVAL_STRING(t,*arg2,strlen(*arg2)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_GetProjectionMethods) { char **result; zval **args[0]; SWIG_ResetError(); if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } result = (char **)OPTGetProjectionMethods(); { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_GetProjectionMethodParameterList) { char *arg1 = (char *) 0 ; char **arg2 = (char **) 0 ; char **result; zval **args[2]; SWIG_ResetError(); if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg1 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_char, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of GetProjectionMethodParameterList. Expected SWIGTYPE_p_p_p_char"); } } result = (char **)OPTGetParameterList(arg1,arg2); { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_GetProjectionMethodParamInfo) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; char **arg3 = (char **) 0 ; char **arg4 = (char **) 0 ; double *arg5 = (double *) 0 ; zval **args[5]; SWIG_ResetError(); if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg1 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[1]); arg2 = (char *) Z_STRVAL_PP(args[1]); /*@@*/; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_char, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of GetProjectionMethodParamInfo. Expected SWIGTYPE_p_p_p_char"); } } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_p_char, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of GetProjectionMethodParamInfo. Expected SWIGTYPE_p_p_p_char"); } } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_double, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of GetProjectionMethodParamInfo. Expected SWIGTYPE_p_p_double"); } } OPTGetParameterInfo(arg1,arg2,arg3,arg4,arg5); return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_new_SpatialReference) { char *arg1 = (char *) "" ; OSRSpatialReferenceShadow *result; zval **args[1]; int arg_count; SWIG_ResetError(); /* NATIVE Constructor */ arg_count = ZEND_NUM_ARGS(); if(arg_count<0 || arg_count>1) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; if(arg_count > 0) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg1 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } } result = (OSRSpatialReferenceShadow *)new_OSRSpatialReferenceShadow((char const *)arg1); { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_OSRSpatialReferenceShadow, 1); } /* Wrap this return value */ if (this_ptr) { /* NATIVE Constructor, use this_ptr */ zval *_cPtr; MAKE_STD_ZVAL(_cPtr); *_cPtr = *return_value; INIT_ZVAL(*return_value); add_property_zval(this_ptr,"_cPtr",_cPtr); } else if (! this_ptr) { /* ALTERNATIVE Constructor, make an object wrapper */ zval *obj, *_cPtr; MAKE_STD_ZVAL(obj); MAKE_STD_ZVAL(_cPtr); *_cPtr = *return_value; INIT_ZVAL(*return_value); object_init_ex(obj,ptr_ce_swig_SpatialReference); add_property_zval(obj,"_cPtr",_cPtr); *return_value=*obj; } return; fail: zend_error(ErrorCode(),ErrorMsg()); } /* This function is designed to be called by the zend list destructors */ /* to typecast and do the actual destruction */ void __wrap_delete_SpatialReference(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) { swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ; void *ptr=value->ptr ; int newobject=value->newobject ; OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; efree(value); if (! newobject) return; /* can't delete it! */ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_OSRSpatialReferenceShadow TSRMLS_CC); if (! arg1) zend_error(E_ERROR, "OSRSpatialReferenceShadow resource already free'd"); delete_OSRSpatialReferenceShadow(arg1); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference___str__) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference___str__. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (char *)OSRSpatialReferenceShadow___str__(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value,result, 1); } } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_IsSame) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ; int result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_IsSame. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[0], (void **) &arg2, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of SpatialReference_IsSame. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (int)OSRSpatialReferenceShadow_IsSame(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_IsSameGeogCS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ; int result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_IsSameGeogCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[0], (void **) &arg2, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of SpatialReference_IsSameGeogCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (int)OSRSpatialReferenceShadow_IsSameGeogCS(arg1,arg2); { ZVAL_LONG(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_IsGeographic) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; int result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_IsGeographic. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (int)OSRSpatialReferenceShadow_IsGeographic(arg1); { ZVAL_LONG(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_IsProjected) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; int result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_IsProjected. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (int)OSRSpatialReferenceShadow_IsProjected(arg1); { ZVAL_LONG(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetAttrValue) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; int arg3 = (int) 0 ; char *result; zval **args[2]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>3) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetAttrValue. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg3 = (int) Z_LVAL_PP(args[1]); /*@@*/; } } result = (char *)OSRSpatialReferenceShadow_GetAttrValue(arg1,(char const *)arg2,arg3); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value,result, 1); } } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetAttrValue) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; OGRErr result; zval **args[2]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetAttrValue. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[1]); arg3 = (char *) Z_STRVAL_PP(args[1]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetAttrValue(arg1,(char const *)arg2,(char const *)arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetAngularUnits) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; double arg3 ; OGRErr result; zval **args[2]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetAngularUnits. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetAngularUnits(arg1,(char const *)arg2,arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetAngularUnits) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetAngularUnits. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (double)OSRSpatialReferenceShadow_GetAngularUnits(arg1); { ZVAL_DOUBLE(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetLinearUnits) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; double arg3 ; OGRErr result; zval **args[2]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetLinearUnits. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetLinearUnits(arg1,(char const *)arg2,arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetLinearUnits) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetLinearUnits. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (double)OSRSpatialReferenceShadow_GetLinearUnits(arg1); { ZVAL_DOUBLE(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetLinearUnitsName) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetLinearUnitsName. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (char *)OSRSpatialReferenceShadow_GetLinearUnitsName(arg1); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value,result, 1); } } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetAuthorityCode) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; char *result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetAuthorityCode. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (char *)OSRSpatialReferenceShadow_GetAuthorityCode(arg1,(char const *)arg2); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value,result, 1); } } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetAuthorityName) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; char *result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetAuthorityName. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (char *)OSRSpatialReferenceShadow_GetAuthorityName(arg1,(char const *)arg2); { if(!result) { ZVAL_NULL(return_value); } else { ZVAL_STRING(return_value,result, 1); } } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetUTM) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; int arg2 ; int arg3 = (int) 1 ; OGRErr result; zval **args[2]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>3) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetUTM. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[0]); arg2 = (int) Z_LVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg3 = (int) Z_LVAL_PP(args[1]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_SetUTM(arg1,arg2,arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetStatePlane) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; int arg2 ; int arg3 = (int) 1 ; char *arg4 = (char *) "" ; double arg5 = (double) 0.0 ; OGRErr result; zval **args[4]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>5) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetStatePlane. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[0]); arg2 = (int) Z_LVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg3 = (int) Z_LVAL_PP(args[1]); /*@@*/; } } if(arg_count > 3) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[2]); arg4 = (char *) Z_STRVAL_PP(args[2]); /*@@*/; } } if(arg_count > 4) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_SetStatePlane(arg1,arg2,arg3,(char const *)arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_AutoIdentifyEPSG) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_AutoIdentifyEPSG. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_AutoIdentifyEPSG(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetProjection) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetProjection. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetProjection(arg1,(char const *)arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetProjParm) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; double arg3 ; OGRErr result; zval **args[2]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetProjParm. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetProjParm(arg1,(char const *)arg2,arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetProjParm) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; double arg3 = (double) 0.0 ; double result; zval **args[2]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>3) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetProjParm. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } } result = (double)OSRSpatialReferenceShadow_GetProjParm(arg1,(char const *)arg2,arg3); { ZVAL_DOUBLE(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetNormProjParm) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; double arg3 ; OGRErr result; zval **args[2]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetNormProjParm. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetNormProjParm(arg1,(char const *)arg2,arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetNormProjParm) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; double arg3 = (double) 0.0 ; double result; zval **args[2]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>3) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetNormProjParm. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } } result = (double)OSRSpatialReferenceShadow_GetNormProjParm(arg1,(char const *)arg2,arg3); { ZVAL_DOUBLE(return_value,result); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetACEA) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double arg7 ; OGRErr result; zval **args[6]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetACEA. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[4]); arg6 = (double) Z_DVAL_PP(args[4]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[5]); arg7 = (double) Z_DVAL_PP(args[5]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetACEA(arg1,arg2,arg3,arg4,arg5,arg6,arg7); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetAE) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; OGRErr result; zval **args[4]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetAE. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetAE(arg1,arg2,arg3,arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetCS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; OGRErr result; zval **args[4]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetCS(arg1,arg2,arg3,arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetBonne) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; OGRErr result; zval **args[4]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetBonne. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetBonne(arg1,arg2,arg3,arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetEC) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; double arg6 ; double arg7 ; OGRErr result; zval **args[6]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetEC. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[4]); arg6 = (double) Z_DVAL_PP(args[4]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[5]); arg7 = (double) Z_DVAL_PP(args[5]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetEC(arg1,arg2,arg3,arg4,arg5,arg6,arg7); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetEckertIV) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; OGRErr result; zval **args[3]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetEckertIV. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetEckertIV(arg1,arg2,arg3,arg4); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetEckertVI) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; OGRErr result; zval **args[3]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetEckertVI. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetEckertVI(arg1,arg2,arg3,arg4); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetEquirectangular) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 ; OGRErr result; zval **args[4]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetEquirectangular. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetEquirectangular(arg1,arg2,arg3,arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetGS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; OGRErr result; zval **args[3]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetGS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetGS(arg1,arg2,arg3,arg4); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetWellKnownGeogCS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetWellKnownGeogCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetWellKnownGeogCS(arg1,(char const *)arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetFromUserInput) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetFromUserInput. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_SetFromUserInput(arg1,(char const *)arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_CopyGeogCSFrom) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_CopyGeogCSFrom. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[0], (void **) &arg2, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of SpatialReference_CopyGeogCSFrom. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_CopyGeogCSFrom(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetTOWGS84) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double arg2 ; double arg3 ; double arg4 ; double arg5 = (double) 0.0 ; double arg6 = (double) 0.0 ; double arg7 = (double) 0.0 ; double arg8 = (double) 0.0 ; OGRErr result; zval **args[7]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<4 || arg_count>8) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetTOWGS84. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg2 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg3 = (double) Z_DVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg4 = (double) Z_DVAL_PP(args[2]); /*@@*/; } if(arg_count > 4) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } } if(arg_count > 5) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[4]); arg6 = (double) Z_DVAL_PP(args[4]); /*@@*/; } } if(arg_count > 6) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[5]); arg7 = (double) Z_DVAL_PP(args[5]); /*@@*/; } } if(arg_count > 7) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[6]); arg8 = (double) Z_DVAL_PP(args[6]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_SetTOWGS84(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_GetTOWGS84) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; double *arg2 ; OGRErr result; double argout2[7] ; zval **args[0]; { /* %typemap(in,numinputs=0) (double argout2[ANY]) */ arg2 = argout2; } SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_GetTOWGS84. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_GetTOWGS84(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (double argout[ANY]) */ zval *t = CreateTupleFromDoubleArray( arg2, 7 ); t_output_helper( &return_value, t ); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetGeogCS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; double arg5 ; double arg6 ; char *arg7 = (char *) "Greenwich" ; double arg8 = (double) 0.0 ; char *arg9 = (char *) "degree" ; double arg10 = (double) 0.0174532925199433 ; OGRErr result; zval **args[9]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<6 || arg_count>10) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetGeogCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[1]); arg3 = (char *) Z_STRVAL_PP(args[1]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[2]); arg4 = (char *) Z_STRVAL_PP(args[2]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[3]); arg5 = (double) Z_DVAL_PP(args[3]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[4]); arg6 = (double) Z_DVAL_PP(args[4]); /*@@*/; } if(arg_count > 6) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[5]); arg7 = (char *) Z_STRVAL_PP(args[5]); /*@@*/; } } if(arg_count > 7) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[6]); arg8 = (double) Z_DVAL_PP(args[6]); /*@@*/; } } if(arg_count > 8) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[7]); arg9 = (char *) Z_STRVAL_PP(args[7]); /*@@*/; } } if(arg_count > 9) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[8]); arg10 = (double) Z_DVAL_PP(args[8]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,arg8,(char const *)arg9,arg10); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_SetProjCS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) "unnamed" ; OGRErr result; zval **args[1]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<1 || arg_count>2) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_SetProjCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } if(arg_count > 1) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_SetProjCS(arg1,(char const *)arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromWkt) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; OGRErr result; char *val2 ; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromWkt. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /* %typemap(in) (char **ignorechange) */ convert_to_string_ex( args[0] ); arg2 = NULL; } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromWkt(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromProj4) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromProj4. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromProj4(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromESRI) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; OGRErr result; char *val2 ; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromESRI. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /* %typemap(in) (char **ignorechange) */ convert_to_string_ex( args[0] ); arg2 = NULL; } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromESRI(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromEPSG) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; int arg2 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromEPSG. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[0]); arg2 = (int) Z_LVAL_PP(args[0]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromEPSG(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromPCI) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) "METRE" ; double *arg4 = (double *) (double *)0 ; OGRErr result; double argin4[17] ; zval **args[3]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>4) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromPCI. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[1]); arg3 = (char *) Z_STRVAL_PP(args[1]); /*@@*/; } } if(arg_count > 3) { { /* %typemap(in) (double argin4[ANY]) */ arg4 = argin4; for (unsigned int i=0; i<17; i++) { double val = 0.0; /* extract val from i-th position of args[2] */ arg4[i] = val; } } } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromPCI(arg1,(char const *)arg2,(char const *)arg3,arg4); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromUSGS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; long arg2 ; long arg3 = (long) 0 ; double *arg4 = (double *) (double *)0 ; long arg5 = (long) 0 ; OGRErr result; double argin4[15] ; zval **args[4]; int arg_count; SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<2 || arg_count>5) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromUSGS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[0]); arg2 = (long) Z_LVAL_PP(args[0]); /*@@*/; } if(arg_count > 2) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[1]); arg3 = (long) Z_LVAL_PP(args[1]); /*@@*/; } } if(arg_count > 3) { { /* %typemap(in) (double argin4[ANY]) */ arg4 = argin4; for (unsigned int i=0; i<15; i++) { double val = 0.0; /* extract val from i-th position of args[2] */ arg4[i] = val; } } } if(arg_count > 4) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[3]); arg5 = (long) Z_LVAL_PP(args[3]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUSGS(arg1,arg2,arg3,arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ImportFromXML) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char *arg2 = (char *) 0 ; OGRErr result; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ImportFromXML. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg2 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } result = (OGRErr)OSRSpatialReferenceShadow_ImportFromXML(arg1,(char const *)arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ExportToWkt) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; OGRErr result; char *argout2 = 0 ; zval **args[0]; { /* %typemap(in,numinputs=0) (char **argout2) */ arg2 = &argout2; } SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ExportToWkt. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_ExportToWkt(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg2 ) { ZVAL_STRING(t,*arg2,strlen(*arg2)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ExportToPrettyWkt) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; int arg3 = (int) 0 ; OGRErr result; char *argout2 = 0 ; zval **args[1]; int arg_count; { /* %typemap(in,numinputs=0) (char **argout2) */ arg2 = &argout2; } SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<1 || arg_count>2) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ExportToPrettyWkt. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } if(arg_count > 1) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,4,CONVERT_INT_IN@*/ convert_to_long_ex(args[0]); arg3 = (int) Z_LVAL_PP(args[0]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_ExportToPrettyWkt(arg1,arg2,arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg2 ) { ZVAL_STRING(t,*arg2,strlen(*arg2)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ExportToProj4) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; OGRErr result; char *argout2 = 0 ; zval **args[0]; { /* %typemap(in,numinputs=0) (char **argout2) */ arg2 = &argout2; } SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ExportToProj4. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_ExportToProj4(arg1,arg2); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg2 ) { ZVAL_STRING(t,*arg2,strlen(*arg2)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ExportToPCI) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; char **arg3 = (char **) 0 ; double **arg4 ; OGRErr result; char *argout2 = 0 ; char *argout3 = 0 ; double *argout4 ; zval **args[0]; { /* %typemap(in,numinputs=0) (char **argout2) */ arg2 = &argout2; } { /* %typemap(in,numinputs=0) (char **argout3) */ arg3 = &argout3; } { /* %typemap(in,numinputs=0) (double *argout4[ANY]) */ arg4 = &argout4; } SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ExportToPCI. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_ExportToPCI(arg1,arg2,arg3,arg4); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg2 ) { ZVAL_STRING(t,*arg2,strlen(*arg2)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg3 ) { ZVAL_STRING(t,*arg3,strlen(*arg3)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(argout) (double *argout[ANY]) */ zval *t = CreateTupleFromDoubleArray( *arg4, 17 ); t_output_helper( &return_value, t); } { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(freearg) (char **argout) */ if ( *arg3 ) CPLFree( *arg3 ); } { /* %typemap(freearg) (double *argout[ANY]) */ CPLFree(*arg4); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(freearg) (char **argout) */ if ( *arg3 ) CPLFree( *arg3 ); } { /* %typemap(freearg) (double *argout[ANY]) */ CPLFree(*arg4); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ExportToUSGS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; long *arg2 = (long *) 0 ; long *arg3 = (long *) 0 ; double **arg4 ; long *arg5 = (long *) 0 ; OGRErr result; long temp2 ; long temp3 ; double *argout4 ; long temp5 ; zval **args[0]; { arg2 = &temp2; } { arg3 = &temp3; } { /* %typemap(in,numinputs=0) (double *argout4[ANY]) */ arg4 = &argout4; } { arg5 = &temp5; } SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ExportToUSGS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_ExportToUSGS(arg1,arg2,arg3,arg4,arg5); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { zval *o; MAKE_STD_ZVAL(o); ZVAL_LONG(o,temp2); t_output_helper( &return_value, o ); } { zval *o; MAKE_STD_ZVAL(o); ZVAL_LONG(o,temp3); t_output_helper( &return_value, o ); } { /* %typemap(argout) (double *argout[ANY]) */ zval *t = CreateTupleFromDoubleArray( *arg4, 15 ); t_output_helper( &return_value, t); } { zval *o; MAKE_STD_ZVAL(o); ZVAL_LONG(o,temp5); t_output_helper( &return_value, o ); } { /* %typemap(freearg) (double *argout[ANY]) */ CPLFree(*arg4); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (double *argout[ANY]) */ CPLFree(*arg4); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_ExportToXML) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; char **arg2 = (char **) 0 ; char *arg3 = (char *) "" ; OGRErr result; char *argout2 = 0 ; zval **args[1]; int arg_count; { /* %typemap(in,numinputs=0) (char **argout2) */ arg2 = &argout2; } SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<1 || arg_count>2) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_ExportToXML. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } if(arg_count > 1) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,23,CONVERT_STRING_IN@*/ convert_to_string_ex(args[0]); arg3 = (char *) Z_STRVAL_PP(args[0]); /*@@*/; } } result = (OGRErr)OSRSpatialReferenceShadow_ExportToXML(arg1,arg2,(char const *)arg3); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(argout) (char **argout) */ zval *t; MAKE_STD_ZVAL(t); if ( arg2 ) { ZVAL_STRING(t,*arg2,strlen(*arg2)); } else { ZVAL_NULL(t); } t_output_helper(&return_value, t); } { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: { /* %typemap(freearg) (char **argout) */ if ( *arg2 ) CPLFree( *arg2 ); } zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_CloneGeogCS) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OSRSpatialReferenceShadow *result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_CloneGeogCS. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_CloneGeogCS(arg1); { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_OSRSpatialReferenceShadow, 1); } /* Wrap this return value */ { /* ALTERNATIVE Constructor, make an object wrapper */ zval *obj, *_cPtr; MAKE_STD_ZVAL(obj); MAKE_STD_ZVAL(_cPtr); *_cPtr = *return_value; INIT_ZVAL(*return_value); object_init_ex(obj,ptr_ce_swig_SpatialReference); add_property_zval(obj,"_cPtr",_cPtr); *return_value=*obj; } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_Validate) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_Validate. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_Validate(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_StripCTParms) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_StripCTParms. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_StripCTParms(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_FixupOrdering) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_FixupOrdering. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_FixupOrdering(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_Fixup) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_Fixup. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_Fixup(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_MorphToESRI) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_MorphToESRI. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_MorphToESRI(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_SpatialReference_MorphFromESRI) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OGRErr result; zval **args[0]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of SpatialReference_MorphFromESRI. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OGRErr)OSRSpatialReferenceShadow_MorphFromESRI(arg1); { /* %typemap(out) OGRErr */ if (result != 0 ) { SWIG_PHP_Error(E_ERROR,OGRErrMessages(result)); } } { /* %typemap(ret) OGRErr */ RETVAL_LONG(0); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } /* property handler for class SpatialReference */ static pval _wrap_propget_SpatialReference(zend_property_reference *property_reference) { pval result; pval **_result; zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; result.type = IS_NULL; if (_propget_SpatialReference(property_reference, &result)==SUCCESS) return result; /* return it ourselves */ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),1+Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) { zval *_value; MAKE_STD_ZVAL(_value); *_value=**_result; INIT_PZVAL(_value); zval_copy_ctor(_value); return *_value; } result.type = IS_NULL; return result; } static int _propget_SpatialReference(zend_property_reference *property_reference, pval *value) { /* get the property name */ zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; char *propname=Z_STRVAL_P(&(property->element)); return FAILURE; } static int _wrap_propset_SpatialReference(zend_property_reference *property_reference, pval *value) { zval * _value; zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; if (_propset_SpatialReference(property_reference, value)==SUCCESS) return SUCCESS; /* set it ourselves as it is SpatialReference */ MAKE_STD_ZVAL(_value); *_value=*value; INIT_PZVAL(_value); zval_copy_ctor(_value); return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),1+Z_STRLEN_P(&(property->element)),_value); } static int _propset_SpatialReference(zend_property_reference *property_reference, pval *value) { /* get the property name */ zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; char *propname=Z_STRVAL_P(&(property->element)); return FAILURE; } ZEND_NAMED_FUNCTION(_wrap_new_CoordinateTransformation) { OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ; OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ; OSRCoordinateTransformationShadow *result; zval **args[2]; SWIG_ResetError(); /* NATIVE Constructor */ if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of new_CoordinateTransformation. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_OSRSpatialReferenceShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of new_CoordinateTransformation. Expected SWIGTYPE_p_p_OSRSpatialReferenceShadow"); } } result = (OSRCoordinateTransformationShadow *)new_OSRCoordinateTransformationShadow(arg1,arg2); { SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_OSRCoordinateTransformationShadow, 1); } /* Wrap this return value */ if (this_ptr) { /* NATIVE Constructor, use this_ptr */ zval *_cPtr; MAKE_STD_ZVAL(_cPtr); *_cPtr = *return_value; INIT_ZVAL(*return_value); add_property_zval(this_ptr,"_cPtr",_cPtr); } else if (! this_ptr) { /* ALTERNATIVE Constructor, make an object wrapper */ zval *obj, *_cPtr; MAKE_STD_ZVAL(obj); MAKE_STD_ZVAL(_cPtr); *_cPtr = *return_value; INIT_ZVAL(*return_value); object_init_ex(obj,ptr_ce_swig_CoordinateTransformation); add_property_zval(obj,"_cPtr",_cPtr); *return_value=*obj; } return; fail: zend_error(ErrorCode(),ErrorMsg()); } /* This function is designed to be called by the zend list destructors */ /* to typecast and do the actual destruction */ void __wrap_delete_CoordinateTransformation(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) { swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ; void *ptr=value->ptr ; int newobject=value->newobject ; OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ; efree(value); if (! newobject) return; /* can't delete it! */ SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_OSRCoordinateTransformationShadow TSRMLS_CC); if (! arg1) zend_error(E_ERROR, "OSRCoordinateTransformationShadow resource already free'd"); delete_OSRCoordinateTransformationShadow(arg1); } ZEND_NAMED_FUNCTION(_wrap_CoordinateTransformation_TransformPoint__SWIG_0) { OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ; double *arg2 ; double argin2[3] ; zval **args[1]; SWIG_ResetError(); /* This function uses a this_ptr*/ if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) { WRONG_PARAM_COUNT; } { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of CoordinateTransformation_TransformPoint. Expected SWIGTYPE_p_p_OSRCoordinateTransformationShadow"); } } { /* %typemap(in) (double argin2[ANY]) */ arg2 = argin2; for (unsigned int i=0; i<3; i++) { double val = 0.0; /* extract val from i-th position of args[0] */ arg2[i] = val; } } OSRCoordinateTransformationShadow_TransformPoint__SWIG_0(arg1,arg2); { /* %typemap(argout) (double argout[ANY]) */ zval *t = CreateTupleFromDoubleArray( arg2, 3 ); t_output_helper( &return_value, t ); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_CoordinateTransformation_TransformPoint__SWIG_1) { OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ; double *arg2 ; double arg3 ; double arg4 ; double arg5 = (double) 0.0 ; double argout2[3] ; zval **args[3]; int arg_count; { /* %typemap(in,numinputs=0) (double argout2[ANY]) */ arg2 = argout2; } SWIG_ResetError(); /* This function uses a this_ptr*/ arg_count = ZEND_NUM_ARGS(); if(arg_count<3 || arg_count>4) WRONG_PARAM_COUNT; if(zend_get_parameters_array_ex(arg_count,args)!=SUCCESS) WRONG_PARAM_COUNT; { /* typemap(in) SWIGTYPE * */ if(SWIG_ConvertPtr(*&this_ptr, (void **) &arg1, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0) < 0) { SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of CoordinateTransformation_TransformPoint. Expected SWIGTYPE_p_p_OSRCoordinateTransformationShadow"); } } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[0]); arg3 = (double) Z_DVAL_PP(args[0]); /*@@*/; } { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[1]); arg4 = (double) Z_DVAL_PP(args[1]); /*@@*/; } if(arg_count > 3) { { /*@/home/kruland/opt/share/swig/1.3.26/php4/utils.i,13,CONVERT_FLOAT_IN@*/ convert_to_double_ex(args[2]); arg5 = (double) Z_DVAL_PP(args[2]); /*@@*/; } } OSRCoordinateTransformationShadow_TransformPoint__SWIG_1(arg1,arg2,arg3,arg4,arg5); { /* %typemap(argout) (double argout[ANY]) */ zval *t = CreateTupleFromDoubleArray( arg2, 3 ); t_output_helper( &return_value, t ); } return; fail: zend_error(ErrorCode(),ErrorMsg()); } ZEND_NAMED_FUNCTION(_wrap_CoordinateTransformation_TransformPoint) { int argc; zval **argv[4]; int ii; argc = ZEND_NUM_ARGS(); zend_get_parameters_array_ex(argc,argv); if (argc == 2) { int _v; { /* typecheck SWIGTYPE * */ void *tmp; _v = (SWIG_ConvertPtr( *argv[0], (void**)&tmp, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0) < 0)? 0:1; } if (_v) { { /* typecheck SWIGTYPE * */ void *tmp; _v = (SWIG_ConvertPtr( *argv[1], (void**)&tmp, SWIGTYPE_p_double, 0) < 0)? 0:1; } if (_v) { return _wrap_CoordinateTransformation_TransformPoint__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); } } } if ((argc >= 3) && (argc <= 4)) { int _v; { /* typecheck SWIGTYPE * */ void *tmp; _v = (SWIG_ConvertPtr( *argv[0], (void**)&tmp, SWIGTYPE_p_OSRCoordinateTransformationShadow, 0) < 0)? 0:1; } if (_v) { _v = (Z_TYPE_PP(argv[1]) == IS_LONG || Z_TYPE_PP(argv[1]) == IS_DOUBLE || Z_TYPE_PP(argv[1]) == IS_STRING) ? 1 : 0; if (_v) { _v = (Z_TYPE_PP(argv[2]) == IS_LONG || Z_TYPE_PP(argv[2]) == IS_DOUBLE || Z_TYPE_PP(argv[2]) == IS_STRING) ? 1 : 0; if (_v) { if (argc <= 3) { return _wrap_CoordinateTransformation_TransformPoint__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); } _v = (Z_TYPE_PP(argv[3]) == IS_LONG || Z_TYPE_PP(argv[3]) == IS_DOUBLE || Z_TYPE_PP(argv[3]) == IS_STRING) ? 1 : 0; if (_v) { return _wrap_CoordinateTransformation_TransformPoint__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); } } } } } /*No matching function for overloaded 'CoordinateTransformation_TransformPoint'*/ } /* property handler for class CoordinateTransformation */ static pval _wrap_propget_CoordinateTransformation(zend_property_reference *property_reference) { pval result; pval **_result; zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; result.type = IS_NULL; if (_propget_CoordinateTransformation(property_reference, &result)==SUCCESS) return result; /* return it ourselves */ if (zend_hash_find(Z_OBJPROP_P(property_reference->object),Z_STRVAL_P(&(property->element)),1+Z_STRLEN_P(&(property->element)),(void**)&_result)==SUCCESS) { zval *_value; MAKE_STD_ZVAL(_value); *_value=**_result; INIT_PZVAL(_value); zval_copy_ctor(_value); return *_value; } result.type = IS_NULL; return result; } static int _propget_CoordinateTransformation(zend_property_reference *property_reference, pval *value) { /* get the property name */ zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; char *propname=Z_STRVAL_P(&(property->element)); return FAILURE; } static int _wrap_propset_CoordinateTransformation(zend_property_reference *property_reference, pval *value) { zval * _value; zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; if (_propset_CoordinateTransformation(property_reference, value)==SUCCESS) return SUCCESS; /* set it ourselves as it is CoordinateTransformation */ MAKE_STD_ZVAL(_value); *_value=*value; INIT_PZVAL(_value); zval_copy_ctor(_value); return add_property_zval_ex(property_reference->object,Z_STRVAL_P(&(property->element)),1+Z_STRLEN_P(&(property->element)),_value); } static int _propset_CoordinateTransformation(zend_property_reference *property_reference, pval *value) { /* get the property name */ zend_llist_element *element = property_reference->elements_list->head; zend_overloaded_element *property=(zend_overloaded_element *)element->data; char *propname=Z_STRVAL_P(&(property->element)); return FAILURE; } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_char) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_double) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_char) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_p_char) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_double) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_double) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_long) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_OSRCoordinateTransformationShadow) { /* has destructor: __wrap_delete_CoordinateTransformation */ __wrap_delete_CoordinateTransformation(rsrc, SWIGTYPE_p_OSRCoordinateTransformationShadow->name TSRMLS_CC); } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_OSRCoordinateTransformationShadow) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_int) { /* bah! No destructor for this simple type!! */ } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_OSRSpatialReferenceShadow) { /* has destructor: __wrap_delete_SpatialReference */ __wrap_delete_SpatialReference(rsrc, SWIGTYPE_p_OSRSpatialReferenceShadow->name TSRMLS_CC); } /* NEW Destructor style */ static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_OSRSpatialReferenceShadow) { /* bah! No destructor for this simple type!! */ } /* end wrapper section */ /* init section */ #ifdef __cplusplus extern "C" { #endif ZEND_GET_MODULE(osr) #ifdef __cplusplus } #endif #define SWIG_php_minit PHP_MINIT_FUNCTION(osr) /************************************************************************* * Type initialization: * 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 * 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 * array. We just loop though 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 * 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. * 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 * 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. **/ #ifdef __cplusplus extern "C" { #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { swig_type_info *type, *ret; swig_cast_info *cast; size_t i; swig_module_info *module_head; static int init_run = 0; clientdata = clientdata; if (init_run) return; init_run = 1; /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (module_head) { swig_module.next = module_head->next; module_head->next = &swig_module; } else { /* This is the first module loaded */ swig_module.next = &swig_module; SWIG_SetModule(clientdata, &swig_module); } /* Now work on filling in swig_module.types */ for (i = 0; i < swig_module.size; ++i) { type = 0; /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ if (swig_module.type_initial[i]->clientdata) type->clientdata = swig_module.type_initial[i]->clientdata; } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); } if (ret && type == swig_module.type_initial[i]) { cast->type = ret; ret = 0; } if (!ret) { if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus } #endif SWIG_php_minit { SWIG_InitializeModule(0); /* oinit subsection */ ZEND_INIT_MODULE_GLOBALS(osr, osr_init_globals, osr_destroy_globals); /* Define class SpatialReference */ INIT_OVERLOADED_CLASS_ENTRY(ce_swig_SpatialReference,"spatialreference",SpatialReference_functions,NULL,_wrap_propget_SpatialReference,_wrap_propset_SpatialReference); if (! (ptr_ce_swig_SpatialReference=zend_register_internal_class_ex(&ce_swig_SpatialReference,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class SpatialReference"); /* Define class CoordinateTransformation */ INIT_OVERLOADED_CLASS_ENTRY(ce_swig_CoordinateTransformation,"coordinatetransformation",CoordinateTransformation_functions,NULL,_wrap_propget_CoordinateTransformation,_wrap_propset_CoordinateTransformation); if (! (ptr_ce_swig_CoordinateTransformation=zend_register_internal_class_ex(&ce_swig_CoordinateTransformation,NULL,NULL))) zend_error(E_ERROR,"Error registering wrapper for class CoordinateTransformation"); /* Register resource destructors for pointer types */ le_swig__p_char=zend_register_list_destructors_ex(_wrap_destroy_p_char,NULL,(char *)(SWIGTYPE_p_char->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_char,&le_swig__p_char); le_swig__double=zend_register_list_destructors_ex(_wrap_destroy_double,NULL,(char *)(SWIGTYPE_double->name),module_number); SWIG_TypeClientData(SWIGTYPE_double,&le_swig__double); le_swig__p_p_char=zend_register_list_destructors_ex(_wrap_destroy_p_p_char,NULL,(char *)(SWIGTYPE_p_p_char->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_char,&le_swig__p_p_char); le_swig__p_p_p_char=zend_register_list_destructors_ex(_wrap_destroy_p_p_p_char,NULL,(char *)(SWIGTYPE_p_p_p_char->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_p_char,&le_swig__p_p_p_char); le_swig__p_double=zend_register_list_destructors_ex(_wrap_destroy_p_double,NULL,(char *)(SWIGTYPE_p_double->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_double,&le_swig__p_double); le_swig__p_p_double=zend_register_list_destructors_ex(_wrap_destroy_p_p_double,NULL,(char *)(SWIGTYPE_p_p_double->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_double,&le_swig__p_p_double); le_swig__p_long=zend_register_list_destructors_ex(_wrap_destroy_p_long,NULL,(char *)(SWIGTYPE_p_long->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_long,&le_swig__p_long); le_swig__p_OSRCoordinateTransformationShadow=zend_register_list_destructors_ex(_wrap_destroy_p_OSRCoordinateTransformationShadow,NULL,(char *)(SWIGTYPE_p_OSRCoordinateTransformationShadow->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_OSRCoordinateTransformationShadow,&le_swig__p_OSRCoordinateTransformationShadow); le_swig__p_p_OSRCoordinateTransformationShadow=zend_register_list_destructors_ex(_wrap_destroy_p_p_OSRCoordinateTransformationShadow,NULL,(char *)(SWIGTYPE_p_p_OSRCoordinateTransformationShadow->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_OSRCoordinateTransformationShadow,&le_swig__p_p_OSRCoordinateTransformationShadow); le_swig__p_int=zend_register_list_destructors_ex(_wrap_destroy_p_int,NULL,(char *)(SWIGTYPE_p_int->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_int,&le_swig__p_int); le_swig__p_OSRSpatialReferenceShadow=zend_register_list_destructors_ex(_wrap_destroy_p_OSRSpatialReferenceShadow,NULL,(char *)(SWIGTYPE_p_OSRSpatialReferenceShadow->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_OSRSpatialReferenceShadow,&le_swig__p_OSRSpatialReferenceShadow); le_swig__p_p_OSRSpatialReferenceShadow=zend_register_list_destructors_ex(_wrap_destroy_p_p_OSRSpatialReferenceShadow,NULL,(char *)(SWIGTYPE_p_p_OSRSpatialReferenceShadow->name),module_number); SWIG_TypeClientData(SWIGTYPE_p_p_OSRSpatialReferenceShadow,&le_swig__p_p_OSRSpatialReferenceShadow); CG(active_class_entry) = NULL; /* end oinit subsection */ return SUCCESS; } PHP_RINIT_FUNCTION(osr) { /* rinit section */ /* cinit subsection */ REGISTER_STRING_CONSTANT("SRS_PT_ALBERS_CONIC_EQUAL_AREA", SRS_PT_ALBERS_CONIC_EQUAL_AREA, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_AZIMUTHAL_EQUIDISTANT", SRS_PT_AZIMUTHAL_EQUIDISTANT, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_CASSINI_SOLDNER", SRS_PT_CASSINI_SOLDNER, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_CYLINDRICAL_EQUAL_AREA", SRS_PT_CYLINDRICAL_EQUAL_AREA, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_ECKERT_IV", SRS_PT_ECKERT_IV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_ECKERT_VI", SRS_PT_ECKERT_VI, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_EQUIDISTANT_CONIC", SRS_PT_EQUIDISTANT_CONIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_EQUIRECTANGULAR", SRS_PT_EQUIRECTANGULAR, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_GALL_STEREOGRAPHIC", SRS_PT_GALL_STEREOGRAPHIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_GNOMONIC", SRS_PT_GNOMONIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_GOODE_HOMOLOSINE", SRS_PT_GOODE_HOMOLOSINE, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_HOTINE_OBLIQUE_MERCATOR", SRS_PT_HOTINE_OBLIQUE_MERCATOR, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN", SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_LABORDE_OBLIQUE_MERCATOR", SRS_PT_LABORDE_OBLIQUE_MERCATOR, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP", SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP", SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM", SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA", SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_MERCATOR_1SP", SRS_PT_MERCATOR_1SP, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_MERCATOR_2SP", SRS_PT_MERCATOR_2SP, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_MILLER_CYLINDRICAL", SRS_PT_MILLER_CYLINDRICAL, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_MOLLWEIDE", SRS_PT_MOLLWEIDE, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_NEW_ZEALAND_MAP_GRID", SRS_PT_NEW_ZEALAND_MAP_GRID, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_OBLIQUE_STEREOGRAPHIC", SRS_PT_OBLIQUE_STEREOGRAPHIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_ORTHOGRAPHIC", SRS_PT_ORTHOGRAPHIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_POLAR_STEREOGRAPHIC", SRS_PT_POLAR_STEREOGRAPHIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_POLYCONIC", SRS_PT_POLYCONIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_ROBINSON", SRS_PT_ROBINSON, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_SINUSOIDAL", SRS_PT_SINUSOIDAL, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_STEREOGRAPHIC", SRS_PT_STEREOGRAPHIC, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_SWISS_OBLIQUE_CYLINDRICAL", SRS_PT_SWISS_OBLIQUE_CYLINDRICAL, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TRANSVERSE_MERCATOR", SRS_PT_TRANSVERSE_MERCATOR, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED", SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TRANSVERSE_MERCATOR_MI_22", SRS_PT_TRANSVERSE_MERCATOR_MI_22, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TRANSVERSE_MERCATOR_MI_23", SRS_PT_TRANSVERSE_MERCATOR_MI_23, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TRANSVERSE_MERCATOR_MI_24", SRS_PT_TRANSVERSE_MERCATOR_MI_24, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TRANSVERSE_MERCATOR_MI_25", SRS_PT_TRANSVERSE_MERCATOR_MI_25, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_TUNISIA_MINING_GRID", SRS_PT_TUNISIA_MINING_GRID, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_VANDERGRINTEN", SRS_PT_VANDERGRINTEN, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PT_KROVAK", SRS_PT_KROVAK, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_CENTRAL_MERIDIAN", SRS_PP_CENTRAL_MERIDIAN, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_SCALE_FACTOR", SRS_PP_SCALE_FACTOR, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_STANDARD_PARALLEL_1", SRS_PP_STANDARD_PARALLEL_1, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_STANDARD_PARALLEL_2", SRS_PP_STANDARD_PARALLEL_2, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_PSEUDO_STD_PARALLEL_1", SRS_PP_PSEUDO_STD_PARALLEL_1, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LONGITUDE_OF_CENTER", SRS_PP_LONGITUDE_OF_CENTER, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LATITUDE_OF_CENTER", SRS_PP_LATITUDE_OF_CENTER, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LONGITUDE_OF_ORIGIN", SRS_PP_LONGITUDE_OF_ORIGIN, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LATITUDE_OF_ORIGIN", SRS_PP_LATITUDE_OF_ORIGIN, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_FALSE_EASTING", SRS_PP_FALSE_EASTING, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_FALSE_NORTHING", SRS_PP_FALSE_NORTHING, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_AZIMUTH", SRS_PP_AZIMUTH, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LONGITUDE_OF_POINT_1", SRS_PP_LONGITUDE_OF_POINT_1, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LATITUDE_OF_POINT_1", SRS_PP_LATITUDE_OF_POINT_1, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LONGITUDE_OF_POINT_2", SRS_PP_LONGITUDE_OF_POINT_2, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LATITUDE_OF_POINT_2", SRS_PP_LATITUDE_OF_POINT_2, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LONGITUDE_OF_POINT_3", SRS_PP_LONGITUDE_OF_POINT_3, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LATITUDE_OF_POINT_3", SRS_PP_LATITUDE_OF_POINT_3, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_RECTIFIED_GRID_ANGLE", SRS_PP_RECTIFIED_GRID_ANGLE, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_LANDSAT_NUMBER", SRS_PP_LANDSAT_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_PATH_NUMBER", SRS_PP_PATH_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_PERSPECTIVE_POINT_HEIGHT", SRS_PP_PERSPECTIVE_POINT_HEIGHT, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_FIPSZONE", SRS_PP_FIPSZONE, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_PP_ZONE", SRS_PP_ZONE, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_METER", SRS_UL_METER, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_FOOT", SRS_UL_FOOT, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_FOOT_CONV", SRS_UL_FOOT_CONV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_US_FOOT", SRS_UL_US_FOOT, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_US_FOOT_CONV", SRS_UL_US_FOOT_CONV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_NAUTICAL_MILE", SRS_UL_NAUTICAL_MILE, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_NAUTICAL_MILE_CONV", SRS_UL_NAUTICAL_MILE_CONV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_LINK", SRS_UL_LINK, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_LINK_CONV", SRS_UL_LINK_CONV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_CHAIN", SRS_UL_CHAIN, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_CHAIN_CONV", SRS_UL_CHAIN_CONV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_ROD", SRS_UL_ROD, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_UL_ROD_CONV", SRS_UL_ROD_CONV, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_DN_NAD27", SRS_DN_NAD27, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_DN_NAD83", SRS_DN_NAD83, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_DN_WGS72", SRS_DN_WGS72, CONST_CS | CONST_PERSISTENT); REGISTER_STRING_CONSTANT("SRS_DN_WGS84", SRS_DN_WGS84, CONST_CS | CONST_PERSISTENT); REGISTER_DOUBLE_CONSTANT("SRS_WGS84_SEMIMAJOR", SRS_WGS84_SEMIMAJOR, CONST_CS | CONST_PERSISTENT); REGISTER_DOUBLE_CONSTANT("SRS_WGS84_INVFLATTENING", SRS_WGS84_INVFLATTENING, CONST_CS | CONST_PERSISTENT); /* end cinit subsection */ /* vinit subsection */ /* end vinit subsection */ return SUCCESS; } PHP_MSHUTDOWN_FUNCTION(osr) { /* shutdown section */ return SUCCESS; } PHP_RSHUTDOWN_FUNCTION(osr) { /* rshutdown section */ return SUCCESS; } PHP_MINFO_FUNCTION(osr) { } /* end init section */