Line data Source code
1 : /* ----------------------------------------------------------------------------
2 : * This file was automatically generated by SWIG (http://www.swig.org).
3 : * Version 4.0.1
4 : *
5 : * This file is not intended to be easily readable and contains a number of
6 : * coding conventions designed to improve portability and efficiency. Do not make
7 : * changes to this file unless you know what you are doing--modify the SWIG
8 : * interface file instead.
9 : * ----------------------------------------------------------------------------- */
10 :
11 :
12 : #ifndef SWIGJAVA
13 : #define SWIGJAVA
14 : #endif
15 :
16 :
17 :
18 : #ifdef __cplusplus
19 : /* SwigValueWrapper is described in swig.swg */
20 : template<typename T> class SwigValueWrapper {
21 : struct SwigMovePointer {
22 : T *ptr;
23 : SwigMovePointer(T *p) : ptr(p) { }
24 : ~SwigMovePointer() { delete ptr; }
25 : SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
26 : } pointer;
27 : SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
28 : SwigValueWrapper(const SwigValueWrapper<T>& rhs);
29 : public:
30 : SwigValueWrapper() : pointer(0) { }
31 : SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
32 : operator T&() const { return *pointer.ptr; }
33 : T *operator&() { return pointer.ptr; }
34 : };
35 :
36 : template <typename T> T SwigValueInit() {
37 : return T();
38 : }
39 : #endif
40 :
41 : /* -----------------------------------------------------------------------------
42 : * This section contains generic SWIG labels for method/variable
43 : * declarations/attributes, and other compiler dependent labels.
44 : * ----------------------------------------------------------------------------- */
45 :
46 : /* template workaround for compilers that cannot correctly implement the C++ standard */
47 : #ifndef SWIGTEMPLATEDISAMBIGUATOR
48 : # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
49 : # define SWIGTEMPLATEDISAMBIGUATOR template
50 : # elif defined(__HP_aCC)
51 : /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
52 : /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
53 : # define SWIGTEMPLATEDISAMBIGUATOR template
54 : # else
55 : # define SWIGTEMPLATEDISAMBIGUATOR
56 : # endif
57 : #endif
58 :
59 : /* inline attribute */
60 : #ifndef SWIGINLINE
61 : # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
62 : # define SWIGINLINE inline
63 : # else
64 : # define SWIGINLINE
65 : # endif
66 : #endif
67 :
68 : /* attribute recognised by some compilers to avoid 'unused' warnings */
69 : #ifndef SWIGUNUSED
70 : # if defined(__GNUC__)
71 : # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
72 : # define SWIGUNUSED __attribute__ ((__unused__))
73 : # else
74 : # define SWIGUNUSED
75 : # endif
76 : # elif defined(__ICC)
77 : # define SWIGUNUSED __attribute__ ((__unused__))
78 : # else
79 : # define SWIGUNUSED
80 : # endif
81 : #endif
82 :
83 : #ifndef SWIG_MSC_UNSUPPRESS_4505
84 : # if defined(_MSC_VER)
85 : # pragma warning(disable : 4505) /* unreferenced local function has been removed */
86 : # endif
87 : #endif
88 :
89 : #ifndef SWIGUNUSEDPARM
90 : # ifdef __cplusplus
91 : # define SWIGUNUSEDPARM(p)
92 : # else
93 : # define SWIGUNUSEDPARM(p) p SWIGUNUSED
94 : # endif
95 : #endif
96 :
97 : /* internal SWIG method */
98 : #ifndef SWIGINTERN
99 : # define SWIGINTERN static SWIGUNUSED
100 : #endif
101 :
102 : /* internal inline SWIG method */
103 : #ifndef SWIGINTERNINLINE
104 : # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
105 : #endif
106 :
107 : /* exporting methods */
108 : #if defined(__GNUC__)
109 : # if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
110 : # ifndef GCC_HASCLASSVISIBILITY
111 : # define GCC_HASCLASSVISIBILITY
112 : # endif
113 : # endif
114 : #endif
115 :
116 : #ifndef SWIGEXPORT
117 : # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
118 : # if defined(STATIC_LINKED)
119 : # define SWIGEXPORT
120 : # else
121 : # define SWIGEXPORT __declspec(dllexport)
122 : # endif
123 : # else
124 : # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
125 : # define SWIGEXPORT __attribute__ ((visibility("default")))
126 : # else
127 : # define SWIGEXPORT
128 : # endif
129 : # endif
130 : #endif
131 :
132 : /* calling conventions for Windows */
133 : #ifndef SWIGSTDCALL
134 : # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
135 : # define SWIGSTDCALL __stdcall
136 : # else
137 : # define SWIGSTDCALL
138 : # endif
139 : #endif
140 :
141 : /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
142 : #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
143 : # define _CRT_SECURE_NO_DEPRECATE
144 : #endif
145 :
146 : /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
147 : #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
148 : # define _SCL_SECURE_NO_DEPRECATE
149 : #endif
150 :
151 : /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
152 : #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
153 : # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
154 : #endif
155 :
156 : /* Intel's compiler complains if a variable which was never initialised is
157 : * cast to void, which is a common idiom which we use to indicate that we
158 : * are aware a variable isn't used. So we just silence that warning.
159 : * See: https://github.com/swig/swig/issues/192 for more discussion.
160 : */
161 : #ifdef __INTEL_COMPILER
162 : # pragma warning disable 592
163 : #endif
164 :
165 :
166 : /* Fix for jlong on some versions of gcc on Windows */
167 : #if defined(__GNUC__) && !defined(__INTEL_COMPILER)
168 : typedef long long __int64;
169 : #endif
170 :
171 : /* Fix for jlong on 64-bit x86 Solaris */
172 : #if defined(__x86_64)
173 : # ifdef _LP64
174 : # undef _LP64
175 : # endif
176 : #endif
177 :
178 : #include <jni.h>
179 : #include <stdlib.h>
180 : #include <string.h>
181 :
182 :
183 : /* Support for throwing Java exceptions */
184 : typedef enum {
185 : SWIG_JavaOutOfMemoryError = 1,
186 : SWIG_JavaIOException,
187 : SWIG_JavaRuntimeException,
188 : SWIG_JavaIndexOutOfBoundsException,
189 : SWIG_JavaArithmeticException,
190 : SWIG_JavaIllegalArgumentException,
191 : SWIG_JavaNullPointerException,
192 : SWIG_JavaDirectorPureVirtual,
193 : SWIG_JavaUnknownError,
194 : SWIG_JavaIllegalStateException,
195 : } SWIG_JavaExceptionCodes;
196 :
197 : typedef struct {
198 : SWIG_JavaExceptionCodes code;
199 : const char *java_exception;
200 : } SWIG_JavaExceptions_t;
201 :
202 :
203 0 : static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
204 : jclass excep;
205 : static const SWIG_JavaExceptions_t java_exceptions[] = {
206 : { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
207 : { SWIG_JavaIOException, "java/io/IOException" },
208 : { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
209 : { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
210 : { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
211 : { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
212 : { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
213 : { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
214 : { SWIG_JavaUnknownError, "java/lang/UnknownError" },
215 : { SWIG_JavaIllegalStateException, "java/lang/IllegalStateException" },
216 : { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
217 : };
218 0 : const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
219 :
220 0 : while (except_ptr->code != code && except_ptr->code)
221 0 : except_ptr++;
222 :
223 0 : jenv->ExceptionClear();
224 0 : excep = jenv->FindClass(except_ptr->java_exception);
225 0 : if (excep)
226 0 : jenv->ThrowNew(excep, msg);
227 0 : }
228 :
229 :
230 : /* Contract support */
231 :
232 : #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
233 :
234 : /* Errors in SWIG */
235 : #define SWIG_UnknownError -1
236 : #define SWIG_IOError -2
237 : #define SWIG_RuntimeError -3
238 : #define SWIG_IndexError -4
239 : #define SWIG_TypeError -5
240 : #define SWIG_DivisionByZero -6
241 : #define SWIG_OverflowError -7
242 : #define SWIG_SyntaxError -8
243 : #define SWIG_ValueError -9
244 : #define SWIG_SystemError -10
245 : #define SWIG_AttributeError -11
246 : #define SWIG_MemoryError -12
247 : #define SWIG_NullReferenceError -13
248 :
249 :
250 :
251 :
252 0 : SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
253 0 : SWIG_JavaExceptionCodes exception_code = SWIG_JavaUnknownError;
254 0 : switch(code) {
255 0 : case SWIG_MemoryError:
256 0 : exception_code = SWIG_JavaOutOfMemoryError;
257 0 : break;
258 0 : case SWIG_IOError:
259 0 : exception_code = SWIG_JavaIOException;
260 0 : break;
261 0 : case SWIG_SystemError:
262 : case SWIG_RuntimeError:
263 0 : exception_code = SWIG_JavaRuntimeException;
264 0 : break;
265 0 : case SWIG_OverflowError:
266 : case SWIG_IndexError:
267 0 : exception_code = SWIG_JavaIndexOutOfBoundsException;
268 0 : break;
269 0 : case SWIG_DivisionByZero:
270 0 : exception_code = SWIG_JavaArithmeticException;
271 0 : break;
272 0 : case SWIG_SyntaxError:
273 : case SWIG_ValueError:
274 : case SWIG_TypeError:
275 0 : exception_code = SWIG_JavaIllegalArgumentException;
276 0 : break;
277 0 : case SWIG_UnknownError:
278 : default:
279 0 : exception_code = SWIG_JavaUnknownError;
280 0 : break;
281 : }
282 0 : SWIG_JavaThrowException(jenv, exception_code, msg);
283 0 : }
284 :
285 :
286 : #include <typeinfo>
287 : #include <stdexcept>
288 :
289 :
290 : typedef char retStringAndCPLFree;
291 :
292 :
293 : #include <iostream>
294 : using namespace std;
295 :
296 : #define CPL_SUPRESS_CPLUSPLUS
297 :
298 : #include "cpl_string.h"
299 : #include "cpl_conv.h"
300 :
301 : #include "ogr_srs_api.h"
302 :
303 : #ifdef DEBUG
304 : typedef struct OGRSpatialReferenceHS OSRSpatialReferenceShadow;
305 : typedef struct OGRCoordinateTransformationHS OSRCoordinateTransformationShadow;
306 : typedef struct OGRCoordinateTransformationHS OGRCoordinateTransformationShadow;
307 : #else
308 : typedef void OSRSpatialReferenceShadow;
309 : typedef void OSRCoordinateTransformationShadow;
310 : #endif
311 :
312 :
313 : #if defined(SWIG_NOINCLUDE) || defined(SWIG_NOARRAYS)
314 :
315 :
316 : static int SWIG_JavaArrayInBool (JNIEnv *jenv, jboolean **jarr, bool **carr, jbooleanArray input);
317 : static void SWIG_JavaArrayArgoutBool (JNIEnv *jenv, jboolean *jarr, bool *carr, jbooleanArray input);
318 : static jbooleanArray SWIG_JavaArrayOutBool (JNIEnv *jenv, bool *result, jsize sz);
319 :
320 :
321 : static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input);
322 : static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input);
323 : static jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz);
324 :
325 :
326 : static int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input);
327 : static void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input);
328 : static jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz);
329 :
330 :
331 : static int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input);
332 : static void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input);
333 : static jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz);
334 :
335 :
336 : static int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input);
337 : static void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input);
338 : static jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz);
339 :
340 :
341 : static int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input);
342 : static void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input);
343 : static jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz);
344 :
345 :
346 : static int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input);
347 : static void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input);
348 : static jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz);
349 :
350 :
351 : static int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input);
352 : static void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input);
353 : static jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz);
354 :
355 :
356 : static int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input);
357 : static void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input);
358 : static jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz);
359 :
360 :
361 : static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, jlong **carr, jlongArray input);
362 : static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, jlong *carr, jlongArray input);
363 : static jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, jlong *result, jsize sz);
364 :
365 :
366 : static int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input);
367 : static void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input);
368 : static jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz);
369 :
370 :
371 : static int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input);
372 : static void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input);
373 : static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz);
374 :
375 :
376 : #else
377 :
378 :
379 : /* bool[] support */
380 0 : static int SWIG_JavaArrayInBool (JNIEnv *jenv, jboolean **jarr, bool **carr, jbooleanArray input) {
381 : int i;
382 : jsize sz;
383 0 : if (!input) {
384 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
385 0 : return 0;
386 : }
387 0 : sz = jenv->GetArrayLength(input);
388 0 : *jarr = jenv->GetBooleanArrayElements(input, 0);
389 0 : if (!*jarr)
390 0 : return 0;
391 0 : *carr = new bool[sz];
392 0 : if (!*carr) {
393 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
394 0 : return 0;
395 : }
396 0 : for (i=0; i<sz; i++)
397 0 : (*carr)[i] = ((*jarr)[i] != 0);
398 0 : return 1;
399 : }
400 :
401 0 : static void SWIG_JavaArrayArgoutBool (JNIEnv *jenv, jboolean *jarr, bool *carr, jbooleanArray input) {
402 : int i;
403 0 : jsize sz = jenv->GetArrayLength(input);
404 0 : for (i=0; i<sz; i++)
405 0 : jarr[i] = (jboolean)carr[i];
406 0 : jenv->ReleaseBooleanArrayElements(input, jarr, 0);
407 0 : }
408 :
409 0 : static jbooleanArray SWIG_JavaArrayOutBool (JNIEnv *jenv, bool *result, jsize sz) {
410 : jboolean *arr;
411 : int i;
412 0 : jbooleanArray jresult = jenv->NewBooleanArray(sz);
413 0 : if (!jresult)
414 0 : return NULL;
415 0 : arr = jenv->GetBooleanArrayElements(jresult, 0);
416 0 : if (!arr)
417 0 : return NULL;
418 0 : for (i=0; i<sz; i++)
419 0 : arr[i] = (jboolean)result[i];
420 0 : jenv->ReleaseBooleanArrayElements(jresult, arr, 0);
421 0 : return jresult;
422 : }
423 :
424 :
425 : /* signed char[] support */
426 0 : static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
427 : int i;
428 : jsize sz;
429 0 : if (!input) {
430 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
431 0 : return 0;
432 : }
433 0 : sz = jenv->GetArrayLength(input);
434 0 : *jarr = jenv->GetByteArrayElements(input, 0);
435 0 : if (!*jarr)
436 0 : return 0;
437 0 : *carr = new signed char[sz];
438 0 : if (!*carr) {
439 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
440 0 : return 0;
441 : }
442 0 : for (i=0; i<sz; i++)
443 0 : (*carr)[i] = (signed char)(*jarr)[i];
444 0 : return 1;
445 : }
446 :
447 0 : static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
448 : int i;
449 0 : jsize sz = jenv->GetArrayLength(input);
450 0 : for (i=0; i<sz; i++)
451 0 : jarr[i] = (jbyte)carr[i];
452 0 : jenv->ReleaseByteArrayElements(input, jarr, 0);
453 0 : }
454 :
455 0 : static jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz) {
456 : jbyte *arr;
457 : int i;
458 0 : jbyteArray jresult = jenv->NewByteArray(sz);
459 0 : if (!jresult)
460 0 : return NULL;
461 0 : arr = jenv->GetByteArrayElements(jresult, 0);
462 0 : if (!arr)
463 0 : return NULL;
464 0 : for (i=0; i<sz; i++)
465 0 : arr[i] = (jbyte)result[i];
466 0 : jenv->ReleaseByteArrayElements(jresult, arr, 0);
467 0 : return jresult;
468 : }
469 :
470 :
471 : /* unsigned char[] support */
472 0 : static int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input) {
473 : int i;
474 : jsize sz;
475 0 : if (!input) {
476 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
477 0 : return 0;
478 : }
479 0 : sz = jenv->GetArrayLength(input);
480 0 : *jarr = jenv->GetShortArrayElements(input, 0);
481 0 : if (!*jarr)
482 0 : return 0;
483 0 : *carr = new unsigned char[sz];
484 0 : if (!*carr) {
485 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
486 0 : return 0;
487 : }
488 0 : for (i=0; i<sz; i++)
489 0 : (*carr)[i] = (unsigned char)(*jarr)[i];
490 0 : return 1;
491 : }
492 :
493 0 : static void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input) {
494 : int i;
495 0 : jsize sz = jenv->GetArrayLength(input);
496 0 : for (i=0; i<sz; i++)
497 0 : jarr[i] = (jshort)carr[i];
498 0 : jenv->ReleaseShortArrayElements(input, jarr, 0);
499 0 : }
500 :
501 0 : static jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz) {
502 : jshort *arr;
503 : int i;
504 0 : jshortArray jresult = jenv->NewShortArray(sz);
505 0 : if (!jresult)
506 0 : return NULL;
507 0 : arr = jenv->GetShortArrayElements(jresult, 0);
508 0 : if (!arr)
509 0 : return NULL;
510 0 : for (i=0; i<sz; i++)
511 0 : arr[i] = (jshort)result[i];
512 0 : jenv->ReleaseShortArrayElements(jresult, arr, 0);
513 0 : return jresult;
514 : }
515 :
516 :
517 : /* short[] support */
518 0 : static int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input) {
519 : int i;
520 : jsize sz;
521 0 : if (!input) {
522 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
523 0 : return 0;
524 : }
525 0 : sz = jenv->GetArrayLength(input);
526 0 : *jarr = jenv->GetShortArrayElements(input, 0);
527 0 : if (!*jarr)
528 0 : return 0;
529 0 : *carr = new short[sz];
530 0 : if (!*carr) {
531 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
532 0 : return 0;
533 : }
534 0 : for (i=0; i<sz; i++)
535 0 : (*carr)[i] = (short)(*jarr)[i];
536 0 : return 1;
537 : }
538 :
539 0 : static void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input) {
540 : int i;
541 0 : jsize sz = jenv->GetArrayLength(input);
542 0 : for (i=0; i<sz; i++)
543 0 : jarr[i] = (jshort)carr[i];
544 0 : jenv->ReleaseShortArrayElements(input, jarr, 0);
545 0 : }
546 :
547 0 : static jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz) {
548 : jshort *arr;
549 : int i;
550 0 : jshortArray jresult = jenv->NewShortArray(sz);
551 0 : if (!jresult)
552 0 : return NULL;
553 0 : arr = jenv->GetShortArrayElements(jresult, 0);
554 0 : if (!arr)
555 0 : return NULL;
556 0 : for (i=0; i<sz; i++)
557 0 : arr[i] = (jshort)result[i];
558 0 : jenv->ReleaseShortArrayElements(jresult, arr, 0);
559 0 : return jresult;
560 : }
561 :
562 :
563 : /* unsigned short[] support */
564 0 : static int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input) {
565 : int i;
566 : jsize sz;
567 0 : if (!input) {
568 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
569 0 : return 0;
570 : }
571 0 : sz = jenv->GetArrayLength(input);
572 0 : *jarr = jenv->GetIntArrayElements(input, 0);
573 0 : if (!*jarr)
574 0 : return 0;
575 0 : *carr = new unsigned short[sz];
576 0 : if (!*carr) {
577 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
578 0 : return 0;
579 : }
580 0 : for (i=0; i<sz; i++)
581 0 : (*carr)[i] = (unsigned short)(*jarr)[i];
582 0 : return 1;
583 : }
584 :
585 0 : static void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input) {
586 : int i;
587 0 : jsize sz = jenv->GetArrayLength(input);
588 0 : for (i=0; i<sz; i++)
589 0 : jarr[i] = (jint)carr[i];
590 0 : jenv->ReleaseIntArrayElements(input, jarr, 0);
591 0 : }
592 :
593 0 : static jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz) {
594 : jint *arr;
595 : int i;
596 0 : jintArray jresult = jenv->NewIntArray(sz);
597 0 : if (!jresult)
598 0 : return NULL;
599 0 : arr = jenv->GetIntArrayElements(jresult, 0);
600 0 : if (!arr)
601 0 : return NULL;
602 0 : for (i=0; i<sz; i++)
603 0 : arr[i] = (jint)result[i];
604 0 : jenv->ReleaseIntArrayElements(jresult, arr, 0);
605 0 : return jresult;
606 : }
607 :
608 :
609 : /* int[] support */
610 0 : static int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input) {
611 : int i;
612 : jsize sz;
613 0 : if (!input) {
614 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
615 0 : return 0;
616 : }
617 0 : sz = jenv->GetArrayLength(input);
618 0 : *jarr = jenv->GetIntArrayElements(input, 0);
619 0 : if (!*jarr)
620 0 : return 0;
621 0 : *carr = new int[sz];
622 0 : if (!*carr) {
623 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
624 0 : return 0;
625 : }
626 0 : for (i=0; i<sz; i++)
627 0 : (*carr)[i] = (int)(*jarr)[i];
628 0 : return 1;
629 : }
630 :
631 0 : static void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input) {
632 : int i;
633 0 : jsize sz = jenv->GetArrayLength(input);
634 0 : for (i=0; i<sz; i++)
635 0 : jarr[i] = (jint)carr[i];
636 0 : jenv->ReleaseIntArrayElements(input, jarr, 0);
637 0 : }
638 :
639 0 : static jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz) {
640 : jint *arr;
641 : int i;
642 0 : jintArray jresult = jenv->NewIntArray(sz);
643 0 : if (!jresult)
644 0 : return NULL;
645 0 : arr = jenv->GetIntArrayElements(jresult, 0);
646 0 : if (!arr)
647 0 : return NULL;
648 0 : for (i=0; i<sz; i++)
649 0 : arr[i] = (jint)result[i];
650 0 : jenv->ReleaseIntArrayElements(jresult, arr, 0);
651 0 : return jresult;
652 : }
653 :
654 :
655 : /* unsigned int[] support */
656 0 : static int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input) {
657 : int i;
658 : jsize sz;
659 0 : if (!input) {
660 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
661 0 : return 0;
662 : }
663 0 : sz = jenv->GetArrayLength(input);
664 0 : *jarr = jenv->GetLongArrayElements(input, 0);
665 0 : if (!*jarr)
666 0 : return 0;
667 0 : *carr = new unsigned int[sz];
668 0 : if (!*carr) {
669 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
670 0 : return 0;
671 : }
672 0 : for (i=0; i<sz; i++)
673 0 : (*carr)[i] = (unsigned int)(*jarr)[i];
674 0 : return 1;
675 : }
676 :
677 0 : static void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input) {
678 : int i;
679 0 : jsize sz = jenv->GetArrayLength(input);
680 0 : for (i=0; i<sz; i++)
681 0 : jarr[i] = (jlong)carr[i];
682 0 : jenv->ReleaseLongArrayElements(input, jarr, 0);
683 0 : }
684 :
685 0 : static jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz) {
686 : jlong *arr;
687 : int i;
688 0 : jlongArray jresult = jenv->NewLongArray(sz);
689 0 : if (!jresult)
690 0 : return NULL;
691 0 : arr = jenv->GetLongArrayElements(jresult, 0);
692 0 : if (!arr)
693 0 : return NULL;
694 0 : for (i=0; i<sz; i++)
695 0 : arr[i] = (jlong)result[i];
696 0 : jenv->ReleaseLongArrayElements(jresult, arr, 0);
697 0 : return jresult;
698 : }
699 :
700 :
701 : /* long[] support */
702 0 : static int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input) {
703 : int i;
704 : jsize sz;
705 0 : if (!input) {
706 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
707 0 : return 0;
708 : }
709 0 : sz = jenv->GetArrayLength(input);
710 0 : *jarr = jenv->GetIntArrayElements(input, 0);
711 0 : if (!*jarr)
712 0 : return 0;
713 0 : *carr = new long[sz];
714 0 : if (!*carr) {
715 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
716 0 : return 0;
717 : }
718 0 : for (i=0; i<sz; i++)
719 0 : (*carr)[i] = (long)(*jarr)[i];
720 0 : return 1;
721 : }
722 :
723 0 : static void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input) {
724 : int i;
725 0 : jsize sz = jenv->GetArrayLength(input);
726 0 : for (i=0; i<sz; i++)
727 0 : jarr[i] = (jint)carr[i];
728 0 : jenv->ReleaseIntArrayElements(input, jarr, 0);
729 0 : }
730 :
731 0 : static jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz) {
732 : jint *arr;
733 : int i;
734 0 : jintArray jresult = jenv->NewIntArray(sz);
735 0 : if (!jresult)
736 0 : return NULL;
737 0 : arr = jenv->GetIntArrayElements(jresult, 0);
738 0 : if (!arr)
739 0 : return NULL;
740 0 : for (i=0; i<sz; i++)
741 0 : arr[i] = (jint)result[i];
742 0 : jenv->ReleaseIntArrayElements(jresult, arr, 0);
743 0 : return jresult;
744 : }
745 :
746 :
747 : /* unsigned long[] support */
748 0 : static int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input) {
749 : int i;
750 : jsize sz;
751 0 : if (!input) {
752 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
753 0 : return 0;
754 : }
755 0 : sz = jenv->GetArrayLength(input);
756 0 : *jarr = jenv->GetLongArrayElements(input, 0);
757 0 : if (!*jarr)
758 0 : return 0;
759 0 : *carr = new unsigned long[sz];
760 0 : if (!*carr) {
761 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
762 0 : return 0;
763 : }
764 0 : for (i=0; i<sz; i++)
765 0 : (*carr)[i] = (unsigned long)(*jarr)[i];
766 0 : return 1;
767 : }
768 :
769 0 : static void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input) {
770 : int i;
771 0 : jsize sz = jenv->GetArrayLength(input);
772 0 : for (i=0; i<sz; i++)
773 0 : jarr[i] = (jlong)carr[i];
774 0 : jenv->ReleaseLongArrayElements(input, jarr, 0);
775 0 : }
776 :
777 0 : static jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz) {
778 : jlong *arr;
779 : int i;
780 0 : jlongArray jresult = jenv->NewLongArray(sz);
781 0 : if (!jresult)
782 0 : return NULL;
783 0 : arr = jenv->GetLongArrayElements(jresult, 0);
784 0 : if (!arr)
785 0 : return NULL;
786 0 : for (i=0; i<sz; i++)
787 0 : arr[i] = (jlong)result[i];
788 0 : jenv->ReleaseLongArrayElements(jresult, arr, 0);
789 0 : return jresult;
790 : }
791 :
792 :
793 : /* jlong[] support */
794 0 : static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, jlong **carr, jlongArray input) {
795 : int i;
796 : jsize sz;
797 0 : if (!input) {
798 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
799 0 : return 0;
800 : }
801 0 : sz = jenv->GetArrayLength(input);
802 0 : *jarr = jenv->GetLongArrayElements(input, 0);
803 0 : if (!*jarr)
804 0 : return 0;
805 0 : *carr = new jlong[sz];
806 0 : if (!*carr) {
807 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
808 0 : return 0;
809 : }
810 0 : for (i=0; i<sz; i++)
811 0 : (*carr)[i] = (jlong)(*jarr)[i];
812 0 : return 1;
813 : }
814 :
815 0 : static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, jlong *carr, jlongArray input) {
816 : int i;
817 0 : jsize sz = jenv->GetArrayLength(input);
818 0 : for (i=0; i<sz; i++)
819 0 : jarr[i] = (jlong)carr[i];
820 0 : jenv->ReleaseLongArrayElements(input, jarr, 0);
821 0 : }
822 :
823 0 : static jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, jlong *result, jsize sz) {
824 : jlong *arr;
825 : int i;
826 0 : jlongArray jresult = jenv->NewLongArray(sz);
827 0 : if (!jresult)
828 0 : return NULL;
829 0 : arr = jenv->GetLongArrayElements(jresult, 0);
830 0 : if (!arr)
831 0 : return NULL;
832 0 : for (i=0; i<sz; i++)
833 0 : arr[i] = (jlong)result[i];
834 0 : jenv->ReleaseLongArrayElements(jresult, arr, 0);
835 0 : return jresult;
836 : }
837 :
838 :
839 : /* float[] support */
840 0 : static int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input) {
841 : int i;
842 : jsize sz;
843 0 : if (!input) {
844 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
845 0 : return 0;
846 : }
847 0 : sz = jenv->GetArrayLength(input);
848 0 : *jarr = jenv->GetFloatArrayElements(input, 0);
849 0 : if (!*jarr)
850 0 : return 0;
851 0 : *carr = new float[sz];
852 0 : if (!*carr) {
853 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
854 0 : return 0;
855 : }
856 0 : for (i=0; i<sz; i++)
857 0 : (*carr)[i] = (float)(*jarr)[i];
858 0 : return 1;
859 : }
860 :
861 0 : static void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input) {
862 : int i;
863 0 : jsize sz = jenv->GetArrayLength(input);
864 0 : for (i=0; i<sz; i++)
865 0 : jarr[i] = (jfloat)carr[i];
866 0 : jenv->ReleaseFloatArrayElements(input, jarr, 0);
867 0 : }
868 :
869 0 : static jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz) {
870 : jfloat *arr;
871 : int i;
872 0 : jfloatArray jresult = jenv->NewFloatArray(sz);
873 0 : if (!jresult)
874 0 : return NULL;
875 0 : arr = jenv->GetFloatArrayElements(jresult, 0);
876 0 : if (!arr)
877 0 : return NULL;
878 0 : for (i=0; i<sz; i++)
879 0 : arr[i] = (jfloat)result[i];
880 0 : jenv->ReleaseFloatArrayElements(jresult, arr, 0);
881 0 : return jresult;
882 : }
883 :
884 :
885 : /* double[] support */
886 0 : static int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input) {
887 : int i;
888 : jsize sz;
889 0 : if (!input) {
890 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
891 0 : return 0;
892 : }
893 0 : sz = jenv->GetArrayLength(input);
894 0 : *jarr = jenv->GetDoubleArrayElements(input, 0);
895 0 : if (!*jarr)
896 0 : return 0;
897 0 : *carr = new double[sz];
898 0 : if (!*carr) {
899 0 : SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
900 0 : return 0;
901 : }
902 0 : for (i=0; i<sz; i++)
903 0 : (*carr)[i] = (double)(*jarr)[i];
904 0 : return 1;
905 : }
906 :
907 0 : static void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input) {
908 : int i;
909 0 : jsize sz = jenv->GetArrayLength(input);
910 0 : for (i=0; i<sz; i++)
911 0 : jarr[i] = (jdouble)carr[i];
912 0 : jenv->ReleaseDoubleArrayElements(input, jarr, 0);
913 0 : }
914 :
915 0 : static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz) {
916 : jdouble *arr;
917 : int i;
918 0 : jdoubleArray jresult = jenv->NewDoubleArray(sz);
919 0 : if (!jresult)
920 0 : return NULL;
921 0 : arr = jenv->GetDoubleArrayElements(jresult, 0);
922 0 : if (!arr)
923 0 : return NULL;
924 0 : for (i=0; i<sz; i++)
925 0 : arr[i] = (jdouble)result[i];
926 0 : jenv->ReleaseDoubleArrayElements(jresult, arr, 0);
927 0 : return jresult;
928 : }
929 :
930 :
931 : #endif
932 :
933 :
934 : static int bUseExceptions=1;
935 :
936 : static void CPL_STDCALL
937 0 : VeryQuietErrorHandler(CPLErr eclass, int code, const char *msg )
938 : {
939 : /* If the error class is CE_Fatal, we want to have a message issued
940 : because the CPL support code does an abort() before any exception
941 : can be generated */
942 0 : if (eclass == CE_Fatal ) {
943 0 : CPLDefaultErrorHandler(eclass, code, msg );
944 : }
945 0 : }
946 :
947 :
948 0 : static void UseExceptions() {
949 0 : bUseExceptions = 1;
950 0 : CPLSetErrorHandler( (CPLErrorHandler) VeryQuietErrorHandler );
951 0 : }
952 :
953 0 : static void DontUseExceptions() {
954 0 : bUseExceptions = 0;
955 0 : CPLSetErrorHandler( CPLDefaultErrorHandler );
956 0 : }
957 :
958 2 : static bool GetUseExceptions() {
959 2 : return bUseExceptions == 1;
960 : }
961 :
962 :
963 0 : retStringAndCPLFree* GetWellKnownGeogCSAsWKT( const char *name ) {
964 0 : char* argout = NULL;
965 0 : OGRSpatialReferenceH srs = OSRNewSpatialReference("");
966 0 : OGRErr rcode = OSRSetWellKnownGeogCS( srs, name );
967 0 : if( rcode == OGRERR_NONE )
968 0 : rcode = OSRExportToWkt ( srs, &argout );
969 0 : OSRDestroySpatialReference( srs );
970 0 : return argout;
971 : }
972 :
973 :
974 : static jstring
975 2 : SafeNewStringUTF8(JNIEnv *jenv, const char* pszInput)
976 : {
977 2 : jstring ret = 0;
978 2 : if (pszInput)
979 : {
980 2 : if( !CPLIsUTF8(pszInput, -1) )
981 : {
982 0 : CPLError(CE_Warning, CPLE_AppDefined,
983 : "A non-UTF8 string has been detected. Forcing it to ASCII");
984 0 : char* pszTmp = CPLUTF8ForceToASCII(pszInput, '_');
985 : #ifdef __cplusplus
986 0 : ret = jenv->NewStringUTF(pszTmp);
987 : #else
988 : ret = (*jenv)->NewStringUTF(jenv, pszTmp);
989 : #endif
990 0 : CPLFree(pszTmp);
991 : }
992 : else
993 : {
994 : #ifdef __cplusplus
995 2 : ret = jenv->NewStringUTF(pszInput);
996 : #else
997 : ret = (*jenv)->NewStringUTF(jenv, pszInput);
998 : #endif
999 : }
1000 : }
1001 2 : return ret;
1002 : }
1003 :
1004 :
1005 0 : retStringAndCPLFree* GetUserInputAsWKT( const char *name ) {
1006 0 : char* argout = NULL;
1007 0 : OGRSpatialReferenceH srs = OSRNewSpatialReference("");
1008 0 : OGRErr rcode = OSRSetFromUserInput( srs, name );
1009 0 : if( rcode == OGRERR_NONE )
1010 0 : rcode = OSRExportToWkt ( srs, &argout );
1011 0 : OSRDestroySpatialReference( srs );
1012 0 : return argout;
1013 : }
1014 :
1015 :
1016 0 : OGRErr GetWellKnownGeogCSAsWKT( const char *name, char **argout ) {
1017 0 : OGRSpatialReferenceH srs = OSRNewSpatialReference("");
1018 0 : OGRErr rcode = OSRSetWellKnownGeogCS( srs, name );
1019 0 : if( rcode == OGRERR_NONE )
1020 0 : rcode = OSRExportToWkt ( srs, argout );
1021 0 : OSRRelease( srs );
1022 0 : return rcode;
1023 : }
1024 :
1025 :
1026 :
1027 : #include "ogr_core.h"
1028 : static char const *
1029 0 : OGRErrMessages( int rc ) {
1030 0 : switch( rc ) {
1031 0 : case OGRERR_NONE:
1032 0 : return "OGR Error: None";
1033 0 : case OGRERR_NOT_ENOUGH_DATA:
1034 0 : return "OGR Error: Not enough data to deserialize";
1035 0 : case OGRERR_NOT_ENOUGH_MEMORY:
1036 0 : return "OGR Error: Not enough memory";
1037 0 : case OGRERR_UNSUPPORTED_GEOMETRY_TYPE:
1038 0 : return "OGR Error: Unsupported geometry type";
1039 0 : case OGRERR_UNSUPPORTED_OPERATION:
1040 0 : return "OGR Error: Unsupported operation";
1041 0 : case OGRERR_CORRUPT_DATA:
1042 0 : return "OGR Error: Corrupt data";
1043 0 : case OGRERR_FAILURE:
1044 0 : return "OGR Error: General Error";
1045 0 : case OGRERR_UNSUPPORTED_SRS:
1046 0 : return "OGR Error: Unsupported SRS";
1047 0 : case OGRERR_INVALID_HANDLE:
1048 0 : return "OGR Error: Invalid handle";
1049 0 : case OGRERR_NON_EXISTING_FEATURE:
1050 0 : return "OGR Error: Non existing feature";
1051 0 : default:
1052 0 : return "OGR Error: Unknown";
1053 : }
1054 : }
1055 :
1056 :
1057 0 : OGRErr GetUserInputAsWKT( const char *name, char **argout ) {
1058 0 : OGRSpatialReferenceH srs = OSRNewSpatialReference("");
1059 0 : OGRErr rcode = OSRSetFromUserInput( srs, name );
1060 0 : if( rcode == OGRERR_NONE )
1061 0 : rcode = OSRExportToWkt ( srs, argout );
1062 0 : OSRRelease( srs );
1063 0 : return rcode;
1064 : }
1065 :
1066 :
1067 : typedef int* retIntArray;
1068 :
1069 :
1070 : typedef struct
1071 : {
1072 : double west_lon_degree;
1073 : double south_lat_degree;
1074 : double east_lon_degree;
1075 : double north_lat_degree;
1076 : char* name;
1077 : } OSRAreaOfUse;
1078 :
1079 0 : SWIGINTERN OSRAreaOfUse *new_OSRAreaOfUse(double west_lon_degree,double south_lat_degree,double east_lon_degree,double north_lat_degree,char *name){
1080 0 : OSRAreaOfUse *self = (OSRAreaOfUse*) CPLMalloc( sizeof( OSRAreaOfUse ) );
1081 0 : self->west_lon_degree = west_lon_degree;
1082 0 : self->south_lat_degree = south_lat_degree;
1083 0 : self->east_lon_degree = east_lon_degree;
1084 0 : self->north_lat_degree = north_lat_degree;
1085 0 : self->name = name ? CPLStrdup(name) : NULL;
1086 0 : return self;
1087 : }
1088 0 : SWIGINTERN void delete_OSRAreaOfUse(OSRAreaOfUse *self){
1089 0 : CPLFree( self->name );
1090 0 : CPLFree( self );
1091 0 : }
1092 :
1093 :
1094 0 : double OSRAreaOfUse_west_lon_degree_get( OSRAreaOfUse *area ) {
1095 0 : return area->west_lon_degree;
1096 : }
1097 :
1098 0 : double OSRAreaOfUse_south_lat_degree_get( OSRAreaOfUse *area ) {
1099 0 : return area->south_lat_degree;
1100 : }
1101 :
1102 0 : double OSRAreaOfUse_east_lon_degree_get( OSRAreaOfUse *area ) {
1103 0 : return area->east_lon_degree;
1104 : }
1105 :
1106 0 : double OSRAreaOfUse_north_lat_degree_get( OSRAreaOfUse *area ) {
1107 0 : return area->north_lat_degree;
1108 : }
1109 :
1110 0 : const char* OSRAreaOfUse_name_get( OSRAreaOfUse *area ) {
1111 0 : return area->name;
1112 : }
1113 :
1114 :
1115 14 : SWIGINTERN OSRSpatialReferenceShadow *new_OSRSpatialReferenceShadow__SWIG_0(char const *wkt=""){
1116 14 : return (OSRSpatialReferenceShadow*) OSRNewSpatialReference(wkt);
1117 : }
1118 6 : SWIGINTERN void delete_OSRSpatialReferenceShadow(OSRSpatialReferenceShadow *self){
1119 6 : OSRRelease( self );
1120 6 : }
1121 0 : SWIGINTERN retStringAndCPLFree *OSRSpatialReferenceShadow___str__(OSRSpatialReferenceShadow *self){
1122 0 : char *buf = 0;
1123 0 : OSRExportToPrettyWkt( self, &buf, 0 );
1124 0 : return buf;
1125 : }
1126 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetName(OSRSpatialReferenceShadow *self){
1127 0 : return OSRGetName( self );
1128 : }
1129 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetCelestialBodyName(OSRSpatialReferenceShadow *self){
1130 0 : return OSRGetCelestialBodyName( self );
1131 : }
1132 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsSame__SWIG_0(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs,char **options=NULL){
1133 0 : return OSRIsSameEx( self, rhs, options );
1134 : }
1135 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsSameGeogCS(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
1136 0 : return OSRIsSameGeogCS( self, rhs );
1137 : }
1138 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsSameVertCS(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
1139 0 : return OSRIsSameVertCS( self, rhs );
1140 : }
1141 2 : SWIGINTERN int OSRSpatialReferenceShadow_IsGeographic(OSRSpatialReferenceShadow *self){
1142 2 : return OSRIsGeographic(self);
1143 : }
1144 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsDerivedGeographic(OSRSpatialReferenceShadow *self){
1145 0 : return OSRIsDerivedGeographic(self);
1146 : }
1147 2 : SWIGINTERN int OSRSpatialReferenceShadow_IsProjected(OSRSpatialReferenceShadow *self){
1148 2 : return OSRIsProjected(self);
1149 : }
1150 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsDerivedProjected(OSRSpatialReferenceShadow *self){
1151 0 : return OSRIsDerivedProjected(self);
1152 : }
1153 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsCompound(OSRSpatialReferenceShadow *self){
1154 0 : return OSRIsCompound(self);
1155 : }
1156 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsGeocentric(OSRSpatialReferenceShadow *self){
1157 0 : return OSRIsGeocentric(self);
1158 : }
1159 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsLocal(OSRSpatialReferenceShadow *self){
1160 0 : return OSRIsLocal(self);
1161 : }
1162 0 : SWIGINTERN int OSRSpatialReferenceShadow_IsVertical(OSRSpatialReferenceShadow *self){
1163 0 : return OSRIsVertical(self);
1164 : }
1165 0 : SWIGINTERN bool OSRSpatialReferenceShadow_IsDynamic(OSRSpatialReferenceShadow *self){
1166 0 : return OSRIsDynamic(self);
1167 : }
1168 0 : SWIGINTERN bool OSRSpatialReferenceShadow_HasPointMotionOperation(OSRSpatialReferenceShadow *self){
1169 0 : return OSRHasPointMotionOperation(self);
1170 : }
1171 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetCoordinateEpoch(OSRSpatialReferenceShadow *self){
1172 0 : return OSRGetCoordinateEpoch(self);
1173 : }
1174 0 : SWIGINTERN void OSRSpatialReferenceShadow_SetCoordinateEpoch(OSRSpatialReferenceShadow *self,double coordinateEpoch){
1175 0 : OSRSetCoordinateEpoch(self, coordinateEpoch);
1176 0 : }
1177 1 : SWIGINTERN int OSRSpatialReferenceShadow_EPSGTreatsAsLatLong(OSRSpatialReferenceShadow *self){
1178 1 : return OSREPSGTreatsAsLatLong(self);
1179 : }
1180 1 : SWIGINTERN int OSRSpatialReferenceShadow_EPSGTreatsAsNorthingEasting(OSRSpatialReferenceShadow *self){
1181 1 : return OSREPSGTreatsAsNorthingEasting(self);
1182 : }
1183 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAuthority(OSRSpatialReferenceShadow *self,char const *pszTargetKey,char const *pszAuthority,int nCode){
1184 0 : return OSRSetAuthority( self, pszTargetKey, pszAuthority, nCode );
1185 : }
1186 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetAttrValue__SWIG_0(OSRSpatialReferenceShadow *self,char const *name,int child=0){
1187 0 : return OSRGetAttrValue( self, name, child );
1188 : }
1189 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAttrValue(OSRSpatialReferenceShadow *self,char const *name,char const *value){
1190 0 : return OSRSetAttrValue( self, name, value );
1191 : }
1192 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAngularUnits(OSRSpatialReferenceShadow *self,char const *name,double to_radians){
1193 0 : return OSRSetAngularUnits( self, name, to_radians );
1194 : }
1195 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetAngularUnits(OSRSpatialReferenceShadow *self){
1196 : // Return code ignored.
1197 0 : return OSRGetAngularUnits( self, 0 );
1198 : }
1199 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetAngularUnitsName(OSRSpatialReferenceShadow *self){
1200 0 : char *name = 0;
1201 0 : OSRGetAngularUnits( self, &name );
1202 : // This is really a const char* that is returned and shouldn't be freed
1203 0 : return (const char*)name;
1204 : }
1205 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTargetLinearUnits(OSRSpatialReferenceShadow *self,char const *target,char const *name,double to_meters){
1206 0 : return OSRSetTargetLinearUnits( self, target, name, to_meters );
1207 : }
1208 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLinearUnits(OSRSpatialReferenceShadow *self,char const *name,double to_meters){
1209 0 : return OSRSetLinearUnits( self, name, to_meters );
1210 : }
1211 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLinearUnitsAndUpdateParameters(OSRSpatialReferenceShadow *self,char const *name,double to_meters){
1212 0 : return OSRSetLinearUnitsAndUpdateParameters( self, name, to_meters );
1213 : }
1214 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetTargetLinearUnits(OSRSpatialReferenceShadow *self,char const *target_key){
1215 : // Return code ignored.
1216 0 : return OSRGetTargetLinearUnits( self, target_key, 0 );
1217 : }
1218 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetLinearUnits(OSRSpatialReferenceShadow *self){
1219 : // Return code ignored.
1220 0 : return OSRGetLinearUnits( self, 0 );
1221 : }
1222 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetLinearUnitsName(OSRSpatialReferenceShadow *self){
1223 0 : char *name = NULL;
1224 : // Return code ignored.
1225 0 : OSRGetLinearUnits( self, &name );
1226 0 : return (const char*)name;
1227 : }
1228 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetAuthorityCode__SWIG_0(OSRSpatialReferenceShadow *self,char const *target_key=NULL){
1229 0 : return OSRGetAuthorityCode( self, target_key );
1230 : }
1231 0 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetAuthorityName__SWIG_0(OSRSpatialReferenceShadow *self,char const *target_key=NULL){
1232 0 : return OSRGetAuthorityName( self, target_key );
1233 : }
1234 0 : SWIGINTERN OSRAreaOfUse *OSRSpatialReferenceShadow_GetAreaOfUse(OSRSpatialReferenceShadow *self){
1235 0 : OSRAreaOfUse* pArea = new_OSRAreaOfUse(0,0,0,0,NULL);
1236 0 : const char* name = NULL;
1237 0 : if( !OSRGetAreaOfUse(self,
1238 : &pArea->west_lon_degree,
1239 : &pArea->south_lat_degree,
1240 : &pArea->east_lon_degree,
1241 : &pArea->north_lat_degree,
1242 : &name) )
1243 : {
1244 0 : delete_OSRAreaOfUse(pArea);
1245 0 : return NULL;
1246 : }
1247 0 : pArea->name = name ? CPLStrdup(name) : NULL;
1248 0 : return pArea;
1249 : }
1250 1 : SWIGINTERN char const *OSRSpatialReferenceShadow_GetAxisName(OSRSpatialReferenceShadow *self,char const *target_key,int iAxis){
1251 1 : return OSRGetAxis( self, target_key, iAxis, NULL );
1252 : }
1253 0 : SWIGINTERN int OSRSpatialReferenceShadow_GetAxesCount(OSRSpatialReferenceShadow *self){
1254 0 : return OSRGetAxesCount(self);
1255 : }
1256 1 : SWIGINTERN OGRAxisOrientation OSRSpatialReferenceShadow_GetAxisOrientation(OSRSpatialReferenceShadow *self,char const *target_key,int iAxis){
1257 1 : OGRAxisOrientation orientation = OAO_Other;
1258 1 : OSRGetAxis( self, target_key, iAxis, &orientation );
1259 1 : return orientation;
1260 : }
1261 0 : SWIGINTERN OSRAxisMappingStrategy OSRSpatialReferenceShadow_GetAxisMappingStrategy(OSRSpatialReferenceShadow *self){
1262 0 : return OSRGetAxisMappingStrategy(self);
1263 : }
1264 0 : SWIGINTERN void OSRSpatialReferenceShadow_SetAxisMappingStrategy(OSRSpatialReferenceShadow *self,OSRAxisMappingStrategy strategy){
1265 0 : OSRSetAxisMappingStrategy(self, strategy);
1266 0 : }
1267 0 : SWIGINTERN retIntArray OSRSpatialReferenceShadow_GetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow *self,int *nLen,int const **pList){
1268 0 : *pList = OSRGetDataAxisToSRSAxisMapping(self, nLen);
1269 0 : return (retIntArray)*pList;
1270 : }
1271 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow *self,int nList,int *pList){
1272 0 : return OSRSetDataAxisToSRSAxisMapping(self, nList, pList);
1273 : }
1274 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetUTM__SWIG_0(OSRSpatialReferenceShadow *self,int zone,int north=1){
1275 0 : return OSRSetUTM( self, zone, north );
1276 : }
1277 0 : SWIGINTERN int OSRSpatialReferenceShadow_GetUTMZone(OSRSpatialReferenceShadow *self){
1278 : // Note: we will return south zones as negative since it is
1279 : // hard to return two values as the C API does.
1280 0 : int bNorth = FALSE;
1281 0 : int nZone = OSRGetUTMZone( self, &bNorth );
1282 0 : if( !bNorth )
1283 0 : nZone = -nZone;
1284 0 : return nZone;
1285 : }
1286 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetStatePlane__SWIG_0(OSRSpatialReferenceShadow *self,int zone,int is_nad83=1,char const *unitsname="",double units=0.0){
1287 0 : return OSRSetStatePlaneWithUnits( self, zone, is_nad83, unitsname, units );
1288 : }
1289 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_AutoIdentifyEPSG(OSRSpatialReferenceShadow *self){
1290 0 : return OSRAutoIdentifyEPSG( self );
1291 : }
1292 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjection(OSRSpatialReferenceShadow *self,char const *arg){
1293 0 : return OSRSetProjection( self, arg );
1294 : }
1295 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjParm(OSRSpatialReferenceShadow *self,char const *name,double val){
1296 0 : return OSRSetProjParm( self, name, val );
1297 : }
1298 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetProjParm__SWIG_0(OSRSpatialReferenceShadow *self,char const *name,double default_val=0.0){
1299 : // Return code ignored.
1300 0 : return OSRGetProjParm( self, name, default_val, 0 );
1301 : }
1302 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetNormProjParm(OSRSpatialReferenceShadow *self,char const *name,double val){
1303 0 : return OSRSetNormProjParm( self, name, val );
1304 : }
1305 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetNormProjParm__SWIG_0(OSRSpatialReferenceShadow *self,char const *name,double default_val=0.0){
1306 : // Return code ignored.
1307 0 : return OSRGetNormProjParm( self, name, default_val, 0 );
1308 : }
1309 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetSemiMajor(OSRSpatialReferenceShadow *self){
1310 : // Return code ignored.
1311 0 : return OSRGetSemiMajor( self, 0 );
1312 : }
1313 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetSemiMinor(OSRSpatialReferenceShadow *self){
1314 : // Return code ignored.
1315 0 : return OSRGetSemiMinor( self, 0 );
1316 : }
1317 0 : SWIGINTERN double OSRSpatialReferenceShadow_GetInvFlattening(OSRSpatialReferenceShadow *self){
1318 : // Return code ignored.
1319 0 : return OSRGetInvFlattening( self, 0 );
1320 : }
1321 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetACEA(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
1322 0 : return OSRSetACEA( self, stdp1, stdp2, clat, clong,
1323 0 : fe, fn );
1324 : }
1325 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetAE(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1326 0 : return OSRSetAE( self, clat, clong,
1327 0 : fe, fn );
1328 : }
1329 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetBonne(OSRSpatialReferenceShadow *self,double stdp,double cm,double fe,double fn){
1330 0 : return OSRSetBonne( self, stdp, cm, fe, fn );
1331 : }
1332 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetCEA(OSRSpatialReferenceShadow *self,double stdp1,double cm,double fe,double fn){
1333 0 : return OSRSetCEA( self, stdp1, cm,
1334 0 : fe, fn );
1335 : }
1336 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetCS(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1337 0 : return OSRSetCS( self, clat, clong,
1338 0 : fe, fn );
1339 : }
1340 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEC(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
1341 0 : return OSRSetEC( self, stdp1, stdp2, clat, clong,
1342 0 : fe, fn );
1343 : }
1344 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEckertIV(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
1345 0 : return OSRSetEckertIV( self, cm, fe, fn);
1346 : }
1347 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEckertVI(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
1348 0 : return OSRSetEckertVI( self, cm, fe, fn);
1349 : }
1350 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEquirectangular(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1351 0 : return OSRSetEquirectangular( self, clat, clong,
1352 0 : fe, fn );
1353 : }
1354 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetEquirectangular2(OSRSpatialReferenceShadow *self,double clat,double clong,double pseudostdparallellat,double fe,double fn){
1355 0 : return OSRSetEquirectangular2( self, clat, clong,
1356 : pseudostdparallellat,
1357 0 : fe, fn );
1358 : }
1359 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGaussSchreiberTMercator(OSRSpatialReferenceShadow *self,double clat,double clong,double sc,double fe,double fn){
1360 0 : return OSRSetGaussSchreiberTMercator( self, clat, clong, sc, fe, fn );
1361 : }
1362 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGS(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
1363 0 : return OSRSetGS( self, cm, fe, fn );
1364 : }
1365 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGH(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
1366 0 : return OSRSetGH( self, cm, fe, fn );
1367 : }
1368 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetIGH(OSRSpatialReferenceShadow *self){
1369 0 : return OSRSetIGH( self );
1370 : }
1371 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGEOS(OSRSpatialReferenceShadow *self,double cm,double satelliteheight,double fe,double fn){
1372 0 : return OSRSetGEOS( self, cm, satelliteheight,
1373 0 : fe, fn );
1374 : }
1375 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGnomonic(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1376 0 : return OSRSetGnomonic( self, clat, clong,
1377 0 : fe, fn );
1378 : }
1379 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetHOM(OSRSpatialReferenceShadow *self,double clat,double clong,double azimuth,double recttoskew,double scale,double fe,double fn){
1380 0 : return OSRSetHOM( self, clat, clong, azimuth, recttoskew,
1381 0 : scale, fe, fn );
1382 : }
1383 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetHOM2PNO(OSRSpatialReferenceShadow *self,double clat,double dfLat1,double dfLong1,double dfLat2,double dfLong2,double scale,double fe,double fn){
1384 0 : return OSRSetHOM2PNO( self, clat, dfLat1, dfLong1, dfLat2, dfLong2,
1385 0 : scale, fe, fn );
1386 : }
1387 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetKrovak(OSRSpatialReferenceShadow *self,double clat,double clong,double azimuth,double pseudostdparallellat,double scale,double fe,double fn){
1388 0 : return OSRSetKrovak( self, clat, clong,
1389 : azimuth, pseudostdparallellat,
1390 0 : scale, fe, fn );
1391 : }
1392 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLAEA(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1393 0 : return OSRSetLAEA( self, clat, clong,
1394 0 : fe, fn );
1395 : }
1396 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLCC(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
1397 0 : return OSRSetLCC( self, stdp1, stdp2, clat, clong,
1398 0 : fe, fn );
1399 : }
1400 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLCC1SP(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
1401 0 : return OSRSetLCC1SP( self, clat, clong, scale,
1402 0 : fe, fn );
1403 : }
1404 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLCCB(OSRSpatialReferenceShadow *self,double stdp1,double stdp2,double clat,double clong,double fe,double fn){
1405 0 : return OSRSetLCCB( self, stdp1, stdp2, clat, clong,
1406 0 : fe, fn );
1407 : }
1408 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMC(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1409 0 : return OSRSetMC( self, clat, clong,
1410 0 : fe, fn );
1411 : }
1412 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMercator(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
1413 0 : return OSRSetMercator( self, clat, clong,
1414 0 : scale, fe, fn );
1415 : }
1416 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMercator2SP(OSRSpatialReferenceShadow *self,double stdp1,double clat,double clong,double fe,double fn){
1417 0 : return OSRSetMercator2SP( self, stdp1, clat, clong, fe, fn );
1418 : }
1419 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetMollweide(OSRSpatialReferenceShadow *self,double cm,double fe,double fn){
1420 0 : return OSRSetMollweide( self, cm,
1421 0 : fe, fn );
1422 : }
1423 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetNZMG(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1424 0 : return OSRSetNZMG( self, clat, clong,
1425 0 : fe, fn );
1426 : }
1427 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetOS(OSRSpatialReferenceShadow *self,double dfOriginLat,double dfCMeridian,double scale,double fe,double fn){
1428 0 : return OSRSetOS( self, dfOriginLat, dfCMeridian, scale,
1429 0 : fe, fn );
1430 : }
1431 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetOrthographic(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1432 0 : return OSRSetOrthographic( self, clat, clong,
1433 0 : fe, fn );
1434 : }
1435 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetPolyconic(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1436 0 : return OSRSetPolyconic( self, clat, clong,
1437 0 : fe, fn );
1438 : }
1439 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetPS(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
1440 0 : return OSRSetPS( self, clat, clong, scale,
1441 0 : fe, fn );
1442 : }
1443 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetRobinson(OSRSpatialReferenceShadow *self,double clong,double fe,double fn){
1444 0 : return OSRSetRobinson( self, clong, fe, fn );
1445 : }
1446 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetSinusoidal(OSRSpatialReferenceShadow *self,double clong,double fe,double fn){
1447 0 : return OSRSetSinusoidal( self, clong, fe, fn );
1448 : }
1449 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetStereographic(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
1450 0 : return OSRSetStereographic( self, clat, clong, scale,
1451 0 : fe, fn );
1452 : }
1453 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetSOC(OSRSpatialReferenceShadow *self,double latitudeoforigin,double cm,double fe,double fn){
1454 0 : return OSRSetSOC( self, latitudeoforigin, cm,
1455 0 : fe, fn );
1456 : }
1457 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTM(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
1458 0 : return OSRSetTM( self, clat, clong, scale,
1459 0 : fe, fn );
1460 : }
1461 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTMVariant(OSRSpatialReferenceShadow *self,char const *pszVariantName,double clat,double clong,double scale,double fe,double fn){
1462 0 : return OSRSetTMVariant( self, pszVariantName, clat, clong,
1463 0 : scale, fe, fn );
1464 : }
1465 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTMG(OSRSpatialReferenceShadow *self,double clat,double clong,double fe,double fn){
1466 0 : return OSRSetTMG( self, clat, clong,
1467 0 : fe, fn );
1468 : }
1469 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTMSO(OSRSpatialReferenceShadow *self,double clat,double clong,double scale,double fe,double fn){
1470 0 : return OSRSetTMSO( self, clat, clong, scale,
1471 0 : fe, fn );
1472 : }
1473 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetVDG(OSRSpatialReferenceShadow *self,double clong,double fe,double fn){
1474 0 : return OSRSetVDG( self, clong, fe, fn );
1475 : }
1476 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetVerticalPerspective(OSRSpatialReferenceShadow *self,double topoOriginLat,double topoOriginLon,double topoOriginHeight,double viewPointHeight,double fe,double fn){
1477 0 : return OSRSetVerticalPerspective( self,
1478 0 : topoOriginLat, topoOriginLon, topoOriginHeight, viewPointHeight, fe, fn );
1479 : }
1480 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetWellKnownGeogCS(OSRSpatialReferenceShadow *self,char const *name){
1481 0 : return OSRSetWellKnownGeogCS( self, name );
1482 : }
1483 4 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetFromUserInput__SWIG_0(OSRSpatialReferenceShadow *self,char const *name,char **options=NULL){
1484 4 : return OSRSetFromUserInputEx( self, name, options );
1485 : }
1486 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_CopyGeogCSFrom(OSRSpatialReferenceShadow *self,OSRSpatialReferenceShadow *rhs){
1487 0 : return OSRCopyGeogCSFrom( self, rhs );
1488 : }
1489 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetTOWGS84(OSRSpatialReferenceShadow *self,double p1,double p2,double p3,double p4,double p5,double p6,double p7){
1490 :
1491 :
1492 :
1493 :
1494 :
1495 0 : return OSRSetTOWGS84( self, p1, p2, p3, p4, p5, p6, p7 );
1496 : }
1497 0 : SWIGINTERN bool OSRSpatialReferenceShadow_HasTOWGS84(OSRSpatialReferenceShadow *self){
1498 : double ignored[7];
1499 0 : return OSRGetTOWGS84( self, ignored, 7 ) == OGRERR_NONE;
1500 : }
1501 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_GetTOWGS84(OSRSpatialReferenceShadow *self,double argout[7]){
1502 0 : return OSRGetTOWGS84( self, argout, 7 );
1503 : }
1504 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_AddGuessedTOWGS84(OSRSpatialReferenceShadow *self){
1505 0 : return OSRAddGuessedTOWGS84( self );
1506 : }
1507 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetLocalCS(OSRSpatialReferenceShadow *self,char const *pszName){
1508 0 : return OSRSetLocalCS( self, pszName );
1509 : }
1510 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGeogCS__SWIG_0(OSRSpatialReferenceShadow *self,char const *pszGeogName,char const *pszDatumName,char const *pszEllipsoidName,double dfSemiMajor,double dfInvFlattening,char const *pszPMName="Greenwich",double dfPMOffset=0.0,char const *pszUnits="degree",double dfConvertToRadians=0.0174532925199433){
1511 0 : return OSRSetGeogCS( self, pszGeogName, pszDatumName, pszEllipsoidName,
1512 : dfSemiMajor, dfInvFlattening,
1513 0 : pszPMName, dfPMOffset, pszUnits, dfConvertToRadians );
1514 : }
1515 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetProjCS__SWIG_0(OSRSpatialReferenceShadow *self,char const *name="unnamed"){
1516 0 : return OSRSetProjCS( self, name );
1517 : }
1518 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetGeocCS__SWIG_0(OSRSpatialReferenceShadow *self,char const *name="unnamed"){
1519 0 : return OSRSetGeocCS( self, name );
1520 : }
1521 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetVertCS__SWIG_0(OSRSpatialReferenceShadow *self,char const *VertCSName="unnamed",char const *VertDatumName="unnamed",int VertDatumType=0){
1522 0 : return OSRSetVertCS( self, VertCSName, VertDatumName, VertDatumType );
1523 : }
1524 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_SetCompoundCS(OSRSpatialReferenceShadow *self,char const *name,OSRSpatialReferenceShadow *horizcs,OSRSpatialReferenceShadow *vertcs){
1525 0 : return OSRSetCompoundCS( self, name, horizcs, vertcs );
1526 : }
1527 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromWkt(OSRSpatialReferenceShadow *self,char **ppszInput){
1528 0 : return OSRImportFromWkt( self, ppszInput );
1529 : }
1530 2 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromProj4(OSRSpatialReferenceShadow *self,char *ppszInput){
1531 2 : return OSRImportFromProj4( self, ppszInput );
1532 : }
1533 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromUrl(OSRSpatialReferenceShadow *self,char *url){
1534 0 : return OSRImportFromUrl( self, url );
1535 : }
1536 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromESRI(OSRSpatialReferenceShadow *self,char **ppszInput){
1537 0 : return OSRImportFromESRI( self, ppszInput );
1538 : }
1539 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromEPSG(OSRSpatialReferenceShadow *self,int arg){
1540 0 : return OSRImportFromEPSG(self, arg);
1541 : }
1542 1 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromEPSGA(OSRSpatialReferenceShadow *self,int arg){
1543 1 : return OSRImportFromEPSGA(self, arg);
1544 : }
1545 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromPCI__SWIG_0(OSRSpatialReferenceShadow *self,char const *proj,char const *units="METRE",double argin[17]=0){
1546 0 : return OSRImportFromPCI( self, proj, units, argin );
1547 : }
1548 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromUSGS__SWIG_0(OSRSpatialReferenceShadow *self,long proj_code,long zone=0,double argin[15]=0,long datum_code=0){
1549 0 : return OSRImportFromUSGS( self, proj_code, zone, argin, datum_code );
1550 : }
1551 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromXML(OSRSpatialReferenceShadow *self,char const *xmlString){
1552 0 : return OSRImportFromXML( self, xmlString );
1553 : }
1554 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromERM(OSRSpatialReferenceShadow *self,char const *proj,char const *datum,char const *units){
1555 0 : return OSRImportFromERM( self, proj, datum, units );
1556 : }
1557 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromMICoordSys(OSRSpatialReferenceShadow *self,char const *pszCoordSys){
1558 0 : return OSRImportFromMICoordSys( self, pszCoordSys );
1559 : }
1560 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromISISPVL(OSRSpatialReferenceShadow *self,char const *pszPVLMappingGroup){
1561 0 : return OSRImportFromISISPVL( self, pszPVLMappingGroup );
1562 : }
1563 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromOzi(OSRSpatialReferenceShadow *self,char const *const *papszLines){
1564 0 : return OSRImportFromOzi( self, papszLines );
1565 : }
1566 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ImportFromCF1__SWIG_0(OSRSpatialReferenceShadow *self,char **keyValues,char const *units=NULL){
1567 0 : return OSRImportFromCF1(self, keyValues, units);
1568 : }
1569 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToWkt__SWIG_0(OSRSpatialReferenceShadow *self,char **argout,char **options=NULL){
1570 0 : return OSRExportToWktEx( self, argout, options );
1571 : }
1572 1 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPrettyWkt__SWIG_0(OSRSpatialReferenceShadow *self,char **argout,int simplify=0){
1573 1 : return OSRExportToPrettyWkt( self, argout, simplify );
1574 : }
1575 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPROJJSON__SWIG_0(OSRSpatialReferenceShadow *self,char **argout,char **options=NULL){
1576 0 : return OSRExportToPROJJSON( self, argout, options );
1577 : }
1578 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToProj4(OSRSpatialReferenceShadow *self,char **argout){
1579 0 : return OSRExportToProj4( self, argout );
1580 : }
1581 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToPCI(OSRSpatialReferenceShadow *self,char **proj,char **units,double *params[17]){
1582 0 : return OSRExportToPCI( self, proj, units, params );
1583 : }
1584 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToUSGS(OSRSpatialReferenceShadow *self,long *code,long *zone,double *params[15],long *datum){
1585 0 : return OSRExportToUSGS( self, code, zone, params, datum );
1586 : }
1587 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToERM(OSRSpatialReferenceShadow *self,char **proj,char **datum,char **units){
1588 0 : char szProj[32] = {0}, szDatum[32] = {0}, szUnits[32] = {0};
1589 0 : OGRErr ret = OSRExportToERM( self, szProj, szDatum, szUnits );
1590 0 : *proj = CPLStrdup(szProj);
1591 0 : *datum = CPLStrdup(szDatum);
1592 0 : *units = CPLStrdup(szUnits);
1593 0 : return ret;
1594 : }
1595 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToXML__SWIG_0(OSRSpatialReferenceShadow *self,char **argout,char const *dialect=""){
1596 0 : return OSRExportToXML( self, argout, dialect );
1597 : }
1598 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_ExportToMICoordSys(OSRSpatialReferenceShadow *self,char **argout){
1599 0 : return OSRExportToMICoordSys( self, argout );
1600 : }
1601 0 : SWIGINTERN char **OSRSpatialReferenceShadow_ExportToCF1__SWIG_0(OSRSpatialReferenceShadow *self,char **options=NULL){
1602 0 : char** ret = NULL;
1603 0 : OSRExportToCF1(self, NULL, &ret, NULL, options);
1604 0 : return ret;
1605 : }
1606 :
1607 : /* Convert a char array to a Hashtable */
1608 : static jobject
1609 0 : GetCSLStringAsHashTable(JNIEnv *jenv, char **stringarray, bool bFreeCSL ) {
1610 0 : const jclass hashtable = jenv->FindClass("java/util/Hashtable");
1611 0 : const jmethodID constructor = jenv->GetMethodID(hashtable, "<init>", "()V");
1612 0 : const jmethodID put = jenv->GetMethodID(hashtable, "put",
1613 : "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;");
1614 0 : jobject jHashtable = jenv->NewObject(hashtable, constructor);
1615 0 : if ( stringarray != NULL ) {
1616 0 : while (*stringarray != NULL ) {
1617 : char const *valptr;
1618 : char *keyptr;
1619 0 : const char* pszSep = strchr( *stringarray, '=' );
1620 0 : if ( pszSep != NULL) {
1621 0 : keyptr = CPLStrdup(*stringarray);
1622 0 : keyptr[pszSep - *stringarray] = '\0';
1623 0 : valptr = pszSep + 1;
1624 0 : jstring name = SafeNewStringUTF8(jenv, keyptr);
1625 0 : jstring value = SafeNewStringUTF8(jenv, valptr);
1626 0 : jenv->CallObjectMethod(jHashtable, put, name, value);
1627 0 : jenv->DeleteLocalRef(name);
1628 0 : jenv->DeleteLocalRef(value);
1629 0 : CPLFree(keyptr);
1630 : }
1631 0 : stringarray++;
1632 : }
1633 : }
1634 0 : if( bFreeCSL )
1635 0 : CSLDestroy(stringarray);
1636 0 : return jHashtable;
1637 : }
1638 :
1639 0 : SWIGINTERN retStringAndCPLFree *OSRSpatialReferenceShadow_ExportToCF1Units__SWIG_0(OSRSpatialReferenceShadow *self,char **options=NULL){
1640 0 : char* units = NULL;
1641 0 : OSRExportToCF1(self, NULL, NULL, &units, options);
1642 0 : return units;
1643 : }
1644 5 : SWIGINTERN OSRSpatialReferenceShadow *OSRSpatialReferenceShadow_CloneGeogCS(OSRSpatialReferenceShadow *self){
1645 5 : return (OSRSpatialReferenceShadow*) OSRCloneGeogCS(self);
1646 : }
1647 2 : SWIGINTERN OSRSpatialReferenceShadow *OSRSpatialReferenceShadow_Clone(OSRSpatialReferenceShadow *self){
1648 2 : return (OSRSpatialReferenceShadow*) OSRClone(self);
1649 : }
1650 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_StripVertical(OSRSpatialReferenceShadow *self){
1651 0 : return OSRStripVertical(self);
1652 : }
1653 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_Validate(OSRSpatialReferenceShadow *self){
1654 0 : return OSRValidate(self);
1655 : }
1656 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_MorphToESRI(OSRSpatialReferenceShadow *self){
1657 0 : return OSRMorphToESRI(self);
1658 : }
1659 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_MorphFromESRI(OSRSpatialReferenceShadow *self){
1660 0 : return OSRMorphFromESRI(self);
1661 : }
1662 0 : SWIGINTERN OSRSpatialReferenceShadow *OSRSpatialReferenceShadow_ConvertToOtherProjection__SWIG_0(OSRSpatialReferenceShadow *self,char const *other_projection,char **options=NULL){
1663 0 : return (OSRSpatialReferenceShadow*)OSRConvertToOtherProjection(self, other_projection, options);
1664 : }
1665 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_PromoteTo3D__SWIG_0(OSRSpatialReferenceShadow *self,char const *name=NULL){
1666 0 : return OSRPromoteTo3D(self, name);
1667 : }
1668 0 : SWIGINTERN OGRErr OSRSpatialReferenceShadow_DemoteTo2D__SWIG_0(OSRSpatialReferenceShadow *self,char const *name=NULL){
1669 0 : return OSRDemoteTo2D(self, name);
1670 : }
1671 2 : SWIGINTERN OGRCoordinateTransformationOptions *new_OGRCoordinateTransformationOptions(){
1672 2 : return OCTNewCoordinateTransformationOptions();
1673 : }
1674 0 : SWIGINTERN void delete_OGRCoordinateTransformationOptions(OGRCoordinateTransformationOptions *self){
1675 0 : OCTDestroyCoordinateTransformationOptions( self );
1676 0 : }
1677 0 : SWIGINTERN bool OGRCoordinateTransformationOptions_SetAreaOfInterest(OGRCoordinateTransformationOptions *self,double westLongitudeDeg,double southLatitudeDeg,double eastLongitudeDeg,double northLatitudeDeg){
1678 0 : return OCTCoordinateTransformationOptionsSetAreaOfInterest(self,
1679 : westLongitudeDeg, southLatitudeDeg,
1680 0 : eastLongitudeDeg, northLatitudeDeg);
1681 : }
1682 0 : SWIGINTERN bool OGRCoordinateTransformationOptions_SetOperation__SWIG_0(OGRCoordinateTransformationOptions *self,char const *operation,bool inverseCT=false){
1683 0 : return OCTCoordinateTransformationOptionsSetOperation(self, operation, inverseCT);
1684 : }
1685 1 : SWIGINTERN bool OGRCoordinateTransformationOptions_SetDesiredAccuracy(OGRCoordinateTransformationOptions *self,double accuracy){
1686 1 : return OCTCoordinateTransformationOptionsSetDesiredAccuracy(self, accuracy);
1687 : }
1688 1 : SWIGINTERN bool OGRCoordinateTransformationOptions_SetBallparkAllowed(OGRCoordinateTransformationOptions *self,bool allowBallpark){
1689 1 : return OCTCoordinateTransformationOptionsSetBallparkAllowed(self, allowBallpark);
1690 : }
1691 0 : SWIGINTERN bool OGRCoordinateTransformationOptions_SetOnlyBest(OGRCoordinateTransformationOptions *self,bool onlyBest){
1692 0 : return OCTCoordinateTransformationOptionsSetOnlyBest(self, onlyBest);
1693 : }
1694 0 : SWIGINTERN OSRCoordinateTransformationShadow *new_OSRCoordinateTransformationShadow__SWIG_0(OSRSpatialReferenceShadow *src,OSRSpatialReferenceShadow *dst){
1695 0 : return (OSRCoordinateTransformationShadow*) OCTNewCoordinateTransformation(src, dst);
1696 : }
1697 0 : SWIGINTERN OSRCoordinateTransformationShadow *new_OSRCoordinateTransformationShadow__SWIG_1(OSRSpatialReferenceShadow *src,OSRSpatialReferenceShadow *dst,OGRCoordinateTransformationOptions *options){
1698 : return (OSRCoordinateTransformationShadow*)
1699 0 : (options ? OCTNewCoordinateTransformationEx( src, dst, options ) : OCTNewCoordinateTransformation(src, dst));
1700 : }
1701 5 : SWIGINTERN void delete_OSRCoordinateTransformationShadow(OSRCoordinateTransformationShadow *self){
1702 5 : OCTDestroyCoordinateTransformation( self );
1703 5 : }
1704 0 : SWIGINTERN OSRCoordinateTransformationShadow *OSRCoordinateTransformationShadow_GetInverse(OSRCoordinateTransformationShadow *self){
1705 0 : return (OSRCoordinateTransformationShadow*) OCTGetInverse(self);
1706 : }
1707 1 : SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_0(OSRCoordinateTransformationShadow *self,double inout[3]){
1708 :
1709 1 : if (self == NULL)
1710 0 : return;
1711 1 : OCTTransform( self, 1, &inout[0], &inout[1], &inout[2] );
1712 : }
1713 6 : SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_2(OSRCoordinateTransformationShadow *self,double argout[3],double x,double y,double z=0.0){
1714 6 : if (self == NULL)
1715 0 : return;
1716 6 : argout[0] = x;
1717 6 : argout[1] = y;
1718 6 : argout[2] = z;
1719 6 : OCTTransform( self, 1, &argout[0], &argout[1], &argout[2] );
1720 : }
1721 0 : SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoint__SWIG_4(OSRCoordinateTransformationShadow *self,double argout[4],double x,double y,double z,double t){
1722 0 : if (self == NULL)
1723 0 : return;
1724 0 : argout[0] = x;
1725 0 : argout[1] = y;
1726 0 : argout[2] = z;
1727 0 : argout[3] = t;
1728 0 : OCTTransform4D( self, 1, &argout[0], &argout[1], &argout[2], &argout[3], NULL );
1729 : }
1730 0 : SWIGINTERN int OSRCoordinateTransformationShadow_TransformPointWithErrorCode(OSRCoordinateTransformationShadow *self,double argout[4],double x,double y,double z,double t){
1731 0 : if (self == NULL)
1732 0 : return -1;
1733 0 : argout[0] = x;
1734 0 : argout[1] = y;
1735 0 : argout[2] = z;
1736 0 : argout[3] = t;
1737 0 : int errorCode = 0;
1738 0 : OCTTransform4DWithErrorCodes( self, 1, &argout[0], &argout[1], &argout[2], &argout[3], &errorCode );
1739 0 : return errorCode;
1740 : }
1741 0 : SWIGINTERN void OSRCoordinateTransformationShadow_TransformPoints(OSRCoordinateTransformationShadow *self,int nCount,double *x,double *y,double *z){
1742 0 : if (self == NULL)
1743 0 : return;
1744 0 : OCTTransform( self, nCount, x, y, z );
1745 : }
1746 0 : SWIGINTERN int *OSRCoordinateTransformationShadow_TransformPointsWithErrorCodes(OSRCoordinateTransformationShadow *self,int nCount,double *x,double *y,double *z,double *t,int *pnCountOut,int **outErrorCodes){
1747 0 : *pnCountOut = 0;
1748 0 : *outErrorCodes = NULL;
1749 0 : if (self == NULL)
1750 0 : return NULL;
1751 0 : *pnCountOut = nCount;
1752 0 : *outErrorCodes = (int*)CPLMalloc(sizeof(int) * nCount);
1753 0 : OCTTransform4DWithErrorCodes( self, nCount, x, y, z, t, *outErrorCodes );
1754 0 : return NULL;
1755 : }
1756 0 : SWIGINTERN void OSRCoordinateTransformationShadow_TransformBounds(OSRCoordinateTransformationShadow *self,double argout[4],double minx,double miny,double maxx,double maxy,int densify_pts){
1757 0 : argout[0] = HUGE_VAL;
1758 0 : argout[1] = HUGE_VAL;
1759 0 : argout[2] = HUGE_VAL;
1760 0 : argout[3] = HUGE_VAL;
1761 0 : if (self == NULL)
1762 0 : return;
1763 0 : OCTTransformBounds(
1764 : self,
1765 : minx, miny, maxx, maxy,
1766 : &argout[0], &argout[1], &argout[2], &argout[3],
1767 : densify_pts
1768 : );
1769 : }
1770 :
1771 8 : OSRCoordinateTransformationShadow *CreateCoordinateTransformation( OSRSpatialReferenceShadow *src, OSRSpatialReferenceShadow *dst, OGRCoordinateTransformationOptions* options = NULL ) {
1772 : return (OSRCoordinateTransformationShadow*)
1773 8 : (options ? OCTNewCoordinateTransformationEx( src, dst, options ) : OCTNewCoordinateTransformation(src, dst));
1774 : }
1775 :
1776 :
1777 0 : char** GetAuthorityListFromDatabase()
1778 : {
1779 0 : return OSRGetAuthorityListFromDatabase();
1780 : }
1781 :
1782 :
1783 0 : void SetPROJSearchPath( const char *utf8_string )
1784 : {
1785 0 : const char* const apszPaths[2] = { utf8_string, NULL };
1786 0 : OSRSetPROJSearchPaths(apszPaths);
1787 0 : }
1788 :
1789 :
1790 0 : void SetPROJSearchPaths( char** paths )
1791 : {
1792 0 : OSRSetPROJSearchPaths(paths);
1793 0 : }
1794 :
1795 :
1796 0 : char** GetPROJSearchPaths()
1797 : {
1798 0 : return OSRGetPROJSearchPaths();
1799 : }
1800 :
1801 :
1802 2 : int GetPROJVersionMajor()
1803 : {
1804 : int num;
1805 2 : OSRGetPROJVersion(&num, NULL, NULL);
1806 2 : return num;
1807 : }
1808 :
1809 0 : int GetPROJVersionMinor()
1810 : {
1811 : int num;
1812 0 : OSRGetPROJVersion(NULL, &num, NULL);
1813 0 : return num;
1814 : }
1815 :
1816 0 : int GetPROJVersionMicro()
1817 : {
1818 : int num;
1819 0 : OSRGetPROJVersion(NULL, NULL, &num);
1820 0 : return num;
1821 : }
1822 :
1823 0 : bool GetPROJEnableNetwork()
1824 : {
1825 0 : return OSRGetPROJEnableNetwork();
1826 : }
1827 :
1828 0 : void SetPROJEnableNetwork(bool enabled)
1829 : {
1830 0 : OSRSetPROJEnableNetwork(enabled);
1831 0 : }
1832 :
1833 :
1834 0 : void SetPROJAuxDbPath( const char *utf8_string )
1835 : {
1836 0 : const char* const apszPaths[2] = { utf8_string, NULL };
1837 0 : OSRSetPROJAuxDbPaths(apszPaths);
1838 0 : }
1839 :
1840 :
1841 0 : void SetPROJAuxDbPaths( char** paths )
1842 : {
1843 0 : OSRSetPROJAuxDbPaths(paths);
1844 0 : }
1845 :
1846 :
1847 0 : char** GetPROJAuxDbPaths()
1848 : {
1849 0 : return OSRGetPROJAuxDbPaths();
1850 : }
1851 :
1852 :
1853 : #ifdef __cplusplus
1854 : extern "C" {
1855 : #endif
1856 :
1857 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_UseExceptions(JNIEnv *jenv, jclass jcls) {
1858 : (void)jenv;
1859 : (void)jcls;
1860 0 : UseExceptions();
1861 0 : }
1862 :
1863 :
1864 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_DontUseExceptions(JNIEnv *jenv, jclass jcls) {
1865 : (void)jenv;
1866 : (void)jcls;
1867 0 : DontUseExceptions();
1868 0 : }
1869 :
1870 :
1871 2 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_GetUseExceptions(JNIEnv *jenv, jclass jcls) {
1872 2 : jboolean jresult = 0 ;
1873 : bool result;
1874 :
1875 : (void)jenv;
1876 : (void)jcls;
1877 2 : result = (bool)GetUseExceptions();
1878 2 : jresult = (jboolean)result;
1879 2 : return jresult;
1880 : }
1881 :
1882 :
1883 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_GetWellKnownGeogCSAsWKT_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) {
1884 0 : jstring jresult = 0 ;
1885 0 : char *arg1 = (char *) 0 ;
1886 0 : retStringAndCPLFree *result = 0 ;
1887 :
1888 : (void)jenv;
1889 : (void)jcls;
1890 0 : arg1 = 0;
1891 0 : if (jarg1) {
1892 0 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
1893 0 : if (!arg1) return 0;
1894 : }
1895 0 : result = (retStringAndCPLFree *)GetWellKnownGeogCSAsWKT((char const *)arg1);
1896 : {
1897 : /* %typemap(out) (retStringAndCPLFree*) */
1898 0 : if(result)
1899 : {
1900 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
1901 0 : CPLFree(result);
1902 : }
1903 : }
1904 0 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
1905 0 : return jresult;
1906 : }
1907 :
1908 :
1909 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_GetUserInputAsWKT_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) {
1910 0 : jstring jresult = 0 ;
1911 0 : char *arg1 = (char *) 0 ;
1912 0 : retStringAndCPLFree *result = 0 ;
1913 :
1914 : (void)jenv;
1915 : (void)jcls;
1916 0 : arg1 = 0;
1917 0 : if (jarg1) {
1918 0 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
1919 0 : if (!arg1) return 0;
1920 : }
1921 0 : result = (retStringAndCPLFree *)GetUserInputAsWKT((char const *)arg1);
1922 : {
1923 : /* %typemap(out) (retStringAndCPLFree*) */
1924 0 : if(result)
1925 : {
1926 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
1927 0 : CPLFree(result);
1928 : }
1929 : }
1930 0 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
1931 0 : return jresult;
1932 : }
1933 :
1934 :
1935 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_GetWellKnownGeogCSAsWKT_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1, jobjectArray jarg2) {
1936 0 : jint jresult = 0 ;
1937 0 : char *arg1 = (char *) 0 ;
1938 0 : char **arg2 = (char **) 0 ;
1939 0 : char *argout2 = 0 ;
1940 : OGRErr result;
1941 :
1942 : (void)jenv;
1943 : (void)jcls;
1944 0 : arg1 = 0;
1945 0 : if (jarg1) {
1946 0 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
1947 0 : if (!arg1) return 0;
1948 : }
1949 : {
1950 : /* %typemap(in) (char **argout2) */
1951 0 : arg2 = &argout2;
1952 : }
1953 : {
1954 0 : if (!arg1) {
1955 : {
1956 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
1957 : };
1958 : }
1959 : }
1960 0 : result = (OGRErr)GetWellKnownGeogCSAsWKT((char const *)arg1,arg2);
1961 : {
1962 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
1963 0 : if (result != 0 && bUseExceptions) {
1964 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
1965 : OGRErrMessages(result));
1966 0 : return 0;
1967 : }
1968 0 : jresult = (jint)result;
1969 : }
1970 : {
1971 : /* %typemap(argout) (char **argout) */
1972 : jstring temp_string;
1973 :
1974 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
1975 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
1976 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
1977 0 : jenv->DeleteLocalRef(temp_string);
1978 : }
1979 : }
1980 0 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
1981 : {
1982 : /* %typemap(freearg) (char **argout) */
1983 0 : if(arg2) {
1984 0 : CPLFree((void *) argout2);
1985 : }
1986 : }
1987 : {
1988 : /* %typemap(ret) OGRErr */
1989 : }
1990 0 : return jresult;
1991 : }
1992 :
1993 :
1994 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_GetUserInputAsWKT_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1, jobjectArray jarg2) {
1995 0 : jint jresult = 0 ;
1996 0 : char *arg1 = (char *) 0 ;
1997 0 : char **arg2 = (char **) 0 ;
1998 0 : char *argout2 = 0 ;
1999 : OGRErr result;
2000 :
2001 : (void)jenv;
2002 : (void)jcls;
2003 0 : arg1 = 0;
2004 0 : if (jarg1) {
2005 0 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
2006 0 : if (!arg1) return 0;
2007 : }
2008 : {
2009 : /* %typemap(in) (char **argout2) */
2010 0 : arg2 = &argout2;
2011 : }
2012 : {
2013 0 : if (!arg1) {
2014 : {
2015 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2016 : };
2017 : }
2018 : }
2019 0 : result = (OGRErr)GetUserInputAsWKT((char const *)arg1,arg2);
2020 : {
2021 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
2022 0 : if (result != 0 && bUseExceptions) {
2023 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
2024 : OGRErrMessages(result));
2025 0 : return 0;
2026 : }
2027 0 : jresult = (jint)result;
2028 : }
2029 : {
2030 : /* %typemap(argout) (char **argout) */
2031 : jstring temp_string;
2032 :
2033 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
2034 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
2035 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
2036 0 : jenv->DeleteLocalRef(temp_string);
2037 : }
2038 : }
2039 0 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
2040 : {
2041 : /* %typemap(freearg) (char **argout) */
2042 0 : if(arg2) {
2043 0 : CPLFree((void *) argout2);
2044 : }
2045 : }
2046 : {
2047 : /* %typemap(ret) OGRErr */
2048 : }
2049 0 : return jresult;
2050 : }
2051 :
2052 :
2053 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_AreaOfUse_1west_1lon_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2054 0 : jdouble jresult = 0 ;
2055 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2056 : double result;
2057 :
2058 : (void)jenv;
2059 : (void)jcls;
2060 : (void)jarg1_;
2061 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2062 0 : result = (double)OSRAreaOfUse_west_lon_degree_get(arg1);
2063 0 : jresult = (jdouble)result;
2064 0 : return jresult;
2065 : }
2066 :
2067 :
2068 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_AreaOfUse_1south_1lat_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2069 0 : jdouble jresult = 0 ;
2070 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2071 : double result;
2072 :
2073 : (void)jenv;
2074 : (void)jcls;
2075 : (void)jarg1_;
2076 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2077 0 : result = (double)OSRAreaOfUse_south_lat_degree_get(arg1);
2078 0 : jresult = (jdouble)result;
2079 0 : return jresult;
2080 : }
2081 :
2082 :
2083 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_AreaOfUse_1east_1lon_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2084 0 : jdouble jresult = 0 ;
2085 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2086 : double result;
2087 :
2088 : (void)jenv;
2089 : (void)jcls;
2090 : (void)jarg1_;
2091 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2092 0 : result = (double)OSRAreaOfUse_east_lon_degree_get(arg1);
2093 0 : jresult = (jdouble)result;
2094 0 : return jresult;
2095 : }
2096 :
2097 :
2098 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_AreaOfUse_1north_1lat_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2099 0 : jdouble jresult = 0 ;
2100 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2101 : double result;
2102 :
2103 : (void)jenv;
2104 : (void)jcls;
2105 : (void)jarg1_;
2106 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2107 0 : result = (double)OSRAreaOfUse_north_lat_degree_get(arg1);
2108 0 : jresult = (jdouble)result;
2109 0 : return jresult;
2110 : }
2111 :
2112 :
2113 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_AreaOfUse_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2114 0 : jstring jresult = 0 ;
2115 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2116 0 : char *result = 0 ;
2117 :
2118 : (void)jenv;
2119 : (void)jcls;
2120 : (void)jarg1_;
2121 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2122 0 : result = (char *)OSRAreaOfUse_name_get(arg1);
2123 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2124 0 : return jresult;
2125 : }
2126 :
2127 :
2128 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_new_1AreaOfUse(JNIEnv *jenv, jclass jcls, jdouble jarg1, jdouble jarg2, jdouble jarg3, jdouble jarg4, jstring jarg5) {
2129 0 : jlong jresult = 0 ;
2130 : double arg1 ;
2131 : double arg2 ;
2132 : double arg3 ;
2133 : double arg4 ;
2134 0 : char *arg5 = (char *) 0 ;
2135 0 : OSRAreaOfUse *result = 0 ;
2136 :
2137 : (void)jenv;
2138 : (void)jcls;
2139 0 : arg1 = (double)jarg1;
2140 0 : arg2 = (double)jarg2;
2141 0 : arg3 = (double)jarg3;
2142 0 : arg4 = (double)jarg4;
2143 0 : arg5 = 0;
2144 0 : if (jarg5) {
2145 0 : arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0);
2146 0 : if (!arg5) return 0;
2147 : }
2148 0 : result = (OSRAreaOfUse *)new_OSRAreaOfUse(arg1,arg2,arg3,arg4,arg5);
2149 0 : *(OSRAreaOfUse **)&jresult = result;
2150 0 : if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5);
2151 0 : return jresult;
2152 : }
2153 :
2154 :
2155 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_delete_1AreaOfUse(JNIEnv *jenv, jclass jcls, jlong jarg1) {
2156 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2157 :
2158 : (void)jenv;
2159 : (void)jcls;
2160 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2161 0 : delete_OSRAreaOfUse(arg1);
2162 0 : }
2163 :
2164 :
2165 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_OSRAreaOfUse_1west_1lon_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2166 0 : jdouble jresult = 0 ;
2167 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2168 : double result;
2169 :
2170 : (void)jenv;
2171 : (void)jcls;
2172 : (void)jarg1_;
2173 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2174 : {
2175 0 : if (!arg1) {
2176 : {
2177 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2178 : };
2179 : }
2180 : }
2181 0 : result = (double)OSRAreaOfUse_west_lon_degree_get(arg1);
2182 0 : jresult = (jdouble)result;
2183 0 : return jresult;
2184 : }
2185 :
2186 :
2187 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_OSRAreaOfUse_1south_1lat_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2188 0 : jdouble jresult = 0 ;
2189 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2190 : double result;
2191 :
2192 : (void)jenv;
2193 : (void)jcls;
2194 : (void)jarg1_;
2195 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2196 : {
2197 0 : if (!arg1) {
2198 : {
2199 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2200 : };
2201 : }
2202 : }
2203 0 : result = (double)OSRAreaOfUse_south_lat_degree_get(arg1);
2204 0 : jresult = (jdouble)result;
2205 0 : return jresult;
2206 : }
2207 :
2208 :
2209 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_OSRAreaOfUse_1east_1lon_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2210 0 : jdouble jresult = 0 ;
2211 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2212 : double result;
2213 :
2214 : (void)jenv;
2215 : (void)jcls;
2216 : (void)jarg1_;
2217 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2218 : {
2219 0 : if (!arg1) {
2220 : {
2221 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2222 : };
2223 : }
2224 : }
2225 0 : result = (double)OSRAreaOfUse_east_lon_degree_get(arg1);
2226 0 : jresult = (jdouble)result;
2227 0 : return jresult;
2228 : }
2229 :
2230 :
2231 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_OSRAreaOfUse_1north_1lat_1degree_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2232 0 : jdouble jresult = 0 ;
2233 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2234 : double result;
2235 :
2236 : (void)jenv;
2237 : (void)jcls;
2238 : (void)jarg1_;
2239 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2240 : {
2241 0 : if (!arg1) {
2242 : {
2243 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2244 : };
2245 : }
2246 : }
2247 0 : result = (double)OSRAreaOfUse_north_lat_degree_get(arg1);
2248 0 : jresult = (jdouble)result;
2249 0 : return jresult;
2250 : }
2251 :
2252 :
2253 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_OSRAreaOfUse_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2254 0 : jstring jresult = 0 ;
2255 0 : OSRAreaOfUse *arg1 = (OSRAreaOfUse *) 0 ;
2256 0 : char *result = 0 ;
2257 :
2258 : (void)jenv;
2259 : (void)jcls;
2260 : (void)jarg1_;
2261 0 : arg1 = *(OSRAreaOfUse **)&jarg1;
2262 : {
2263 0 : if (!arg1) {
2264 : {
2265 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2266 : };
2267 : }
2268 : }
2269 0 : result = (char *)OSRAreaOfUse_name_get(arg1);
2270 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2271 0 : return jresult;
2272 : }
2273 :
2274 :
2275 14 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_new_1SpatialReference_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) {
2276 14 : jlong jresult = 0 ;
2277 14 : char *arg1 = (char *) 0 ;
2278 14 : OSRSpatialReferenceShadow *result = 0 ;
2279 :
2280 : (void)jenv;
2281 : (void)jcls;
2282 14 : arg1 = 0;
2283 14 : if (jarg1) {
2284 13 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
2285 13 : if (!arg1) return 0;
2286 : }
2287 14 : result = (OSRSpatialReferenceShadow *)new_OSRSpatialReferenceShadow__SWIG_0((char const *)arg1);
2288 14 : *(OSRSpatialReferenceShadow **)&jresult = result;
2289 14 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
2290 14 : return jresult;
2291 : }
2292 :
2293 :
2294 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_new_1SpatialReference_1_1SWIG_11(JNIEnv *jenv, jclass jcls) {
2295 0 : jlong jresult = 0 ;
2296 0 : OSRSpatialReferenceShadow *result = 0 ;
2297 :
2298 : (void)jenv;
2299 : (void)jcls;
2300 0 : result = (OSRSpatialReferenceShadow *)new_OSRSpatialReferenceShadow__SWIG_0();
2301 0 : *(OSRSpatialReferenceShadow **)&jresult = result;
2302 0 : return jresult;
2303 : }
2304 :
2305 :
2306 6 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_delete_1SpatialReference(JNIEnv *jenv, jclass jcls, jlong jarg1) {
2307 6 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2308 :
2309 : (void)jenv;
2310 : (void)jcls;
2311 6 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2312 6 : delete_OSRSpatialReferenceShadow(arg1);
2313 6 : }
2314 :
2315 :
2316 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1_1_1str_1_1(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2317 0 : jstring jresult = 0 ;
2318 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2319 0 : retStringAndCPLFree *result = 0 ;
2320 :
2321 : (void)jenv;
2322 : (void)jcls;
2323 : (void)jarg1_;
2324 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2325 0 : result = (retStringAndCPLFree *)OSRSpatialReferenceShadow___str__(arg1);
2326 : {
2327 : /* %typemap(out) (retStringAndCPLFree*) */
2328 0 : if(result)
2329 : {
2330 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2331 0 : CPLFree(result);
2332 : }
2333 : }
2334 0 : return jresult;
2335 : }
2336 :
2337 :
2338 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2339 0 : jstring jresult = 0 ;
2340 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2341 0 : char *result = 0 ;
2342 :
2343 : (void)jenv;
2344 : (void)jcls;
2345 : (void)jarg1_;
2346 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2347 0 : result = (char *)OSRSpatialReferenceShadow_GetName(arg1);
2348 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2349 0 : return jresult;
2350 : }
2351 :
2352 :
2353 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetCelestialBodyName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2354 0 : jstring jresult = 0 ;
2355 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2356 0 : char *result = 0 ;
2357 :
2358 : (void)jenv;
2359 : (void)jcls;
2360 : (void)jarg1_;
2361 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2362 0 : result = (char *)OSRSpatialReferenceShadow_GetCelestialBodyName(arg1);
2363 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2364 0 : return jresult;
2365 : }
2366 :
2367 :
2368 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsSame_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jobject jarg3) {
2369 0 : jint jresult = 0 ;
2370 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2371 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
2372 0 : char **arg3 = (char **) 0 ;
2373 : int result;
2374 :
2375 : (void)jenv;
2376 : (void)jcls;
2377 : (void)jarg1_;
2378 : (void)jarg2_;
2379 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2380 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
2381 : {
2382 : /* %typemap(in) char **options */
2383 0 : arg3 = NULL;
2384 0 : if(jarg3 != 0) {
2385 0 : const jclass vector = jenv->FindClass("java/util/Vector");
2386 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
2387 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
2388 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
2389 : "()Ljava/util/Enumeration;");
2390 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
2391 : "hasMoreElements", "()Z");
2392 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
2393 : "nextElement", "()Ljava/lang/Object;");
2394 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
2395 0 : hasMoreElements == NULL || getNextElement == NULL) {
2396 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
2397 0 : return 0;
2398 : }
2399 0 : for (jobject keys = jenv->CallObjectMethod(jarg3, elements);
2400 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
2401 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
2402 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
2403 : {
2404 0 : CSLDestroy(arg3);
2405 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
2406 0 : return 0;
2407 : }
2408 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
2409 0 : arg3 = CSLAddString(arg3, valptr);
2410 0 : jenv->ReleaseStringUTFChars(value, valptr);
2411 : }
2412 : }
2413 : }
2414 : {
2415 0 : if (!arg2) {
2416 : {
2417 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2418 : };
2419 : }
2420 : }
2421 0 : result = (int)OSRSpatialReferenceShadow_IsSame__SWIG_0(arg1,arg2,arg3);
2422 0 : jresult = (jint)result;
2423 : {
2424 : /* %typemap(freearg) char **options */
2425 0 : CSLDestroy( arg3 );
2426 : }
2427 0 : return jresult;
2428 : }
2429 :
2430 :
2431 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsSame_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
2432 0 : jint jresult = 0 ;
2433 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2434 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
2435 : int result;
2436 :
2437 : (void)jenv;
2438 : (void)jcls;
2439 : (void)jarg1_;
2440 : (void)jarg2_;
2441 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2442 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
2443 : {
2444 0 : if (!arg2) {
2445 : {
2446 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2447 : };
2448 : }
2449 : }
2450 0 : result = (int)OSRSpatialReferenceShadow_IsSame__SWIG_0(arg1,arg2);
2451 0 : jresult = (jint)result;
2452 0 : return jresult;
2453 : }
2454 :
2455 :
2456 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsSameGeogCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
2457 0 : jint jresult = 0 ;
2458 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2459 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
2460 : int result;
2461 :
2462 : (void)jenv;
2463 : (void)jcls;
2464 : (void)jarg1_;
2465 : (void)jarg2_;
2466 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2467 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
2468 : {
2469 0 : if (!arg2) {
2470 : {
2471 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2472 : };
2473 : }
2474 : }
2475 0 : result = (int)OSRSpatialReferenceShadow_IsSameGeogCS(arg1,arg2);
2476 0 : jresult = (jint)result;
2477 0 : return jresult;
2478 : }
2479 :
2480 :
2481 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsSameVertCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
2482 0 : jint jresult = 0 ;
2483 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2484 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
2485 : int result;
2486 :
2487 : (void)jenv;
2488 : (void)jcls;
2489 : (void)jarg1_;
2490 : (void)jarg2_;
2491 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2492 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
2493 : {
2494 0 : if (!arg2) {
2495 : {
2496 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2497 : };
2498 : }
2499 : }
2500 0 : result = (int)OSRSpatialReferenceShadow_IsSameVertCS(arg1,arg2);
2501 0 : jresult = (jint)result;
2502 0 : return jresult;
2503 : }
2504 :
2505 :
2506 2 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsGeographic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2507 2 : jint jresult = 0 ;
2508 2 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2509 : int result;
2510 :
2511 : (void)jenv;
2512 : (void)jcls;
2513 : (void)jarg1_;
2514 2 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2515 2 : result = (int)OSRSpatialReferenceShadow_IsGeographic(arg1);
2516 2 : jresult = (jint)result;
2517 2 : return jresult;
2518 : }
2519 :
2520 :
2521 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsDerivedGeographic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2522 0 : jint jresult = 0 ;
2523 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2524 : int result;
2525 :
2526 : (void)jenv;
2527 : (void)jcls;
2528 : (void)jarg1_;
2529 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2530 0 : result = (int)OSRSpatialReferenceShadow_IsDerivedGeographic(arg1);
2531 0 : jresult = (jint)result;
2532 0 : return jresult;
2533 : }
2534 :
2535 :
2536 2 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsProjected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2537 2 : jint jresult = 0 ;
2538 2 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2539 : int result;
2540 :
2541 : (void)jenv;
2542 : (void)jcls;
2543 : (void)jarg1_;
2544 2 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2545 2 : result = (int)OSRSpatialReferenceShadow_IsProjected(arg1);
2546 2 : jresult = (jint)result;
2547 2 : return jresult;
2548 : }
2549 :
2550 :
2551 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsDerivedProjected(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2552 0 : jint jresult = 0 ;
2553 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2554 : int result;
2555 :
2556 : (void)jenv;
2557 : (void)jcls;
2558 : (void)jarg1_;
2559 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2560 0 : result = (int)OSRSpatialReferenceShadow_IsDerivedProjected(arg1);
2561 0 : jresult = (jint)result;
2562 0 : return jresult;
2563 : }
2564 :
2565 :
2566 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsCompound(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2567 0 : jint jresult = 0 ;
2568 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2569 : int result;
2570 :
2571 : (void)jenv;
2572 : (void)jcls;
2573 : (void)jarg1_;
2574 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2575 0 : result = (int)OSRSpatialReferenceShadow_IsCompound(arg1);
2576 0 : jresult = (jint)result;
2577 0 : return jresult;
2578 : }
2579 :
2580 :
2581 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsGeocentric(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2582 0 : jint jresult = 0 ;
2583 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2584 : int result;
2585 :
2586 : (void)jenv;
2587 : (void)jcls;
2588 : (void)jarg1_;
2589 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2590 0 : result = (int)OSRSpatialReferenceShadow_IsGeocentric(arg1);
2591 0 : jresult = (jint)result;
2592 0 : return jresult;
2593 : }
2594 :
2595 :
2596 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsLocal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2597 0 : jint jresult = 0 ;
2598 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2599 : int result;
2600 :
2601 : (void)jenv;
2602 : (void)jcls;
2603 : (void)jarg1_;
2604 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2605 0 : result = (int)OSRSpatialReferenceShadow_IsLocal(arg1);
2606 0 : jresult = (jint)result;
2607 0 : return jresult;
2608 : }
2609 :
2610 :
2611 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsVertical(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2612 0 : jint jresult = 0 ;
2613 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2614 : int result;
2615 :
2616 : (void)jenv;
2617 : (void)jcls;
2618 : (void)jarg1_;
2619 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2620 0 : result = (int)OSRSpatialReferenceShadow_IsVertical(arg1);
2621 0 : jresult = (jint)result;
2622 0 : return jresult;
2623 : }
2624 :
2625 :
2626 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1IsDynamic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2627 0 : jboolean jresult = 0 ;
2628 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2629 : bool result;
2630 :
2631 : (void)jenv;
2632 : (void)jcls;
2633 : (void)jarg1_;
2634 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2635 0 : result = (bool)OSRSpatialReferenceShadow_IsDynamic(arg1);
2636 0 : jresult = (jboolean)result;
2637 0 : return jresult;
2638 : }
2639 :
2640 :
2641 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1HasPointMotionOperation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2642 0 : jboolean jresult = 0 ;
2643 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2644 : bool result;
2645 :
2646 : (void)jenv;
2647 : (void)jcls;
2648 : (void)jarg1_;
2649 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2650 0 : result = (bool)OSRSpatialReferenceShadow_HasPointMotionOperation(arg1);
2651 0 : jresult = (jboolean)result;
2652 0 : return jresult;
2653 : }
2654 :
2655 :
2656 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetCoordinateEpoch(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2657 0 : jdouble jresult = 0 ;
2658 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2659 : double result;
2660 :
2661 : (void)jenv;
2662 : (void)jcls;
2663 : (void)jarg1_;
2664 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2665 0 : result = (double)OSRSpatialReferenceShadow_GetCoordinateEpoch(arg1);
2666 0 : jresult = (jdouble)result;
2667 0 : return jresult;
2668 : }
2669 :
2670 :
2671 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetCoordinateEpoch(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) {
2672 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2673 : double arg2 ;
2674 :
2675 : (void)jenv;
2676 : (void)jcls;
2677 : (void)jarg1_;
2678 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2679 0 : arg2 = (double)jarg2;
2680 0 : OSRSpatialReferenceShadow_SetCoordinateEpoch(arg1,arg2);
2681 0 : }
2682 :
2683 :
2684 1 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1EPSGTreatsAsLatLong(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2685 1 : jint jresult = 0 ;
2686 1 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2687 : int result;
2688 :
2689 : (void)jenv;
2690 : (void)jcls;
2691 : (void)jarg1_;
2692 1 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2693 1 : result = (int)OSRSpatialReferenceShadow_EPSGTreatsAsLatLong(arg1);
2694 1 : jresult = (jint)result;
2695 1 : return jresult;
2696 : }
2697 :
2698 :
2699 1 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1EPSGTreatsAsNorthingEasting(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2700 1 : jint jresult = 0 ;
2701 1 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2702 : int result;
2703 :
2704 : (void)jenv;
2705 : (void)jcls;
2706 : (void)jarg1_;
2707 1 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2708 1 : result = (int)OSRSpatialReferenceShadow_EPSGTreatsAsNorthingEasting(arg1);
2709 1 : jresult = (jint)result;
2710 1 : return jresult;
2711 : }
2712 :
2713 :
2714 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetAuthority(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jint jarg4) {
2715 0 : jint jresult = 0 ;
2716 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2717 0 : char *arg2 = (char *) 0 ;
2718 0 : char *arg3 = (char *) 0 ;
2719 : int arg4 ;
2720 : OGRErr result;
2721 :
2722 : (void)jenv;
2723 : (void)jcls;
2724 : (void)jarg1_;
2725 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2726 0 : arg2 = 0;
2727 0 : if (jarg2) {
2728 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2729 0 : if (!arg2) return 0;
2730 : }
2731 0 : arg3 = 0;
2732 0 : if (jarg3) {
2733 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
2734 0 : if (!arg3) return 0;
2735 : }
2736 0 : arg4 = (int)jarg4;
2737 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetAuthority(arg1,(char const *)arg2,(char const *)arg3,arg4);
2738 : {
2739 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
2740 0 : if (result != 0 && bUseExceptions) {
2741 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
2742 : OGRErrMessages(result));
2743 0 : return 0;
2744 : }
2745 0 : jresult = (jint)result;
2746 : }
2747 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
2748 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
2749 : {
2750 : /* %typemap(ret) OGRErr */
2751 : }
2752 0 : return jresult;
2753 : }
2754 :
2755 :
2756 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAttrValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
2757 0 : jstring jresult = 0 ;
2758 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2759 0 : char *arg2 = (char *) 0 ;
2760 : int arg3 ;
2761 0 : char *result = 0 ;
2762 :
2763 : (void)jenv;
2764 : (void)jcls;
2765 : (void)jarg1_;
2766 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2767 0 : arg2 = 0;
2768 0 : if (jarg2) {
2769 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2770 0 : if (!arg2) return 0;
2771 : }
2772 0 : arg3 = (int)jarg3;
2773 : {
2774 0 : if (!arg2) {
2775 : {
2776 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2777 : };
2778 : }
2779 : }
2780 0 : result = (char *)OSRSpatialReferenceShadow_GetAttrValue__SWIG_0(arg1,(char const *)arg2,arg3);
2781 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2782 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
2783 0 : return jresult;
2784 : }
2785 :
2786 :
2787 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAttrValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
2788 0 : jstring jresult = 0 ;
2789 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2790 0 : char *arg2 = (char *) 0 ;
2791 0 : char *result = 0 ;
2792 :
2793 : (void)jenv;
2794 : (void)jcls;
2795 : (void)jarg1_;
2796 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2797 0 : arg2 = 0;
2798 0 : if (jarg2) {
2799 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2800 0 : if (!arg2) return 0;
2801 : }
2802 : {
2803 0 : if (!arg2) {
2804 : {
2805 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2806 : };
2807 : }
2808 : }
2809 0 : result = (char *)OSRSpatialReferenceShadow_GetAttrValue__SWIG_0(arg1,(char const *)arg2);
2810 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2811 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
2812 0 : return jresult;
2813 : }
2814 :
2815 :
2816 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetAttrValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
2817 0 : jint jresult = 0 ;
2818 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2819 0 : char *arg2 = (char *) 0 ;
2820 0 : char *arg3 = (char *) 0 ;
2821 : OGRErr result;
2822 :
2823 : (void)jenv;
2824 : (void)jcls;
2825 : (void)jarg1_;
2826 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2827 0 : arg2 = 0;
2828 0 : if (jarg2) {
2829 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2830 0 : if (!arg2) return 0;
2831 : }
2832 0 : arg3 = 0;
2833 0 : if (jarg3) {
2834 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
2835 0 : if (!arg3) return 0;
2836 : }
2837 : {
2838 0 : if (!arg2) {
2839 : {
2840 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2841 : };
2842 : }
2843 : }
2844 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetAttrValue(arg1,(char const *)arg2,(char const *)arg3);
2845 : {
2846 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
2847 0 : if (result != 0 && bUseExceptions) {
2848 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
2849 : OGRErrMessages(result));
2850 0 : return 0;
2851 : }
2852 0 : jresult = (jint)result;
2853 : }
2854 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
2855 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
2856 : {
2857 : /* %typemap(ret) OGRErr */
2858 : }
2859 0 : return jresult;
2860 : }
2861 :
2862 :
2863 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetAngularUnits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
2864 0 : jint jresult = 0 ;
2865 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2866 0 : char *arg2 = (char *) 0 ;
2867 : double arg3 ;
2868 : OGRErr result;
2869 :
2870 : (void)jenv;
2871 : (void)jcls;
2872 : (void)jarg1_;
2873 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2874 0 : arg2 = 0;
2875 0 : if (jarg2) {
2876 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2877 0 : if (!arg2) return 0;
2878 : }
2879 0 : arg3 = (double)jarg3;
2880 : {
2881 0 : if (!arg2) {
2882 : {
2883 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2884 : };
2885 : }
2886 : }
2887 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetAngularUnits(arg1,(char const *)arg2,arg3);
2888 : {
2889 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
2890 0 : if (result != 0 && bUseExceptions) {
2891 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
2892 : OGRErrMessages(result));
2893 0 : return 0;
2894 : }
2895 0 : jresult = (jint)result;
2896 : }
2897 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
2898 : {
2899 : /* %typemap(ret) OGRErr */
2900 : }
2901 0 : return jresult;
2902 : }
2903 :
2904 :
2905 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAngularUnits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2906 0 : jdouble jresult = 0 ;
2907 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2908 : double result;
2909 :
2910 : (void)jenv;
2911 : (void)jcls;
2912 : (void)jarg1_;
2913 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2914 0 : result = (double)OSRSpatialReferenceShadow_GetAngularUnits(arg1);
2915 0 : jresult = (jdouble)result;
2916 0 : return jresult;
2917 : }
2918 :
2919 :
2920 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAngularUnitsName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
2921 0 : jstring jresult = 0 ;
2922 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2923 0 : char *result = 0 ;
2924 :
2925 : (void)jenv;
2926 : (void)jcls;
2927 : (void)jarg1_;
2928 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2929 0 : result = (char *)OSRSpatialReferenceShadow_GetAngularUnitsName(arg1);
2930 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
2931 0 : return jresult;
2932 : }
2933 :
2934 :
2935 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetTargetLinearUnits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jdouble jarg4) {
2936 0 : jint jresult = 0 ;
2937 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2938 0 : char *arg2 = (char *) 0 ;
2939 0 : char *arg3 = (char *) 0 ;
2940 : double arg4 ;
2941 : OGRErr result;
2942 :
2943 : (void)jenv;
2944 : (void)jcls;
2945 : (void)jarg1_;
2946 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2947 0 : arg2 = 0;
2948 0 : if (jarg2) {
2949 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2950 0 : if (!arg2) return 0;
2951 : }
2952 0 : arg3 = 0;
2953 0 : if (jarg3) {
2954 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
2955 0 : if (!arg3) return 0;
2956 : }
2957 0 : arg4 = (double)jarg4;
2958 : {
2959 0 : if (!arg3) {
2960 : {
2961 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
2962 : };
2963 : }
2964 : }
2965 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetTargetLinearUnits(arg1,(char const *)arg2,(char const *)arg3,arg4);
2966 : {
2967 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
2968 0 : if (result != 0 && bUseExceptions) {
2969 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
2970 : OGRErrMessages(result));
2971 0 : return 0;
2972 : }
2973 0 : jresult = (jint)result;
2974 : }
2975 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
2976 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
2977 : {
2978 : /* %typemap(ret) OGRErr */
2979 : }
2980 0 : return jresult;
2981 : }
2982 :
2983 :
2984 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLinearUnits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
2985 0 : jint jresult = 0 ;
2986 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
2987 0 : char *arg2 = (char *) 0 ;
2988 : double arg3 ;
2989 : OGRErr result;
2990 :
2991 : (void)jenv;
2992 : (void)jcls;
2993 : (void)jarg1_;
2994 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
2995 0 : arg2 = 0;
2996 0 : if (jarg2) {
2997 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
2998 0 : if (!arg2) return 0;
2999 : }
3000 0 : arg3 = (double)jarg3;
3001 : {
3002 0 : if (!arg2) {
3003 : {
3004 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3005 : };
3006 : }
3007 : }
3008 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLinearUnits(arg1,(char const *)arg2,arg3);
3009 : {
3010 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3011 0 : if (result != 0 && bUseExceptions) {
3012 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3013 : OGRErrMessages(result));
3014 0 : return 0;
3015 : }
3016 0 : jresult = (jint)result;
3017 : }
3018 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3019 : {
3020 : /* %typemap(ret) OGRErr */
3021 : }
3022 0 : return jresult;
3023 : }
3024 :
3025 :
3026 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLinearUnitsAndUpdateParameters(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
3027 0 : jint jresult = 0 ;
3028 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3029 0 : char *arg2 = (char *) 0 ;
3030 : double arg3 ;
3031 : OGRErr result;
3032 :
3033 : (void)jenv;
3034 : (void)jcls;
3035 : (void)jarg1_;
3036 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3037 0 : arg2 = 0;
3038 0 : if (jarg2) {
3039 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3040 0 : if (!arg2) return 0;
3041 : }
3042 0 : arg3 = (double)jarg3;
3043 : {
3044 0 : if (!arg2) {
3045 : {
3046 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3047 : };
3048 : }
3049 : }
3050 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLinearUnitsAndUpdateParameters(arg1,(char const *)arg2,arg3);
3051 : {
3052 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3053 0 : if (result != 0 && bUseExceptions) {
3054 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3055 : OGRErrMessages(result));
3056 0 : return 0;
3057 : }
3058 0 : jresult = (jint)result;
3059 : }
3060 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3061 : {
3062 : /* %typemap(ret) OGRErr */
3063 : }
3064 0 : return jresult;
3065 : }
3066 :
3067 :
3068 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetTargetLinearUnits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
3069 0 : jdouble jresult = 0 ;
3070 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3071 0 : char *arg2 = (char *) 0 ;
3072 : double result;
3073 :
3074 : (void)jenv;
3075 : (void)jcls;
3076 : (void)jarg1_;
3077 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3078 0 : arg2 = 0;
3079 0 : if (jarg2) {
3080 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3081 0 : if (!arg2) return 0;
3082 : }
3083 0 : result = (double)OSRSpatialReferenceShadow_GetTargetLinearUnits(arg1,(char const *)arg2);
3084 0 : jresult = (jdouble)result;
3085 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3086 0 : return jresult;
3087 : }
3088 :
3089 :
3090 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetLinearUnits(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3091 0 : jdouble jresult = 0 ;
3092 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3093 : double result;
3094 :
3095 : (void)jenv;
3096 : (void)jcls;
3097 : (void)jarg1_;
3098 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3099 0 : result = (double)OSRSpatialReferenceShadow_GetLinearUnits(arg1);
3100 0 : jresult = (jdouble)result;
3101 0 : return jresult;
3102 : }
3103 :
3104 :
3105 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetLinearUnitsName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3106 0 : jstring jresult = 0 ;
3107 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3108 0 : char *result = 0 ;
3109 :
3110 : (void)jenv;
3111 : (void)jcls;
3112 : (void)jarg1_;
3113 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3114 0 : result = (char *)OSRSpatialReferenceShadow_GetLinearUnitsName(arg1);
3115 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
3116 0 : return jresult;
3117 : }
3118 :
3119 :
3120 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAuthorityCode_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
3121 0 : jstring jresult = 0 ;
3122 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3123 0 : char *arg2 = (char *) 0 ;
3124 0 : char *result = 0 ;
3125 :
3126 : (void)jenv;
3127 : (void)jcls;
3128 : (void)jarg1_;
3129 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3130 0 : arg2 = 0;
3131 0 : if (jarg2) {
3132 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3133 0 : if (!arg2) return 0;
3134 : }
3135 0 : result = (char *)OSRSpatialReferenceShadow_GetAuthorityCode__SWIG_0(arg1,(char const *)arg2);
3136 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
3137 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3138 0 : return jresult;
3139 : }
3140 :
3141 :
3142 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAuthorityCode_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3143 0 : jstring jresult = 0 ;
3144 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3145 0 : char *result = 0 ;
3146 :
3147 : (void)jenv;
3148 : (void)jcls;
3149 : (void)jarg1_;
3150 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3151 0 : result = (char *)OSRSpatialReferenceShadow_GetAuthorityCode__SWIG_0(arg1);
3152 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
3153 0 : return jresult;
3154 : }
3155 :
3156 :
3157 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAuthorityName_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
3158 0 : jstring jresult = 0 ;
3159 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3160 0 : char *arg2 = (char *) 0 ;
3161 0 : char *result = 0 ;
3162 :
3163 : (void)jenv;
3164 : (void)jcls;
3165 : (void)jarg1_;
3166 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3167 0 : arg2 = 0;
3168 0 : if (jarg2) {
3169 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3170 0 : if (!arg2) return 0;
3171 : }
3172 0 : result = (char *)OSRSpatialReferenceShadow_GetAuthorityName__SWIG_0(arg1,(char const *)arg2);
3173 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
3174 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3175 0 : return jresult;
3176 : }
3177 :
3178 :
3179 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAuthorityName_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3180 0 : jstring jresult = 0 ;
3181 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3182 0 : char *result = 0 ;
3183 :
3184 : (void)jenv;
3185 : (void)jcls;
3186 : (void)jarg1_;
3187 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3188 0 : result = (char *)OSRSpatialReferenceShadow_GetAuthorityName__SWIG_0(arg1);
3189 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
3190 0 : return jresult;
3191 : }
3192 :
3193 :
3194 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAreaOfUse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3195 0 : jlong jresult = 0 ;
3196 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3197 0 : OSRAreaOfUse *result = 0 ;
3198 :
3199 : (void)jenv;
3200 : (void)jcls;
3201 : (void)jarg1_;
3202 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3203 0 : result = (OSRAreaOfUse *)OSRSpatialReferenceShadow_GetAreaOfUse(arg1);
3204 0 : *(OSRAreaOfUse **)&jresult = result;
3205 0 : return jresult;
3206 : }
3207 :
3208 :
3209 1 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAxisName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
3210 1 : jstring jresult = 0 ;
3211 1 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3212 1 : char *arg2 = (char *) 0 ;
3213 : int arg3 ;
3214 1 : char *result = 0 ;
3215 :
3216 : (void)jenv;
3217 : (void)jcls;
3218 : (void)jarg1_;
3219 1 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3220 1 : arg2 = 0;
3221 1 : if (jarg2) {
3222 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3223 0 : if (!arg2) return 0;
3224 : }
3225 1 : arg3 = (int)jarg3;
3226 1 : result = (char *)OSRSpatialReferenceShadow_GetAxisName(arg1,(char const *)arg2,arg3);
3227 1 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
3228 1 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3229 1 : return jresult;
3230 : }
3231 :
3232 :
3233 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAxesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3234 0 : jint jresult = 0 ;
3235 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3236 : int result;
3237 :
3238 : (void)jenv;
3239 : (void)jcls;
3240 : (void)jarg1_;
3241 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3242 0 : result = (int)OSRSpatialReferenceShadow_GetAxesCount(arg1);
3243 0 : jresult = (jint)result;
3244 0 : return jresult;
3245 : }
3246 :
3247 :
3248 1 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAxisOrientation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) {
3249 1 : jint jresult = 0 ;
3250 1 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3251 1 : char *arg2 = (char *) 0 ;
3252 : int arg3 ;
3253 : OGRAxisOrientation result;
3254 :
3255 : (void)jenv;
3256 : (void)jcls;
3257 : (void)jarg1_;
3258 1 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3259 1 : arg2 = 0;
3260 1 : if (jarg2) {
3261 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3262 0 : if (!arg2) return 0;
3263 : }
3264 1 : arg3 = (int)jarg3;
3265 1 : result = (OGRAxisOrientation)OSRSpatialReferenceShadow_GetAxisOrientation(arg1,(char const *)arg2,arg3);
3266 1 : jresult = (jint)result;
3267 1 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3268 1 : return jresult;
3269 : }
3270 :
3271 :
3272 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetAxisMappingStrategy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3273 0 : jint jresult = 0 ;
3274 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3275 : OSRAxisMappingStrategy result;
3276 :
3277 : (void)jenv;
3278 : (void)jcls;
3279 : (void)jarg1_;
3280 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3281 0 : result = (OSRAxisMappingStrategy)OSRSpatialReferenceShadow_GetAxisMappingStrategy(arg1);
3282 0 : jresult = (jint)result;
3283 0 : return jresult;
3284 : }
3285 :
3286 :
3287 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetAxisMappingStrategy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
3288 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3289 : OSRAxisMappingStrategy arg2 ;
3290 :
3291 : (void)jenv;
3292 : (void)jcls;
3293 : (void)jarg1_;
3294 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3295 0 : arg2 = (OSRAxisMappingStrategy)jarg2;
3296 0 : OSRSpatialReferenceShadow_SetAxisMappingStrategy(arg1,arg2);
3297 0 : }
3298 :
3299 :
3300 0 : SWIGEXPORT jintArray JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetDataAxisToSRSAxisMapping(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
3301 0 : jintArray jresult = 0 ;
3302 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3303 0 : int *arg2 = (int *) 0 ;
3304 0 : int **arg3 = (int **) 0 ;
3305 : retIntArray result;
3306 :
3307 : (void)jenv;
3308 : (void)jcls;
3309 : (void)jarg1_;
3310 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3311 0 : arg2 = *(int **)&jarg2;
3312 0 : arg3 = *(int ***)&jarg3;
3313 0 : result = OSRSpatialReferenceShadow_GetDataAxisToSRSAxisMapping(arg1,arg2,(int const **)arg3);
3314 : {
3315 : /* %typemap(out) (retIntArray) */
3316 : }
3317 0 : return jresult;
3318 : }
3319 :
3320 :
3321 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetDataAxisToSRSAxisMapping(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jintArray jarg2) {
3322 0 : jint jresult = 0 ;
3323 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3324 : int arg2 ;
3325 0 : int *arg3 = (int *) 0 ;
3326 : OGRErr result;
3327 :
3328 : (void)jenv;
3329 : (void)jcls;
3330 : (void)jarg1_;
3331 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3332 : {
3333 : /* %typemap(in) (int nList, int* pList) */
3334 : /* check if is List */
3335 0 : if (jarg2)
3336 : {
3337 0 : arg2 = jenv->GetArrayLength(jarg2);
3338 0 : if (arg2 == 0)
3339 0 : arg3 = NULL;
3340 : else
3341 0 : arg3 = (int *)jenv->GetIntArrayElements(jarg2, NULL);
3342 : }
3343 : else
3344 : {
3345 0 : arg2 = 0;
3346 0 : arg3 = NULL;
3347 : }
3348 : }
3349 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetDataAxisToSRSAxisMapping(arg1,arg2,arg3);
3350 : {
3351 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3352 0 : if (result != 0 && bUseExceptions) {
3353 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3354 : OGRErrMessages(result));
3355 0 : return 0;
3356 : }
3357 0 : jresult = (jint)result;
3358 : }
3359 : {
3360 : /* %typemap(argout) (int nList, int* pList) */
3361 : }
3362 : {
3363 : /* %typemap(freearg) (int nList, int* pList) */
3364 0 : if (arg3) {
3365 0 : jenv->ReleaseIntArrayElements(jarg2, (jint*)arg3, JNI_ABORT);
3366 : }
3367 : }
3368 : {
3369 : /* %typemap(ret) OGRErr */
3370 : }
3371 0 : return jresult;
3372 : }
3373 :
3374 :
3375 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetUTM_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
3376 0 : jint jresult = 0 ;
3377 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3378 : int arg2 ;
3379 : int arg3 ;
3380 : OGRErr result;
3381 :
3382 : (void)jenv;
3383 : (void)jcls;
3384 : (void)jarg1_;
3385 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3386 0 : arg2 = (int)jarg2;
3387 0 : arg3 = (int)jarg3;
3388 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetUTM__SWIG_0(arg1,arg2,arg3);
3389 : {
3390 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3391 0 : if (result != 0 && bUseExceptions) {
3392 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3393 : OGRErrMessages(result));
3394 0 : return 0;
3395 : }
3396 0 : jresult = (jint)result;
3397 : }
3398 : {
3399 : /* %typemap(ret) OGRErr */
3400 : }
3401 0 : return jresult;
3402 : }
3403 :
3404 :
3405 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetUTM_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
3406 0 : jint jresult = 0 ;
3407 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3408 : int arg2 ;
3409 : OGRErr result;
3410 :
3411 : (void)jenv;
3412 : (void)jcls;
3413 : (void)jarg1_;
3414 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3415 0 : arg2 = (int)jarg2;
3416 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetUTM__SWIG_0(arg1,arg2);
3417 : {
3418 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3419 0 : if (result != 0 && bUseExceptions) {
3420 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3421 : OGRErrMessages(result));
3422 0 : return 0;
3423 : }
3424 0 : jresult = (jint)result;
3425 : }
3426 : {
3427 : /* %typemap(ret) OGRErr */
3428 : }
3429 0 : return jresult;
3430 : }
3431 :
3432 :
3433 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetUTMZone(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3434 0 : jint jresult = 0 ;
3435 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3436 : int result;
3437 :
3438 : (void)jenv;
3439 : (void)jcls;
3440 : (void)jarg1_;
3441 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3442 0 : result = (int)OSRSpatialReferenceShadow_GetUTMZone(arg1);
3443 0 : jresult = (jint)result;
3444 0 : return jresult;
3445 : }
3446 :
3447 :
3448 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetStatePlane_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jstring jarg4, jdouble jarg5) {
3449 0 : jint jresult = 0 ;
3450 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3451 : int arg2 ;
3452 : int arg3 ;
3453 0 : char *arg4 = (char *) 0 ;
3454 : double arg5 ;
3455 : OGRErr result;
3456 :
3457 : (void)jenv;
3458 : (void)jcls;
3459 : (void)jarg1_;
3460 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3461 0 : arg2 = (int)jarg2;
3462 0 : arg3 = (int)jarg3;
3463 0 : arg4 = 0;
3464 0 : if (jarg4) {
3465 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
3466 0 : if (!arg4) return 0;
3467 : }
3468 0 : arg5 = (double)jarg5;
3469 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetStatePlane__SWIG_0(arg1,arg2,arg3,(char const *)arg4,arg5);
3470 : {
3471 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3472 0 : if (result != 0 && bUseExceptions) {
3473 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3474 : OGRErrMessages(result));
3475 0 : return 0;
3476 : }
3477 0 : jresult = (jint)result;
3478 : }
3479 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
3480 : {
3481 : /* %typemap(ret) OGRErr */
3482 : }
3483 0 : return jresult;
3484 : }
3485 :
3486 :
3487 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetStatePlane_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jstring jarg4) {
3488 0 : jint jresult = 0 ;
3489 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3490 : int arg2 ;
3491 : int arg3 ;
3492 0 : char *arg4 = (char *) 0 ;
3493 : OGRErr result;
3494 :
3495 : (void)jenv;
3496 : (void)jcls;
3497 : (void)jarg1_;
3498 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3499 0 : arg2 = (int)jarg2;
3500 0 : arg3 = (int)jarg3;
3501 0 : arg4 = 0;
3502 0 : if (jarg4) {
3503 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
3504 0 : if (!arg4) return 0;
3505 : }
3506 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetStatePlane__SWIG_0(arg1,arg2,arg3,(char const *)arg4);
3507 : {
3508 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3509 0 : if (result != 0 && bUseExceptions) {
3510 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3511 : OGRErrMessages(result));
3512 0 : return 0;
3513 : }
3514 0 : jresult = (jint)result;
3515 : }
3516 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
3517 : {
3518 : /* %typemap(ret) OGRErr */
3519 : }
3520 0 : return jresult;
3521 : }
3522 :
3523 :
3524 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetStatePlane_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
3525 0 : jint jresult = 0 ;
3526 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3527 : int arg2 ;
3528 : int arg3 ;
3529 : OGRErr result;
3530 :
3531 : (void)jenv;
3532 : (void)jcls;
3533 : (void)jarg1_;
3534 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3535 0 : arg2 = (int)jarg2;
3536 0 : arg3 = (int)jarg3;
3537 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetStatePlane__SWIG_0(arg1,arg2,arg3);
3538 : {
3539 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3540 0 : if (result != 0 && bUseExceptions) {
3541 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3542 : OGRErrMessages(result));
3543 0 : return 0;
3544 : }
3545 0 : jresult = (jint)result;
3546 : }
3547 : {
3548 : /* %typemap(ret) OGRErr */
3549 : }
3550 0 : return jresult;
3551 : }
3552 :
3553 :
3554 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetStatePlane_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
3555 0 : jint jresult = 0 ;
3556 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3557 : int arg2 ;
3558 : OGRErr result;
3559 :
3560 : (void)jenv;
3561 : (void)jcls;
3562 : (void)jarg1_;
3563 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3564 0 : arg2 = (int)jarg2;
3565 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetStatePlane__SWIG_0(arg1,arg2);
3566 : {
3567 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3568 0 : if (result != 0 && bUseExceptions) {
3569 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3570 : OGRErrMessages(result));
3571 0 : return 0;
3572 : }
3573 0 : jresult = (jint)result;
3574 : }
3575 : {
3576 : /* %typemap(ret) OGRErr */
3577 : }
3578 0 : return jresult;
3579 : }
3580 :
3581 :
3582 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1AutoIdentifyEPSG(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3583 0 : jint jresult = 0 ;
3584 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3585 : OGRErr result;
3586 :
3587 : (void)jenv;
3588 : (void)jcls;
3589 : (void)jarg1_;
3590 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3591 0 : result = (OGRErr)OSRSpatialReferenceShadow_AutoIdentifyEPSG(arg1);
3592 : {
3593 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3594 0 : if (result != 0 && bUseExceptions) {
3595 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3596 : OGRErrMessages(result));
3597 0 : return 0;
3598 : }
3599 0 : jresult = (jint)result;
3600 : }
3601 : {
3602 : /* %typemap(ret) OGRErr */
3603 : }
3604 0 : return jresult;
3605 : }
3606 :
3607 :
3608 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetProjection(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
3609 0 : jint jresult = 0 ;
3610 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3611 0 : char *arg2 = (char *) 0 ;
3612 : OGRErr result;
3613 :
3614 : (void)jenv;
3615 : (void)jcls;
3616 : (void)jarg1_;
3617 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3618 0 : arg2 = 0;
3619 0 : if (jarg2) {
3620 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3621 0 : if (!arg2) return 0;
3622 : }
3623 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetProjection(arg1,(char const *)arg2);
3624 : {
3625 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3626 0 : if (result != 0 && bUseExceptions) {
3627 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3628 : OGRErrMessages(result));
3629 0 : return 0;
3630 : }
3631 0 : jresult = (jint)result;
3632 : }
3633 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3634 : {
3635 : /* %typemap(ret) OGRErr */
3636 : }
3637 0 : return jresult;
3638 : }
3639 :
3640 :
3641 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetProjParm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
3642 0 : jint jresult = 0 ;
3643 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3644 0 : char *arg2 = (char *) 0 ;
3645 : double arg3 ;
3646 : OGRErr result;
3647 :
3648 : (void)jenv;
3649 : (void)jcls;
3650 : (void)jarg1_;
3651 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3652 0 : arg2 = 0;
3653 0 : if (jarg2) {
3654 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3655 0 : if (!arg2) return 0;
3656 : }
3657 0 : arg3 = (double)jarg3;
3658 : {
3659 0 : if (!arg2) {
3660 : {
3661 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3662 : };
3663 : }
3664 : }
3665 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetProjParm(arg1,(char const *)arg2,arg3);
3666 : {
3667 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3668 0 : if (result != 0 && bUseExceptions) {
3669 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3670 : OGRErrMessages(result));
3671 0 : return 0;
3672 : }
3673 0 : jresult = (jint)result;
3674 : }
3675 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3676 : {
3677 : /* %typemap(ret) OGRErr */
3678 : }
3679 0 : return jresult;
3680 : }
3681 :
3682 :
3683 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetProjParm_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
3684 0 : jdouble jresult = 0 ;
3685 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3686 0 : char *arg2 = (char *) 0 ;
3687 : double arg3 ;
3688 : double result;
3689 :
3690 : (void)jenv;
3691 : (void)jcls;
3692 : (void)jarg1_;
3693 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3694 0 : arg2 = 0;
3695 0 : if (jarg2) {
3696 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3697 0 : if (!arg2) return 0;
3698 : }
3699 0 : arg3 = (double)jarg3;
3700 : {
3701 0 : if (!arg2) {
3702 : {
3703 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3704 : };
3705 : }
3706 : }
3707 0 : result = (double)OSRSpatialReferenceShadow_GetProjParm__SWIG_0(arg1,(char const *)arg2,arg3);
3708 0 : jresult = (jdouble)result;
3709 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3710 0 : return jresult;
3711 : }
3712 :
3713 :
3714 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetProjParm_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
3715 0 : jdouble jresult = 0 ;
3716 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3717 0 : char *arg2 = (char *) 0 ;
3718 : double result;
3719 :
3720 : (void)jenv;
3721 : (void)jcls;
3722 : (void)jarg1_;
3723 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3724 0 : arg2 = 0;
3725 0 : if (jarg2) {
3726 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3727 0 : if (!arg2) return 0;
3728 : }
3729 : {
3730 0 : if (!arg2) {
3731 : {
3732 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3733 : };
3734 : }
3735 : }
3736 0 : result = (double)OSRSpatialReferenceShadow_GetProjParm__SWIG_0(arg1,(char const *)arg2);
3737 0 : jresult = (jdouble)result;
3738 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3739 0 : return jresult;
3740 : }
3741 :
3742 :
3743 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetNormProjParm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
3744 0 : jint jresult = 0 ;
3745 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3746 0 : char *arg2 = (char *) 0 ;
3747 : double arg3 ;
3748 : OGRErr result;
3749 :
3750 : (void)jenv;
3751 : (void)jcls;
3752 : (void)jarg1_;
3753 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3754 0 : arg2 = 0;
3755 0 : if (jarg2) {
3756 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3757 0 : if (!arg2) return 0;
3758 : }
3759 0 : arg3 = (double)jarg3;
3760 : {
3761 0 : if (!arg2) {
3762 : {
3763 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3764 : };
3765 : }
3766 : }
3767 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetNormProjParm(arg1,(char const *)arg2,arg3);
3768 : {
3769 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3770 0 : if (result != 0 && bUseExceptions) {
3771 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3772 : OGRErrMessages(result));
3773 0 : return 0;
3774 : }
3775 0 : jresult = (jint)result;
3776 : }
3777 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3778 : {
3779 : /* %typemap(ret) OGRErr */
3780 : }
3781 0 : return jresult;
3782 : }
3783 :
3784 :
3785 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetNormProjParm_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3) {
3786 0 : jdouble jresult = 0 ;
3787 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3788 0 : char *arg2 = (char *) 0 ;
3789 : double arg3 ;
3790 : double result;
3791 :
3792 : (void)jenv;
3793 : (void)jcls;
3794 : (void)jarg1_;
3795 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3796 0 : arg2 = 0;
3797 0 : if (jarg2) {
3798 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3799 0 : if (!arg2) return 0;
3800 : }
3801 0 : arg3 = (double)jarg3;
3802 : {
3803 0 : if (!arg2) {
3804 : {
3805 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3806 : };
3807 : }
3808 : }
3809 0 : result = (double)OSRSpatialReferenceShadow_GetNormProjParm__SWIG_0(arg1,(char const *)arg2,arg3);
3810 0 : jresult = (jdouble)result;
3811 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3812 0 : return jresult;
3813 : }
3814 :
3815 :
3816 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetNormProjParm_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
3817 0 : jdouble jresult = 0 ;
3818 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3819 0 : char *arg2 = (char *) 0 ;
3820 : double result;
3821 :
3822 : (void)jenv;
3823 : (void)jcls;
3824 : (void)jarg1_;
3825 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3826 0 : arg2 = 0;
3827 0 : if (jarg2) {
3828 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
3829 0 : if (!arg2) return 0;
3830 : }
3831 : {
3832 0 : if (!arg2) {
3833 : {
3834 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
3835 : };
3836 : }
3837 : }
3838 0 : result = (double)OSRSpatialReferenceShadow_GetNormProjParm__SWIG_0(arg1,(char const *)arg2);
3839 0 : jresult = (jdouble)result;
3840 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
3841 0 : return jresult;
3842 : }
3843 :
3844 :
3845 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetSemiMajor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3846 0 : jdouble jresult = 0 ;
3847 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3848 : double result;
3849 :
3850 : (void)jenv;
3851 : (void)jcls;
3852 : (void)jarg1_;
3853 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3854 0 : result = (double)OSRSpatialReferenceShadow_GetSemiMajor(arg1);
3855 0 : jresult = (jdouble)result;
3856 0 : return jresult;
3857 : }
3858 :
3859 :
3860 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetSemiMinor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3861 0 : jdouble jresult = 0 ;
3862 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3863 : double result;
3864 :
3865 : (void)jenv;
3866 : (void)jcls;
3867 : (void)jarg1_;
3868 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3869 0 : result = (double)OSRSpatialReferenceShadow_GetSemiMinor(arg1);
3870 0 : jresult = (jdouble)result;
3871 0 : return jresult;
3872 : }
3873 :
3874 :
3875 0 : SWIGEXPORT jdouble JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetInvFlattening(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
3876 0 : jdouble jresult = 0 ;
3877 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3878 : double result;
3879 :
3880 : (void)jenv;
3881 : (void)jcls;
3882 : (void)jarg1_;
3883 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3884 0 : result = (double)OSRSpatialReferenceShadow_GetInvFlattening(arg1);
3885 0 : jresult = (jdouble)result;
3886 0 : return jresult;
3887 : }
3888 :
3889 :
3890 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetACEA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7) {
3891 0 : jint jresult = 0 ;
3892 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3893 : double arg2 ;
3894 : double arg3 ;
3895 : double arg4 ;
3896 : double arg5 ;
3897 : double arg6 ;
3898 : double arg7 ;
3899 : OGRErr result;
3900 :
3901 : (void)jenv;
3902 : (void)jcls;
3903 : (void)jarg1_;
3904 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3905 0 : arg2 = (double)jarg2;
3906 0 : arg3 = (double)jarg3;
3907 0 : arg4 = (double)jarg4;
3908 0 : arg5 = (double)jarg5;
3909 0 : arg6 = (double)jarg6;
3910 0 : arg7 = (double)jarg7;
3911 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetACEA(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
3912 : {
3913 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3914 0 : if (result != 0 && bUseExceptions) {
3915 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3916 : OGRErrMessages(result));
3917 0 : return 0;
3918 : }
3919 0 : jresult = (jint)result;
3920 : }
3921 : {
3922 : /* %typemap(ret) OGRErr */
3923 : }
3924 0 : return jresult;
3925 : }
3926 :
3927 :
3928 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetAE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
3929 0 : jint jresult = 0 ;
3930 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3931 : double arg2 ;
3932 : double arg3 ;
3933 : double arg4 ;
3934 : double arg5 ;
3935 : OGRErr result;
3936 :
3937 : (void)jenv;
3938 : (void)jcls;
3939 : (void)jarg1_;
3940 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3941 0 : arg2 = (double)jarg2;
3942 0 : arg3 = (double)jarg3;
3943 0 : arg4 = (double)jarg4;
3944 0 : arg5 = (double)jarg5;
3945 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetAE(arg1,arg2,arg3,arg4,arg5);
3946 : {
3947 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3948 0 : if (result != 0 && bUseExceptions) {
3949 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3950 : OGRErrMessages(result));
3951 0 : return 0;
3952 : }
3953 0 : jresult = (jint)result;
3954 : }
3955 : {
3956 : /* %typemap(ret) OGRErr */
3957 : }
3958 0 : return jresult;
3959 : }
3960 :
3961 :
3962 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetBonne(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
3963 0 : jint jresult = 0 ;
3964 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3965 : double arg2 ;
3966 : double arg3 ;
3967 : double arg4 ;
3968 : double arg5 ;
3969 : OGRErr result;
3970 :
3971 : (void)jenv;
3972 : (void)jcls;
3973 : (void)jarg1_;
3974 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
3975 0 : arg2 = (double)jarg2;
3976 0 : arg3 = (double)jarg3;
3977 0 : arg4 = (double)jarg4;
3978 0 : arg5 = (double)jarg5;
3979 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetBonne(arg1,arg2,arg3,arg4,arg5);
3980 : {
3981 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
3982 0 : if (result != 0 && bUseExceptions) {
3983 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
3984 : OGRErrMessages(result));
3985 0 : return 0;
3986 : }
3987 0 : jresult = (jint)result;
3988 : }
3989 : {
3990 : /* %typemap(ret) OGRErr */
3991 : }
3992 0 : return jresult;
3993 : }
3994 :
3995 :
3996 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetCEA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
3997 0 : jint jresult = 0 ;
3998 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
3999 : double arg2 ;
4000 : double arg3 ;
4001 : double arg4 ;
4002 : double arg5 ;
4003 : OGRErr result;
4004 :
4005 : (void)jenv;
4006 : (void)jcls;
4007 : (void)jarg1_;
4008 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4009 0 : arg2 = (double)jarg2;
4010 0 : arg3 = (double)jarg3;
4011 0 : arg4 = (double)jarg4;
4012 0 : arg5 = (double)jarg5;
4013 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetCEA(arg1,arg2,arg3,arg4,arg5);
4014 : {
4015 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4016 0 : if (result != 0 && bUseExceptions) {
4017 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4018 : OGRErrMessages(result));
4019 0 : return 0;
4020 : }
4021 0 : jresult = (jint)result;
4022 : }
4023 : {
4024 : /* %typemap(ret) OGRErr */
4025 : }
4026 0 : return jresult;
4027 : }
4028 :
4029 :
4030 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4031 0 : jint jresult = 0 ;
4032 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4033 : double arg2 ;
4034 : double arg3 ;
4035 : double arg4 ;
4036 : double arg5 ;
4037 : OGRErr result;
4038 :
4039 : (void)jenv;
4040 : (void)jcls;
4041 : (void)jarg1_;
4042 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4043 0 : arg2 = (double)jarg2;
4044 0 : arg3 = (double)jarg3;
4045 0 : arg4 = (double)jarg4;
4046 0 : arg5 = (double)jarg5;
4047 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetCS(arg1,arg2,arg3,arg4,arg5);
4048 : {
4049 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4050 0 : if (result != 0 && bUseExceptions) {
4051 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4052 : OGRErrMessages(result));
4053 0 : return 0;
4054 : }
4055 0 : jresult = (jint)result;
4056 : }
4057 : {
4058 : /* %typemap(ret) OGRErr */
4059 : }
4060 0 : return jresult;
4061 : }
4062 :
4063 :
4064 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetEC(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7) {
4065 0 : jint jresult = 0 ;
4066 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4067 : double arg2 ;
4068 : double arg3 ;
4069 : double arg4 ;
4070 : double arg5 ;
4071 : double arg6 ;
4072 : double arg7 ;
4073 : OGRErr result;
4074 :
4075 : (void)jenv;
4076 : (void)jcls;
4077 : (void)jarg1_;
4078 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4079 0 : arg2 = (double)jarg2;
4080 0 : arg3 = (double)jarg3;
4081 0 : arg4 = (double)jarg4;
4082 0 : arg5 = (double)jarg5;
4083 0 : arg6 = (double)jarg6;
4084 0 : arg7 = (double)jarg7;
4085 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetEC(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4086 : {
4087 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4088 0 : if (result != 0 && bUseExceptions) {
4089 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4090 : OGRErrMessages(result));
4091 0 : return 0;
4092 : }
4093 0 : jresult = (jint)result;
4094 : }
4095 : {
4096 : /* %typemap(ret) OGRErr */
4097 : }
4098 0 : return jresult;
4099 : }
4100 :
4101 :
4102 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetEckertIV(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
4103 0 : jint jresult = 0 ;
4104 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4105 : double arg2 ;
4106 : double arg3 ;
4107 : double arg4 ;
4108 : OGRErr result;
4109 :
4110 : (void)jenv;
4111 : (void)jcls;
4112 : (void)jarg1_;
4113 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4114 0 : arg2 = (double)jarg2;
4115 0 : arg3 = (double)jarg3;
4116 0 : arg4 = (double)jarg4;
4117 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetEckertIV(arg1,arg2,arg3,arg4);
4118 : {
4119 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4120 0 : if (result != 0 && bUseExceptions) {
4121 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4122 : OGRErrMessages(result));
4123 0 : return 0;
4124 : }
4125 0 : jresult = (jint)result;
4126 : }
4127 : {
4128 : /* %typemap(ret) OGRErr */
4129 : }
4130 0 : return jresult;
4131 : }
4132 :
4133 :
4134 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetEckertVI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
4135 0 : jint jresult = 0 ;
4136 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4137 : double arg2 ;
4138 : double arg3 ;
4139 : double arg4 ;
4140 : OGRErr result;
4141 :
4142 : (void)jenv;
4143 : (void)jcls;
4144 : (void)jarg1_;
4145 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4146 0 : arg2 = (double)jarg2;
4147 0 : arg3 = (double)jarg3;
4148 0 : arg4 = (double)jarg4;
4149 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetEckertVI(arg1,arg2,arg3,arg4);
4150 : {
4151 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4152 0 : if (result != 0 && bUseExceptions) {
4153 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4154 : OGRErrMessages(result));
4155 0 : return 0;
4156 : }
4157 0 : jresult = (jint)result;
4158 : }
4159 : {
4160 : /* %typemap(ret) OGRErr */
4161 : }
4162 0 : return jresult;
4163 : }
4164 :
4165 :
4166 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetEquirectangular(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4167 0 : jint jresult = 0 ;
4168 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4169 : double arg2 ;
4170 : double arg3 ;
4171 : double arg4 ;
4172 : double arg5 ;
4173 : OGRErr result;
4174 :
4175 : (void)jenv;
4176 : (void)jcls;
4177 : (void)jarg1_;
4178 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4179 0 : arg2 = (double)jarg2;
4180 0 : arg3 = (double)jarg3;
4181 0 : arg4 = (double)jarg4;
4182 0 : arg5 = (double)jarg5;
4183 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetEquirectangular(arg1,arg2,arg3,arg4,arg5);
4184 : {
4185 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4186 0 : if (result != 0 && bUseExceptions) {
4187 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4188 : OGRErrMessages(result));
4189 0 : return 0;
4190 : }
4191 0 : jresult = (jint)result;
4192 : }
4193 : {
4194 : /* %typemap(ret) OGRErr */
4195 : }
4196 0 : return jresult;
4197 : }
4198 :
4199 :
4200 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetEquirectangular2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4201 0 : jint jresult = 0 ;
4202 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4203 : double arg2 ;
4204 : double arg3 ;
4205 : double arg4 ;
4206 : double arg5 ;
4207 : double arg6 ;
4208 : OGRErr result;
4209 :
4210 : (void)jenv;
4211 : (void)jcls;
4212 : (void)jarg1_;
4213 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4214 0 : arg2 = (double)jarg2;
4215 0 : arg3 = (double)jarg3;
4216 0 : arg4 = (double)jarg4;
4217 0 : arg5 = (double)jarg5;
4218 0 : arg6 = (double)jarg6;
4219 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetEquirectangular2(arg1,arg2,arg3,arg4,arg5,arg6);
4220 : {
4221 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4222 0 : if (result != 0 && bUseExceptions) {
4223 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4224 : OGRErrMessages(result));
4225 0 : return 0;
4226 : }
4227 0 : jresult = (jint)result;
4228 : }
4229 : {
4230 : /* %typemap(ret) OGRErr */
4231 : }
4232 0 : return jresult;
4233 : }
4234 :
4235 :
4236 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGaussSchreiberTMercator(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4237 0 : jint jresult = 0 ;
4238 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4239 : double arg2 ;
4240 : double arg3 ;
4241 : double arg4 ;
4242 : double arg5 ;
4243 : double arg6 ;
4244 : OGRErr result;
4245 :
4246 : (void)jenv;
4247 : (void)jcls;
4248 : (void)jarg1_;
4249 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4250 0 : arg2 = (double)jarg2;
4251 0 : arg3 = (double)jarg3;
4252 0 : arg4 = (double)jarg4;
4253 0 : arg5 = (double)jarg5;
4254 0 : arg6 = (double)jarg6;
4255 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGaussSchreiberTMercator(arg1,arg2,arg3,arg4,arg5,arg6);
4256 : {
4257 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4258 0 : if (result != 0 && bUseExceptions) {
4259 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4260 : OGRErrMessages(result));
4261 0 : return 0;
4262 : }
4263 0 : jresult = (jint)result;
4264 : }
4265 : {
4266 : /* %typemap(ret) OGRErr */
4267 : }
4268 0 : return jresult;
4269 : }
4270 :
4271 :
4272 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
4273 0 : jint jresult = 0 ;
4274 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4275 : double arg2 ;
4276 : double arg3 ;
4277 : double arg4 ;
4278 : OGRErr result;
4279 :
4280 : (void)jenv;
4281 : (void)jcls;
4282 : (void)jarg1_;
4283 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4284 0 : arg2 = (double)jarg2;
4285 0 : arg3 = (double)jarg3;
4286 0 : arg4 = (double)jarg4;
4287 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGS(arg1,arg2,arg3,arg4);
4288 : {
4289 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4290 0 : if (result != 0 && bUseExceptions) {
4291 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4292 : OGRErrMessages(result));
4293 0 : return 0;
4294 : }
4295 0 : jresult = (jint)result;
4296 : }
4297 : {
4298 : /* %typemap(ret) OGRErr */
4299 : }
4300 0 : return jresult;
4301 : }
4302 :
4303 :
4304 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGH(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
4305 0 : jint jresult = 0 ;
4306 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4307 : double arg2 ;
4308 : double arg3 ;
4309 : double arg4 ;
4310 : OGRErr result;
4311 :
4312 : (void)jenv;
4313 : (void)jcls;
4314 : (void)jarg1_;
4315 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4316 0 : arg2 = (double)jarg2;
4317 0 : arg3 = (double)jarg3;
4318 0 : arg4 = (double)jarg4;
4319 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGH(arg1,arg2,arg3,arg4);
4320 : {
4321 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4322 0 : if (result != 0 && bUseExceptions) {
4323 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4324 : OGRErrMessages(result));
4325 0 : return 0;
4326 : }
4327 0 : jresult = (jint)result;
4328 : }
4329 : {
4330 : /* %typemap(ret) OGRErr */
4331 : }
4332 0 : return jresult;
4333 : }
4334 :
4335 :
4336 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetIGH(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
4337 0 : jint jresult = 0 ;
4338 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4339 : OGRErr result;
4340 :
4341 : (void)jenv;
4342 : (void)jcls;
4343 : (void)jarg1_;
4344 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4345 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetIGH(arg1);
4346 : {
4347 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4348 0 : if (result != 0 && bUseExceptions) {
4349 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4350 : OGRErrMessages(result));
4351 0 : return 0;
4352 : }
4353 0 : jresult = (jint)result;
4354 : }
4355 : {
4356 : /* %typemap(ret) OGRErr */
4357 : }
4358 0 : return jresult;
4359 : }
4360 :
4361 :
4362 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGEOS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4363 0 : jint jresult = 0 ;
4364 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4365 : double arg2 ;
4366 : double arg3 ;
4367 : double arg4 ;
4368 : double arg5 ;
4369 : OGRErr result;
4370 :
4371 : (void)jenv;
4372 : (void)jcls;
4373 : (void)jarg1_;
4374 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4375 0 : arg2 = (double)jarg2;
4376 0 : arg3 = (double)jarg3;
4377 0 : arg4 = (double)jarg4;
4378 0 : arg5 = (double)jarg5;
4379 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGEOS(arg1,arg2,arg3,arg4,arg5);
4380 : {
4381 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4382 0 : if (result != 0 && bUseExceptions) {
4383 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4384 : OGRErrMessages(result));
4385 0 : return 0;
4386 : }
4387 0 : jresult = (jint)result;
4388 : }
4389 : {
4390 : /* %typemap(ret) OGRErr */
4391 : }
4392 0 : return jresult;
4393 : }
4394 :
4395 :
4396 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGnomonic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4397 0 : jint jresult = 0 ;
4398 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4399 : double arg2 ;
4400 : double arg3 ;
4401 : double arg4 ;
4402 : double arg5 ;
4403 : OGRErr result;
4404 :
4405 : (void)jenv;
4406 : (void)jcls;
4407 : (void)jarg1_;
4408 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4409 0 : arg2 = (double)jarg2;
4410 0 : arg3 = (double)jarg3;
4411 0 : arg4 = (double)jarg4;
4412 0 : arg5 = (double)jarg5;
4413 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGnomonic(arg1,arg2,arg3,arg4,arg5);
4414 : {
4415 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4416 0 : if (result != 0 && bUseExceptions) {
4417 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4418 : OGRErrMessages(result));
4419 0 : return 0;
4420 : }
4421 0 : jresult = (jint)result;
4422 : }
4423 : {
4424 : /* %typemap(ret) OGRErr */
4425 : }
4426 0 : return jresult;
4427 : }
4428 :
4429 :
4430 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetHOM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7, jdouble jarg8) {
4431 0 : jint jresult = 0 ;
4432 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4433 : double arg2 ;
4434 : double arg3 ;
4435 : double arg4 ;
4436 : double arg5 ;
4437 : double arg6 ;
4438 : double arg7 ;
4439 : double arg8 ;
4440 : OGRErr result;
4441 :
4442 : (void)jenv;
4443 : (void)jcls;
4444 : (void)jarg1_;
4445 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4446 0 : arg2 = (double)jarg2;
4447 0 : arg3 = (double)jarg3;
4448 0 : arg4 = (double)jarg4;
4449 0 : arg5 = (double)jarg5;
4450 0 : arg6 = (double)jarg6;
4451 0 : arg7 = (double)jarg7;
4452 0 : arg8 = (double)jarg8;
4453 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetHOM(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
4454 : {
4455 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4456 0 : if (result != 0 && bUseExceptions) {
4457 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4458 : OGRErrMessages(result));
4459 0 : return 0;
4460 : }
4461 0 : jresult = (jint)result;
4462 : }
4463 : {
4464 : /* %typemap(ret) OGRErr */
4465 : }
4466 0 : return jresult;
4467 : }
4468 :
4469 :
4470 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetHOM2PNO(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7, jdouble jarg8, jdouble jarg9) {
4471 0 : jint jresult = 0 ;
4472 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4473 : double arg2 ;
4474 : double arg3 ;
4475 : double arg4 ;
4476 : double arg5 ;
4477 : double arg6 ;
4478 : double arg7 ;
4479 : double arg8 ;
4480 : double arg9 ;
4481 : OGRErr result;
4482 :
4483 : (void)jenv;
4484 : (void)jcls;
4485 : (void)jarg1_;
4486 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4487 0 : arg2 = (double)jarg2;
4488 0 : arg3 = (double)jarg3;
4489 0 : arg4 = (double)jarg4;
4490 0 : arg5 = (double)jarg5;
4491 0 : arg6 = (double)jarg6;
4492 0 : arg7 = (double)jarg7;
4493 0 : arg8 = (double)jarg8;
4494 0 : arg9 = (double)jarg9;
4495 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetHOM2PNO(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
4496 : {
4497 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4498 0 : if (result != 0 && bUseExceptions) {
4499 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4500 : OGRErrMessages(result));
4501 0 : return 0;
4502 : }
4503 0 : jresult = (jint)result;
4504 : }
4505 : {
4506 : /* %typemap(ret) OGRErr */
4507 : }
4508 0 : return jresult;
4509 : }
4510 :
4511 :
4512 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetKrovak(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7, jdouble jarg8) {
4513 0 : jint jresult = 0 ;
4514 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4515 : double arg2 ;
4516 : double arg3 ;
4517 : double arg4 ;
4518 : double arg5 ;
4519 : double arg6 ;
4520 : double arg7 ;
4521 : double arg8 ;
4522 : OGRErr result;
4523 :
4524 : (void)jenv;
4525 : (void)jcls;
4526 : (void)jarg1_;
4527 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4528 0 : arg2 = (double)jarg2;
4529 0 : arg3 = (double)jarg3;
4530 0 : arg4 = (double)jarg4;
4531 0 : arg5 = (double)jarg5;
4532 0 : arg6 = (double)jarg6;
4533 0 : arg7 = (double)jarg7;
4534 0 : arg8 = (double)jarg8;
4535 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetKrovak(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
4536 : {
4537 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4538 0 : if (result != 0 && bUseExceptions) {
4539 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4540 : OGRErrMessages(result));
4541 0 : return 0;
4542 : }
4543 0 : jresult = (jint)result;
4544 : }
4545 : {
4546 : /* %typemap(ret) OGRErr */
4547 : }
4548 0 : return jresult;
4549 : }
4550 :
4551 :
4552 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLAEA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4553 0 : jint jresult = 0 ;
4554 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4555 : double arg2 ;
4556 : double arg3 ;
4557 : double arg4 ;
4558 : double arg5 ;
4559 : OGRErr result;
4560 :
4561 : (void)jenv;
4562 : (void)jcls;
4563 : (void)jarg1_;
4564 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4565 0 : arg2 = (double)jarg2;
4566 0 : arg3 = (double)jarg3;
4567 0 : arg4 = (double)jarg4;
4568 0 : arg5 = (double)jarg5;
4569 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLAEA(arg1,arg2,arg3,arg4,arg5);
4570 : {
4571 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4572 0 : if (result != 0 && bUseExceptions) {
4573 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4574 : OGRErrMessages(result));
4575 0 : return 0;
4576 : }
4577 0 : jresult = (jint)result;
4578 : }
4579 : {
4580 : /* %typemap(ret) OGRErr */
4581 : }
4582 0 : return jresult;
4583 : }
4584 :
4585 :
4586 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLCC(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7) {
4587 0 : jint jresult = 0 ;
4588 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4589 : double arg2 ;
4590 : double arg3 ;
4591 : double arg4 ;
4592 : double arg5 ;
4593 : double arg6 ;
4594 : double arg7 ;
4595 : OGRErr result;
4596 :
4597 : (void)jenv;
4598 : (void)jcls;
4599 : (void)jarg1_;
4600 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4601 0 : arg2 = (double)jarg2;
4602 0 : arg3 = (double)jarg3;
4603 0 : arg4 = (double)jarg4;
4604 0 : arg5 = (double)jarg5;
4605 0 : arg6 = (double)jarg6;
4606 0 : arg7 = (double)jarg7;
4607 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLCC(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4608 : {
4609 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4610 0 : if (result != 0 && bUseExceptions) {
4611 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4612 : OGRErrMessages(result));
4613 0 : return 0;
4614 : }
4615 0 : jresult = (jint)result;
4616 : }
4617 : {
4618 : /* %typemap(ret) OGRErr */
4619 : }
4620 0 : return jresult;
4621 : }
4622 :
4623 :
4624 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLCC1SP(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4625 0 : jint jresult = 0 ;
4626 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4627 : double arg2 ;
4628 : double arg3 ;
4629 : double arg4 ;
4630 : double arg5 ;
4631 : double arg6 ;
4632 : OGRErr result;
4633 :
4634 : (void)jenv;
4635 : (void)jcls;
4636 : (void)jarg1_;
4637 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4638 0 : arg2 = (double)jarg2;
4639 0 : arg3 = (double)jarg3;
4640 0 : arg4 = (double)jarg4;
4641 0 : arg5 = (double)jarg5;
4642 0 : arg6 = (double)jarg6;
4643 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLCC1SP(arg1,arg2,arg3,arg4,arg5,arg6);
4644 : {
4645 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4646 0 : if (result != 0 && bUseExceptions) {
4647 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4648 : OGRErrMessages(result));
4649 0 : return 0;
4650 : }
4651 0 : jresult = (jint)result;
4652 : }
4653 : {
4654 : /* %typemap(ret) OGRErr */
4655 : }
4656 0 : return jresult;
4657 : }
4658 :
4659 :
4660 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLCCB(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7) {
4661 0 : jint jresult = 0 ;
4662 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4663 : double arg2 ;
4664 : double arg3 ;
4665 : double arg4 ;
4666 : double arg5 ;
4667 : double arg6 ;
4668 : double arg7 ;
4669 : OGRErr result;
4670 :
4671 : (void)jenv;
4672 : (void)jcls;
4673 : (void)jarg1_;
4674 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4675 0 : arg2 = (double)jarg2;
4676 0 : arg3 = (double)jarg3;
4677 0 : arg4 = (double)jarg4;
4678 0 : arg5 = (double)jarg5;
4679 0 : arg6 = (double)jarg6;
4680 0 : arg7 = (double)jarg7;
4681 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLCCB(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4682 : {
4683 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4684 0 : if (result != 0 && bUseExceptions) {
4685 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4686 : OGRErrMessages(result));
4687 0 : return 0;
4688 : }
4689 0 : jresult = (jint)result;
4690 : }
4691 : {
4692 : /* %typemap(ret) OGRErr */
4693 : }
4694 0 : return jresult;
4695 : }
4696 :
4697 :
4698 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetMC(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4699 0 : jint jresult = 0 ;
4700 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4701 : double arg2 ;
4702 : double arg3 ;
4703 : double arg4 ;
4704 : double arg5 ;
4705 : OGRErr result;
4706 :
4707 : (void)jenv;
4708 : (void)jcls;
4709 : (void)jarg1_;
4710 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4711 0 : arg2 = (double)jarg2;
4712 0 : arg3 = (double)jarg3;
4713 0 : arg4 = (double)jarg4;
4714 0 : arg5 = (double)jarg5;
4715 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetMC(arg1,arg2,arg3,arg4,arg5);
4716 : {
4717 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4718 0 : if (result != 0 && bUseExceptions) {
4719 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4720 : OGRErrMessages(result));
4721 0 : return 0;
4722 : }
4723 0 : jresult = (jint)result;
4724 : }
4725 : {
4726 : /* %typemap(ret) OGRErr */
4727 : }
4728 0 : return jresult;
4729 : }
4730 :
4731 :
4732 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetMercator(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4733 0 : jint jresult = 0 ;
4734 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4735 : double arg2 ;
4736 : double arg3 ;
4737 : double arg4 ;
4738 : double arg5 ;
4739 : double arg6 ;
4740 : OGRErr result;
4741 :
4742 : (void)jenv;
4743 : (void)jcls;
4744 : (void)jarg1_;
4745 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4746 0 : arg2 = (double)jarg2;
4747 0 : arg3 = (double)jarg3;
4748 0 : arg4 = (double)jarg4;
4749 0 : arg5 = (double)jarg5;
4750 0 : arg6 = (double)jarg6;
4751 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetMercator(arg1,arg2,arg3,arg4,arg5,arg6);
4752 : {
4753 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4754 0 : if (result != 0 && bUseExceptions) {
4755 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4756 : OGRErrMessages(result));
4757 0 : return 0;
4758 : }
4759 0 : jresult = (jint)result;
4760 : }
4761 : {
4762 : /* %typemap(ret) OGRErr */
4763 : }
4764 0 : return jresult;
4765 : }
4766 :
4767 :
4768 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetMercator2SP(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4769 0 : jint jresult = 0 ;
4770 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4771 : double arg2 ;
4772 : double arg3 ;
4773 : double arg4 ;
4774 : double arg5 ;
4775 : double arg6 ;
4776 : OGRErr result;
4777 :
4778 : (void)jenv;
4779 : (void)jcls;
4780 : (void)jarg1_;
4781 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4782 0 : arg2 = (double)jarg2;
4783 0 : arg3 = (double)jarg3;
4784 0 : arg4 = (double)jarg4;
4785 0 : arg5 = (double)jarg5;
4786 0 : arg6 = (double)jarg6;
4787 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetMercator2SP(arg1,arg2,arg3,arg4,arg5,arg6);
4788 : {
4789 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4790 0 : if (result != 0 && bUseExceptions) {
4791 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4792 : OGRErrMessages(result));
4793 0 : return 0;
4794 : }
4795 0 : jresult = (jint)result;
4796 : }
4797 : {
4798 : /* %typemap(ret) OGRErr */
4799 : }
4800 0 : return jresult;
4801 : }
4802 :
4803 :
4804 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetMollweide(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
4805 0 : jint jresult = 0 ;
4806 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4807 : double arg2 ;
4808 : double arg3 ;
4809 : double arg4 ;
4810 : OGRErr result;
4811 :
4812 : (void)jenv;
4813 : (void)jcls;
4814 : (void)jarg1_;
4815 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4816 0 : arg2 = (double)jarg2;
4817 0 : arg3 = (double)jarg3;
4818 0 : arg4 = (double)jarg4;
4819 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetMollweide(arg1,arg2,arg3,arg4);
4820 : {
4821 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4822 0 : if (result != 0 && bUseExceptions) {
4823 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4824 : OGRErrMessages(result));
4825 0 : return 0;
4826 : }
4827 0 : jresult = (jint)result;
4828 : }
4829 : {
4830 : /* %typemap(ret) OGRErr */
4831 : }
4832 0 : return jresult;
4833 : }
4834 :
4835 :
4836 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetNZMG(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4837 0 : jint jresult = 0 ;
4838 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4839 : double arg2 ;
4840 : double arg3 ;
4841 : double arg4 ;
4842 : double arg5 ;
4843 : OGRErr result;
4844 :
4845 : (void)jenv;
4846 : (void)jcls;
4847 : (void)jarg1_;
4848 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4849 0 : arg2 = (double)jarg2;
4850 0 : arg3 = (double)jarg3;
4851 0 : arg4 = (double)jarg4;
4852 0 : arg5 = (double)jarg5;
4853 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetNZMG(arg1,arg2,arg3,arg4,arg5);
4854 : {
4855 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4856 0 : if (result != 0 && bUseExceptions) {
4857 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4858 : OGRErrMessages(result));
4859 0 : return 0;
4860 : }
4861 0 : jresult = (jint)result;
4862 : }
4863 : {
4864 : /* %typemap(ret) OGRErr */
4865 : }
4866 0 : return jresult;
4867 : }
4868 :
4869 :
4870 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetOS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4871 0 : jint jresult = 0 ;
4872 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4873 : double arg2 ;
4874 : double arg3 ;
4875 : double arg4 ;
4876 : double arg5 ;
4877 : double arg6 ;
4878 : OGRErr result;
4879 :
4880 : (void)jenv;
4881 : (void)jcls;
4882 : (void)jarg1_;
4883 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4884 0 : arg2 = (double)jarg2;
4885 0 : arg3 = (double)jarg3;
4886 0 : arg4 = (double)jarg4;
4887 0 : arg5 = (double)jarg5;
4888 0 : arg6 = (double)jarg6;
4889 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetOS(arg1,arg2,arg3,arg4,arg5,arg6);
4890 : {
4891 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4892 0 : if (result != 0 && bUseExceptions) {
4893 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4894 : OGRErrMessages(result));
4895 0 : return 0;
4896 : }
4897 0 : jresult = (jint)result;
4898 : }
4899 : {
4900 : /* %typemap(ret) OGRErr */
4901 : }
4902 0 : return jresult;
4903 : }
4904 :
4905 :
4906 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetOrthographic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4907 0 : jint jresult = 0 ;
4908 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4909 : double arg2 ;
4910 : double arg3 ;
4911 : double arg4 ;
4912 : double arg5 ;
4913 : OGRErr result;
4914 :
4915 : (void)jenv;
4916 : (void)jcls;
4917 : (void)jarg1_;
4918 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4919 0 : arg2 = (double)jarg2;
4920 0 : arg3 = (double)jarg3;
4921 0 : arg4 = (double)jarg4;
4922 0 : arg5 = (double)jarg5;
4923 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetOrthographic(arg1,arg2,arg3,arg4,arg5);
4924 : {
4925 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4926 0 : if (result != 0 && bUseExceptions) {
4927 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4928 : OGRErrMessages(result));
4929 0 : return 0;
4930 : }
4931 0 : jresult = (jint)result;
4932 : }
4933 : {
4934 : /* %typemap(ret) OGRErr */
4935 : }
4936 0 : return jresult;
4937 : }
4938 :
4939 :
4940 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetPolyconic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
4941 0 : jint jresult = 0 ;
4942 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4943 : double arg2 ;
4944 : double arg3 ;
4945 : double arg4 ;
4946 : double arg5 ;
4947 : OGRErr result;
4948 :
4949 : (void)jenv;
4950 : (void)jcls;
4951 : (void)jarg1_;
4952 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4953 0 : arg2 = (double)jarg2;
4954 0 : arg3 = (double)jarg3;
4955 0 : arg4 = (double)jarg4;
4956 0 : arg5 = (double)jarg5;
4957 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetPolyconic(arg1,arg2,arg3,arg4,arg5);
4958 : {
4959 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4960 0 : if (result != 0 && bUseExceptions) {
4961 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4962 : OGRErrMessages(result));
4963 0 : return 0;
4964 : }
4965 0 : jresult = (jint)result;
4966 : }
4967 : {
4968 : /* %typemap(ret) OGRErr */
4969 : }
4970 0 : return jresult;
4971 : }
4972 :
4973 :
4974 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetPS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
4975 0 : jint jresult = 0 ;
4976 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
4977 : double arg2 ;
4978 : double arg3 ;
4979 : double arg4 ;
4980 : double arg5 ;
4981 : double arg6 ;
4982 : OGRErr result;
4983 :
4984 : (void)jenv;
4985 : (void)jcls;
4986 : (void)jarg1_;
4987 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
4988 0 : arg2 = (double)jarg2;
4989 0 : arg3 = (double)jarg3;
4990 0 : arg4 = (double)jarg4;
4991 0 : arg5 = (double)jarg5;
4992 0 : arg6 = (double)jarg6;
4993 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetPS(arg1,arg2,arg3,arg4,arg5,arg6);
4994 : {
4995 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
4996 0 : if (result != 0 && bUseExceptions) {
4997 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
4998 : OGRErrMessages(result));
4999 0 : return 0;
5000 : }
5001 0 : jresult = (jint)result;
5002 : }
5003 : {
5004 : /* %typemap(ret) OGRErr */
5005 : }
5006 0 : return jresult;
5007 : }
5008 :
5009 :
5010 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetRobinson(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
5011 0 : jint jresult = 0 ;
5012 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5013 : double arg2 ;
5014 : double arg3 ;
5015 : double arg4 ;
5016 : OGRErr result;
5017 :
5018 : (void)jenv;
5019 : (void)jcls;
5020 : (void)jarg1_;
5021 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5022 0 : arg2 = (double)jarg2;
5023 0 : arg3 = (double)jarg3;
5024 0 : arg4 = (double)jarg4;
5025 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetRobinson(arg1,arg2,arg3,arg4);
5026 : {
5027 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5028 0 : if (result != 0 && bUseExceptions) {
5029 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5030 : OGRErrMessages(result));
5031 0 : return 0;
5032 : }
5033 0 : jresult = (jint)result;
5034 : }
5035 : {
5036 : /* %typemap(ret) OGRErr */
5037 : }
5038 0 : return jresult;
5039 : }
5040 :
5041 :
5042 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetSinusoidal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
5043 0 : jint jresult = 0 ;
5044 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5045 : double arg2 ;
5046 : double arg3 ;
5047 : double arg4 ;
5048 : OGRErr result;
5049 :
5050 : (void)jenv;
5051 : (void)jcls;
5052 : (void)jarg1_;
5053 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5054 0 : arg2 = (double)jarg2;
5055 0 : arg3 = (double)jarg3;
5056 0 : arg4 = (double)jarg4;
5057 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetSinusoidal(arg1,arg2,arg3,arg4);
5058 : {
5059 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5060 0 : if (result != 0 && bUseExceptions) {
5061 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5062 : OGRErrMessages(result));
5063 0 : return 0;
5064 : }
5065 0 : jresult = (jint)result;
5066 : }
5067 : {
5068 : /* %typemap(ret) OGRErr */
5069 : }
5070 0 : return jresult;
5071 : }
5072 :
5073 :
5074 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetStereographic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
5075 0 : jint jresult = 0 ;
5076 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5077 : double arg2 ;
5078 : double arg3 ;
5079 : double arg4 ;
5080 : double arg5 ;
5081 : double arg6 ;
5082 : OGRErr result;
5083 :
5084 : (void)jenv;
5085 : (void)jcls;
5086 : (void)jarg1_;
5087 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5088 0 : arg2 = (double)jarg2;
5089 0 : arg3 = (double)jarg3;
5090 0 : arg4 = (double)jarg4;
5091 0 : arg5 = (double)jarg5;
5092 0 : arg6 = (double)jarg6;
5093 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetStereographic(arg1,arg2,arg3,arg4,arg5,arg6);
5094 : {
5095 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5096 0 : if (result != 0 && bUseExceptions) {
5097 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5098 : OGRErrMessages(result));
5099 0 : return 0;
5100 : }
5101 0 : jresult = (jint)result;
5102 : }
5103 : {
5104 : /* %typemap(ret) OGRErr */
5105 : }
5106 0 : return jresult;
5107 : }
5108 :
5109 :
5110 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetSOC(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
5111 0 : jint jresult = 0 ;
5112 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5113 : double arg2 ;
5114 : double arg3 ;
5115 : double arg4 ;
5116 : double arg5 ;
5117 : OGRErr result;
5118 :
5119 : (void)jenv;
5120 : (void)jcls;
5121 : (void)jarg1_;
5122 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5123 0 : arg2 = (double)jarg2;
5124 0 : arg3 = (double)jarg3;
5125 0 : arg4 = (double)jarg4;
5126 0 : arg5 = (double)jarg5;
5127 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetSOC(arg1,arg2,arg3,arg4,arg5);
5128 : {
5129 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5130 0 : if (result != 0 && bUseExceptions) {
5131 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5132 : OGRErrMessages(result));
5133 0 : return 0;
5134 : }
5135 0 : jresult = (jint)result;
5136 : }
5137 : {
5138 : /* %typemap(ret) OGRErr */
5139 : }
5140 0 : return jresult;
5141 : }
5142 :
5143 :
5144 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetTM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
5145 0 : jint jresult = 0 ;
5146 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5147 : double arg2 ;
5148 : double arg3 ;
5149 : double arg4 ;
5150 : double arg5 ;
5151 : double arg6 ;
5152 : OGRErr result;
5153 :
5154 : (void)jenv;
5155 : (void)jcls;
5156 : (void)jarg1_;
5157 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5158 0 : arg2 = (double)jarg2;
5159 0 : arg3 = (double)jarg3;
5160 0 : arg4 = (double)jarg4;
5161 0 : arg5 = (double)jarg5;
5162 0 : arg6 = (double)jarg6;
5163 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetTM(arg1,arg2,arg3,arg4,arg5,arg6);
5164 : {
5165 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5166 0 : if (result != 0 && bUseExceptions) {
5167 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5168 : OGRErrMessages(result));
5169 0 : return 0;
5170 : }
5171 0 : jresult = (jint)result;
5172 : }
5173 : {
5174 : /* %typemap(ret) OGRErr */
5175 : }
5176 0 : return jresult;
5177 : }
5178 :
5179 :
5180 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetTMVariant(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7) {
5181 0 : jint jresult = 0 ;
5182 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5183 0 : char *arg2 = (char *) 0 ;
5184 : double arg3 ;
5185 : double arg4 ;
5186 : double arg5 ;
5187 : double arg6 ;
5188 : double arg7 ;
5189 : OGRErr result;
5190 :
5191 : (void)jenv;
5192 : (void)jcls;
5193 : (void)jarg1_;
5194 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5195 0 : arg2 = 0;
5196 0 : if (jarg2) {
5197 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5198 0 : if (!arg2) return 0;
5199 : }
5200 0 : arg3 = (double)jarg3;
5201 0 : arg4 = (double)jarg4;
5202 0 : arg5 = (double)jarg5;
5203 0 : arg6 = (double)jarg6;
5204 0 : arg7 = (double)jarg7;
5205 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetTMVariant(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
5206 : {
5207 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5208 0 : if (result != 0 && bUseExceptions) {
5209 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5210 : OGRErrMessages(result));
5211 0 : return 0;
5212 : }
5213 0 : jresult = (jint)result;
5214 : }
5215 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5216 : {
5217 : /* %typemap(ret) OGRErr */
5218 : }
5219 0 : return jresult;
5220 : }
5221 :
5222 :
5223 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetTMG(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
5224 0 : jint jresult = 0 ;
5225 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5226 : double arg2 ;
5227 : double arg3 ;
5228 : double arg4 ;
5229 : double arg5 ;
5230 : OGRErr result;
5231 :
5232 : (void)jenv;
5233 : (void)jcls;
5234 : (void)jarg1_;
5235 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5236 0 : arg2 = (double)jarg2;
5237 0 : arg3 = (double)jarg3;
5238 0 : arg4 = (double)jarg4;
5239 0 : arg5 = (double)jarg5;
5240 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetTMG(arg1,arg2,arg3,arg4,arg5);
5241 : {
5242 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5243 0 : if (result != 0 && bUseExceptions) {
5244 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5245 : OGRErrMessages(result));
5246 0 : return 0;
5247 : }
5248 0 : jresult = (jint)result;
5249 : }
5250 : {
5251 : /* %typemap(ret) OGRErr */
5252 : }
5253 0 : return jresult;
5254 : }
5255 :
5256 :
5257 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetTMSO(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
5258 0 : jint jresult = 0 ;
5259 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5260 : double arg2 ;
5261 : double arg3 ;
5262 : double arg4 ;
5263 : double arg5 ;
5264 : double arg6 ;
5265 : OGRErr result;
5266 :
5267 : (void)jenv;
5268 : (void)jcls;
5269 : (void)jarg1_;
5270 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5271 0 : arg2 = (double)jarg2;
5272 0 : arg3 = (double)jarg3;
5273 0 : arg4 = (double)jarg4;
5274 0 : arg5 = (double)jarg5;
5275 0 : arg6 = (double)jarg6;
5276 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetTMSO(arg1,arg2,arg3,arg4,arg5,arg6);
5277 : {
5278 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5279 0 : if (result != 0 && bUseExceptions) {
5280 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5281 : OGRErrMessages(result));
5282 0 : return 0;
5283 : }
5284 0 : jresult = (jint)result;
5285 : }
5286 : {
5287 : /* %typemap(ret) OGRErr */
5288 : }
5289 0 : return jresult;
5290 : }
5291 :
5292 :
5293 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetVDG(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4) {
5294 0 : jint jresult = 0 ;
5295 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5296 : double arg2 ;
5297 : double arg3 ;
5298 : double arg4 ;
5299 : OGRErr result;
5300 :
5301 : (void)jenv;
5302 : (void)jcls;
5303 : (void)jarg1_;
5304 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5305 0 : arg2 = (double)jarg2;
5306 0 : arg3 = (double)jarg3;
5307 0 : arg4 = (double)jarg4;
5308 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetVDG(arg1,arg2,arg3,arg4);
5309 : {
5310 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5311 0 : if (result != 0 && bUseExceptions) {
5312 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5313 : OGRErrMessages(result));
5314 0 : return 0;
5315 : }
5316 0 : jresult = (jint)result;
5317 : }
5318 : {
5319 : /* %typemap(ret) OGRErr */
5320 : }
5321 0 : return jresult;
5322 : }
5323 :
5324 :
5325 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetVerticalPerspective(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7) {
5326 0 : jint jresult = 0 ;
5327 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5328 : double arg2 ;
5329 : double arg3 ;
5330 : double arg4 ;
5331 : double arg5 ;
5332 : double arg6 ;
5333 : double arg7 ;
5334 : OGRErr result;
5335 :
5336 : (void)jenv;
5337 : (void)jcls;
5338 : (void)jarg1_;
5339 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5340 0 : arg2 = (double)jarg2;
5341 0 : arg3 = (double)jarg3;
5342 0 : arg4 = (double)jarg4;
5343 0 : arg5 = (double)jarg5;
5344 0 : arg6 = (double)jarg6;
5345 0 : arg7 = (double)jarg7;
5346 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetVerticalPerspective(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
5347 : {
5348 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5349 0 : if (result != 0 && bUseExceptions) {
5350 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5351 : OGRErrMessages(result));
5352 0 : return 0;
5353 : }
5354 0 : jresult = (jint)result;
5355 : }
5356 : {
5357 : /* %typemap(ret) OGRErr */
5358 : }
5359 0 : return jresult;
5360 : }
5361 :
5362 :
5363 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetWellKnownGeogCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
5364 0 : jint jresult = 0 ;
5365 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5366 0 : char *arg2 = (char *) 0 ;
5367 : OGRErr result;
5368 :
5369 : (void)jenv;
5370 : (void)jcls;
5371 : (void)jarg1_;
5372 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5373 0 : arg2 = 0;
5374 0 : if (jarg2) {
5375 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5376 0 : if (!arg2) return 0;
5377 : }
5378 : {
5379 0 : if (!arg2) {
5380 : {
5381 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
5382 : };
5383 : }
5384 : }
5385 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetWellKnownGeogCS(arg1,(char const *)arg2);
5386 : {
5387 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5388 0 : if (result != 0 && bUseExceptions) {
5389 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5390 : OGRErrMessages(result));
5391 0 : return 0;
5392 : }
5393 0 : jresult = (jint)result;
5394 : }
5395 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5396 : {
5397 : /* %typemap(ret) OGRErr */
5398 : }
5399 0 : return jresult;
5400 : }
5401 :
5402 :
5403 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetFromUserInput_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jobject jarg3) {
5404 0 : jint jresult = 0 ;
5405 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5406 0 : char *arg2 = (char *) 0 ;
5407 0 : char **arg3 = (char **) 0 ;
5408 : OGRErr result;
5409 :
5410 : (void)jenv;
5411 : (void)jcls;
5412 : (void)jarg1_;
5413 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5414 0 : arg2 = 0;
5415 0 : if (jarg2) {
5416 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5417 0 : if (!arg2) return 0;
5418 : }
5419 : {
5420 : /* %typemap(in) char **options */
5421 0 : arg3 = NULL;
5422 0 : if(jarg3 != 0) {
5423 0 : const jclass vector = jenv->FindClass("java/util/Vector");
5424 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
5425 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
5426 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
5427 : "()Ljava/util/Enumeration;");
5428 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
5429 : "hasMoreElements", "()Z");
5430 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
5431 : "nextElement", "()Ljava/lang/Object;");
5432 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
5433 0 : hasMoreElements == NULL || getNextElement == NULL) {
5434 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
5435 0 : return 0;
5436 : }
5437 0 : for (jobject keys = jenv->CallObjectMethod(jarg3, elements);
5438 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
5439 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
5440 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
5441 : {
5442 0 : CSLDestroy(arg3);
5443 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
5444 0 : return 0;
5445 : }
5446 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
5447 0 : arg3 = CSLAddString(arg3, valptr);
5448 0 : jenv->ReleaseStringUTFChars(value, valptr);
5449 : }
5450 : }
5451 : }
5452 : {
5453 0 : if (!arg2) {
5454 : {
5455 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
5456 : };
5457 : }
5458 : }
5459 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetFromUserInput__SWIG_0(arg1,(char const *)arg2,arg3);
5460 : {
5461 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5462 0 : if (result != 0 && bUseExceptions) {
5463 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5464 : OGRErrMessages(result));
5465 0 : return 0;
5466 : }
5467 0 : jresult = (jint)result;
5468 : }
5469 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5470 : {
5471 : /* %typemap(freearg) char **options */
5472 0 : CSLDestroy( arg3 );
5473 : }
5474 : {
5475 : /* %typemap(ret) OGRErr */
5476 : }
5477 0 : return jresult;
5478 : }
5479 :
5480 :
5481 4 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetFromUserInput_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
5482 4 : jint jresult = 0 ;
5483 4 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5484 4 : char *arg2 = (char *) 0 ;
5485 : OGRErr result;
5486 :
5487 : (void)jenv;
5488 : (void)jcls;
5489 : (void)jarg1_;
5490 4 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5491 4 : arg2 = 0;
5492 4 : if (jarg2) {
5493 4 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5494 4 : if (!arg2) return 0;
5495 : }
5496 : {
5497 4 : if (!arg2) {
5498 : {
5499 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
5500 : };
5501 : }
5502 : }
5503 4 : result = (OGRErr)OSRSpatialReferenceShadow_SetFromUserInput__SWIG_0(arg1,(char const *)arg2);
5504 : {
5505 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5506 4 : if (result != 0 && bUseExceptions) {
5507 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5508 : OGRErrMessages(result));
5509 0 : return 0;
5510 : }
5511 4 : jresult = (jint)result;
5512 : }
5513 4 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5514 : {
5515 : /* %typemap(ret) OGRErr */
5516 : }
5517 4 : return jresult;
5518 : }
5519 :
5520 :
5521 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1CopyGeogCSFrom(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
5522 0 : jint jresult = 0 ;
5523 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5524 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
5525 : OGRErr result;
5526 :
5527 : (void)jenv;
5528 : (void)jcls;
5529 : (void)jarg1_;
5530 : (void)jarg2_;
5531 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5532 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
5533 : {
5534 0 : if (!arg2) {
5535 : {
5536 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
5537 : };
5538 : }
5539 : }
5540 0 : result = (OGRErr)OSRSpatialReferenceShadow_CopyGeogCSFrom(arg1,arg2);
5541 : {
5542 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5543 0 : if (result != 0 && bUseExceptions) {
5544 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5545 : OGRErrMessages(result));
5546 0 : return 0;
5547 : }
5548 0 : jresult = (jint)result;
5549 : }
5550 : {
5551 : /* %typemap(ret) OGRErr */
5552 : }
5553 0 : return jresult;
5554 : }
5555 :
5556 :
5557 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetTOWGS84(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jdouble jarg7, jdouble jarg8) {
5558 0 : jint jresult = 0 ;
5559 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5560 : double arg2 ;
5561 : double arg3 ;
5562 : double arg4 ;
5563 : double arg5 ;
5564 : double arg6 ;
5565 : double arg7 ;
5566 : double arg8 ;
5567 : OGRErr result;
5568 :
5569 : (void)jenv;
5570 : (void)jcls;
5571 : (void)jarg1_;
5572 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5573 0 : arg2 = (double)jarg2;
5574 0 : arg3 = (double)jarg3;
5575 0 : arg4 = (double)jarg4;
5576 0 : arg5 = (double)jarg5;
5577 0 : arg6 = (double)jarg6;
5578 0 : arg7 = (double)jarg7;
5579 0 : arg8 = (double)jarg8;
5580 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetTOWGS84(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5581 : {
5582 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5583 0 : if (result != 0 && bUseExceptions) {
5584 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5585 : OGRErrMessages(result));
5586 0 : return 0;
5587 : }
5588 0 : jresult = (jint)result;
5589 : }
5590 : {
5591 : /* %typemap(ret) OGRErr */
5592 : }
5593 0 : return jresult;
5594 : }
5595 :
5596 :
5597 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1HasTOWGS84(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
5598 0 : jboolean jresult = 0 ;
5599 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5600 : bool result;
5601 :
5602 : (void)jenv;
5603 : (void)jcls;
5604 : (void)jarg1_;
5605 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5606 0 : result = (bool)OSRSpatialReferenceShadow_HasTOWGS84(arg1);
5607 0 : jresult = (jboolean)result;
5608 0 : return jresult;
5609 : }
5610 :
5611 :
5612 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1GetTOWGS84(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2) {
5613 0 : jint jresult = 0 ;
5614 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5615 : double *arg2 ;
5616 : OGRErr result;
5617 :
5618 : (void)jenv;
5619 : (void)jcls;
5620 : (void)jarg1_;
5621 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5622 : {
5623 : /* %typemap(in) (double argout[ANY]) */
5624 0 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 7) {
5625 : char errorMsg[128];
5626 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 7);
5627 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
5628 0 : return 0;
5629 : }
5630 0 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
5631 : }
5632 0 : result = (OGRErr)OSRSpatialReferenceShadow_GetTOWGS84(arg1,arg2);
5633 : {
5634 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5635 0 : if (result != 0 && bUseExceptions) {
5636 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5637 : OGRErrMessages(result));
5638 0 : return 0;
5639 : }
5640 0 : jresult = (jint)result;
5641 : }
5642 : {
5643 : /* %typemap(argout) (double argout[ANY]) */
5644 : }
5645 : {
5646 : /* %typemap(freearg) (double argout[ANY]) */
5647 0 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
5648 : }
5649 : {
5650 : /* %typemap(ret) OGRErr */
5651 : }
5652 0 : return jresult;
5653 : }
5654 :
5655 :
5656 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1AddGuessedTOWGS84(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
5657 0 : jint jresult = 0 ;
5658 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5659 : OGRErr result;
5660 :
5661 : (void)jenv;
5662 : (void)jcls;
5663 : (void)jarg1_;
5664 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5665 0 : result = (OGRErr)OSRSpatialReferenceShadow_AddGuessedTOWGS84(arg1);
5666 : {
5667 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5668 0 : if (result != 0 && bUseExceptions) {
5669 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5670 : OGRErrMessages(result));
5671 0 : return 0;
5672 : }
5673 0 : jresult = (jint)result;
5674 : }
5675 : {
5676 : /* %typemap(ret) OGRErr */
5677 : }
5678 0 : return jresult;
5679 : }
5680 :
5681 :
5682 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetLocalCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
5683 0 : jint jresult = 0 ;
5684 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5685 0 : char *arg2 = (char *) 0 ;
5686 : OGRErr result;
5687 :
5688 : (void)jenv;
5689 : (void)jcls;
5690 : (void)jarg1_;
5691 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5692 0 : arg2 = 0;
5693 0 : if (jarg2) {
5694 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5695 0 : if (!arg2) return 0;
5696 : }
5697 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetLocalCS(arg1,(char const *)arg2);
5698 : {
5699 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5700 0 : if (result != 0 && bUseExceptions) {
5701 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5702 : OGRErrMessages(result));
5703 0 : return 0;
5704 : }
5705 0 : jresult = (jint)result;
5706 : }
5707 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5708 : {
5709 : /* %typemap(ret) OGRErr */
5710 : }
5711 0 : return jresult;
5712 : }
5713 :
5714 :
5715 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeogCS_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jdouble jarg5, jdouble jarg6, jstring jarg7, jdouble jarg8, jstring jarg9, jdouble jarg10) {
5716 0 : jint jresult = 0 ;
5717 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5718 0 : char *arg2 = (char *) 0 ;
5719 0 : char *arg3 = (char *) 0 ;
5720 0 : char *arg4 = (char *) 0 ;
5721 : double arg5 ;
5722 : double arg6 ;
5723 0 : char *arg7 = (char *) 0 ;
5724 : double arg8 ;
5725 0 : char *arg9 = (char *) 0 ;
5726 : double arg10 ;
5727 : OGRErr result;
5728 :
5729 : (void)jenv;
5730 : (void)jcls;
5731 : (void)jarg1_;
5732 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5733 0 : arg2 = 0;
5734 0 : if (jarg2) {
5735 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5736 0 : if (!arg2) return 0;
5737 : }
5738 0 : arg3 = 0;
5739 0 : if (jarg3) {
5740 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
5741 0 : if (!arg3) return 0;
5742 : }
5743 0 : arg4 = 0;
5744 0 : if (jarg4) {
5745 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
5746 0 : if (!arg4) return 0;
5747 : }
5748 0 : arg5 = (double)jarg5;
5749 0 : arg6 = (double)jarg6;
5750 0 : arg7 = 0;
5751 0 : if (jarg7) {
5752 0 : arg7 = (char *)jenv->GetStringUTFChars(jarg7, 0);
5753 0 : if (!arg7) return 0;
5754 : }
5755 0 : arg8 = (double)jarg8;
5756 0 : arg9 = 0;
5757 0 : if (jarg9) {
5758 0 : arg9 = (char *)jenv->GetStringUTFChars(jarg9, 0);
5759 0 : if (!arg9) return 0;
5760 : }
5761 0 : arg10 = (double)jarg10;
5762 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,arg8,(char const *)arg9,arg10);
5763 : {
5764 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5765 0 : if (result != 0 && bUseExceptions) {
5766 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5767 : OGRErrMessages(result));
5768 0 : return 0;
5769 : }
5770 0 : jresult = (jint)result;
5771 : }
5772 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5773 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
5774 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
5775 0 : if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7);
5776 0 : if (arg9) jenv->ReleaseStringUTFChars(jarg9, (const char *)arg9);
5777 : {
5778 : /* %typemap(ret) OGRErr */
5779 : }
5780 0 : return jresult;
5781 : }
5782 :
5783 :
5784 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeogCS_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jdouble jarg5, jdouble jarg6, jstring jarg7, jdouble jarg8, jstring jarg9) {
5785 0 : jint jresult = 0 ;
5786 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5787 0 : char *arg2 = (char *) 0 ;
5788 0 : char *arg3 = (char *) 0 ;
5789 0 : char *arg4 = (char *) 0 ;
5790 : double arg5 ;
5791 : double arg6 ;
5792 0 : char *arg7 = (char *) 0 ;
5793 : double arg8 ;
5794 0 : char *arg9 = (char *) 0 ;
5795 : OGRErr result;
5796 :
5797 : (void)jenv;
5798 : (void)jcls;
5799 : (void)jarg1_;
5800 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5801 0 : arg2 = 0;
5802 0 : if (jarg2) {
5803 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5804 0 : if (!arg2) return 0;
5805 : }
5806 0 : arg3 = 0;
5807 0 : if (jarg3) {
5808 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
5809 0 : if (!arg3) return 0;
5810 : }
5811 0 : arg4 = 0;
5812 0 : if (jarg4) {
5813 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
5814 0 : if (!arg4) return 0;
5815 : }
5816 0 : arg5 = (double)jarg5;
5817 0 : arg6 = (double)jarg6;
5818 0 : arg7 = 0;
5819 0 : if (jarg7) {
5820 0 : arg7 = (char *)jenv->GetStringUTFChars(jarg7, 0);
5821 0 : if (!arg7) return 0;
5822 : }
5823 0 : arg8 = (double)jarg8;
5824 0 : arg9 = 0;
5825 0 : if (jarg9) {
5826 0 : arg9 = (char *)jenv->GetStringUTFChars(jarg9, 0);
5827 0 : if (!arg9) return 0;
5828 : }
5829 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,arg8,(char const *)arg9);
5830 : {
5831 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5832 0 : if (result != 0 && bUseExceptions) {
5833 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5834 : OGRErrMessages(result));
5835 0 : return 0;
5836 : }
5837 0 : jresult = (jint)result;
5838 : }
5839 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5840 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
5841 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
5842 0 : if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7);
5843 0 : if (arg9) jenv->ReleaseStringUTFChars(jarg9, (const char *)arg9);
5844 : {
5845 : /* %typemap(ret) OGRErr */
5846 : }
5847 0 : return jresult;
5848 : }
5849 :
5850 :
5851 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeogCS_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jdouble jarg5, jdouble jarg6, jstring jarg7, jdouble jarg8) {
5852 0 : jint jresult = 0 ;
5853 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5854 0 : char *arg2 = (char *) 0 ;
5855 0 : char *arg3 = (char *) 0 ;
5856 0 : char *arg4 = (char *) 0 ;
5857 : double arg5 ;
5858 : double arg6 ;
5859 0 : char *arg7 = (char *) 0 ;
5860 : double arg8 ;
5861 : OGRErr result;
5862 :
5863 : (void)jenv;
5864 : (void)jcls;
5865 : (void)jarg1_;
5866 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5867 0 : arg2 = 0;
5868 0 : if (jarg2) {
5869 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5870 0 : if (!arg2) return 0;
5871 : }
5872 0 : arg3 = 0;
5873 0 : if (jarg3) {
5874 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
5875 0 : if (!arg3) return 0;
5876 : }
5877 0 : arg4 = 0;
5878 0 : if (jarg4) {
5879 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
5880 0 : if (!arg4) return 0;
5881 : }
5882 0 : arg5 = (double)jarg5;
5883 0 : arg6 = (double)jarg6;
5884 0 : arg7 = 0;
5885 0 : if (jarg7) {
5886 0 : arg7 = (char *)jenv->GetStringUTFChars(jarg7, 0);
5887 0 : if (!arg7) return 0;
5888 : }
5889 0 : arg8 = (double)jarg8;
5890 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7,arg8);
5891 : {
5892 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5893 0 : if (result != 0 && bUseExceptions) {
5894 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5895 : OGRErrMessages(result));
5896 0 : return 0;
5897 : }
5898 0 : jresult = (jint)result;
5899 : }
5900 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5901 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
5902 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
5903 0 : if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7);
5904 : {
5905 : /* %typemap(ret) OGRErr */
5906 : }
5907 0 : return jresult;
5908 : }
5909 :
5910 :
5911 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeogCS_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jdouble jarg5, jdouble jarg6, jstring jarg7) {
5912 0 : jint jresult = 0 ;
5913 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5914 0 : char *arg2 = (char *) 0 ;
5915 0 : char *arg3 = (char *) 0 ;
5916 0 : char *arg4 = (char *) 0 ;
5917 : double arg5 ;
5918 : double arg6 ;
5919 0 : char *arg7 = (char *) 0 ;
5920 : OGRErr result;
5921 :
5922 : (void)jenv;
5923 : (void)jcls;
5924 : (void)jarg1_;
5925 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5926 0 : arg2 = 0;
5927 0 : if (jarg2) {
5928 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5929 0 : if (!arg2) return 0;
5930 : }
5931 0 : arg3 = 0;
5932 0 : if (jarg3) {
5933 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
5934 0 : if (!arg3) return 0;
5935 : }
5936 0 : arg4 = 0;
5937 0 : if (jarg4) {
5938 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
5939 0 : if (!arg4) return 0;
5940 : }
5941 0 : arg5 = (double)jarg5;
5942 0 : arg6 = (double)jarg6;
5943 0 : arg7 = 0;
5944 0 : if (jarg7) {
5945 0 : arg7 = (char *)jenv->GetStringUTFChars(jarg7, 0);
5946 0 : if (!arg7) return 0;
5947 : }
5948 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6,(char const *)arg7);
5949 : {
5950 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
5951 0 : if (result != 0 && bUseExceptions) {
5952 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
5953 : OGRErrMessages(result));
5954 0 : return 0;
5955 : }
5956 0 : jresult = (jint)result;
5957 : }
5958 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
5959 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
5960 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
5961 0 : if (arg7) jenv->ReleaseStringUTFChars(jarg7, (const char *)arg7);
5962 : {
5963 : /* %typemap(ret) OGRErr */
5964 : }
5965 0 : return jresult;
5966 : }
5967 :
5968 :
5969 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeogCS_1_1SWIG_14(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jdouble jarg5, jdouble jarg6) {
5970 0 : jint jresult = 0 ;
5971 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
5972 0 : char *arg2 = (char *) 0 ;
5973 0 : char *arg3 = (char *) 0 ;
5974 0 : char *arg4 = (char *) 0 ;
5975 : double arg5 ;
5976 : double arg6 ;
5977 : OGRErr result;
5978 :
5979 : (void)jenv;
5980 : (void)jcls;
5981 : (void)jarg1_;
5982 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
5983 0 : arg2 = 0;
5984 0 : if (jarg2) {
5985 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
5986 0 : if (!arg2) return 0;
5987 : }
5988 0 : arg3 = 0;
5989 0 : if (jarg3) {
5990 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
5991 0 : if (!arg3) return 0;
5992 : }
5993 0 : arg4 = 0;
5994 0 : if (jarg4) {
5995 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
5996 0 : if (!arg4) return 0;
5997 : }
5998 0 : arg5 = (double)jarg5;
5999 0 : arg6 = (double)jarg6;
6000 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeogCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
6001 : {
6002 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6003 0 : if (result != 0 && bUseExceptions) {
6004 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6005 : OGRErrMessages(result));
6006 0 : return 0;
6007 : }
6008 0 : jresult = (jint)result;
6009 : }
6010 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6011 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
6012 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
6013 : {
6014 : /* %typemap(ret) OGRErr */
6015 : }
6016 0 : return jresult;
6017 : }
6018 :
6019 :
6020 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetProjCS_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6021 0 : jint jresult = 0 ;
6022 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6023 0 : char *arg2 = (char *) 0 ;
6024 : OGRErr result;
6025 :
6026 : (void)jenv;
6027 : (void)jcls;
6028 : (void)jarg1_;
6029 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6030 0 : arg2 = 0;
6031 0 : if (jarg2) {
6032 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6033 0 : if (!arg2) return 0;
6034 : }
6035 : {
6036 0 : if (!arg2) {
6037 : {
6038 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6039 : };
6040 : }
6041 : }
6042 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetProjCS__SWIG_0(arg1,(char const *)arg2);
6043 : {
6044 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6045 0 : if (result != 0 && bUseExceptions) {
6046 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6047 : OGRErrMessages(result));
6048 0 : return 0;
6049 : }
6050 0 : jresult = (jint)result;
6051 : }
6052 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6053 : {
6054 : /* %typemap(ret) OGRErr */
6055 : }
6056 0 : return jresult;
6057 : }
6058 :
6059 :
6060 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetProjCS_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
6061 0 : jint jresult = 0 ;
6062 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6063 : OGRErr result;
6064 :
6065 : (void)jenv;
6066 : (void)jcls;
6067 : (void)jarg1_;
6068 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6069 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetProjCS__SWIG_0(arg1);
6070 : {
6071 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6072 0 : if (result != 0 && bUseExceptions) {
6073 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6074 : OGRErrMessages(result));
6075 0 : return 0;
6076 : }
6077 0 : jresult = (jint)result;
6078 : }
6079 : {
6080 : /* %typemap(ret) OGRErr */
6081 : }
6082 0 : return jresult;
6083 : }
6084 :
6085 :
6086 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeocCS_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6087 0 : jint jresult = 0 ;
6088 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6089 0 : char *arg2 = (char *) 0 ;
6090 : OGRErr result;
6091 :
6092 : (void)jenv;
6093 : (void)jcls;
6094 : (void)jarg1_;
6095 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6096 0 : arg2 = 0;
6097 0 : if (jarg2) {
6098 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6099 0 : if (!arg2) return 0;
6100 : }
6101 : {
6102 0 : if (!arg2) {
6103 : {
6104 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6105 : };
6106 : }
6107 : }
6108 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeocCS__SWIG_0(arg1,(char const *)arg2);
6109 : {
6110 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6111 0 : if (result != 0 && bUseExceptions) {
6112 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6113 : OGRErrMessages(result));
6114 0 : return 0;
6115 : }
6116 0 : jresult = (jint)result;
6117 : }
6118 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6119 : {
6120 : /* %typemap(ret) OGRErr */
6121 : }
6122 0 : return jresult;
6123 : }
6124 :
6125 :
6126 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetGeocCS_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
6127 0 : jint jresult = 0 ;
6128 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6129 : OGRErr result;
6130 :
6131 : (void)jenv;
6132 : (void)jcls;
6133 : (void)jarg1_;
6134 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6135 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetGeocCS__SWIG_0(arg1);
6136 : {
6137 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6138 0 : if (result != 0 && bUseExceptions) {
6139 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6140 : OGRErrMessages(result));
6141 0 : return 0;
6142 : }
6143 0 : jresult = (jint)result;
6144 : }
6145 : {
6146 : /* %typemap(ret) OGRErr */
6147 : }
6148 0 : return jresult;
6149 : }
6150 :
6151 :
6152 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetVertCS_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jint jarg4) {
6153 0 : jint jresult = 0 ;
6154 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6155 0 : char *arg2 = (char *) 0 ;
6156 0 : char *arg3 = (char *) 0 ;
6157 : int arg4 ;
6158 : OGRErr result;
6159 :
6160 : (void)jenv;
6161 : (void)jcls;
6162 : (void)jarg1_;
6163 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6164 0 : arg2 = 0;
6165 0 : if (jarg2) {
6166 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6167 0 : if (!arg2) return 0;
6168 : }
6169 0 : arg3 = 0;
6170 0 : if (jarg3) {
6171 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
6172 0 : if (!arg3) return 0;
6173 : }
6174 0 : arg4 = (int)jarg4;
6175 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetVertCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,arg4);
6176 : {
6177 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6178 0 : if (result != 0 && bUseExceptions) {
6179 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6180 : OGRErrMessages(result));
6181 0 : return 0;
6182 : }
6183 0 : jresult = (jint)result;
6184 : }
6185 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6186 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
6187 : {
6188 : /* %typemap(ret) OGRErr */
6189 : }
6190 0 : return jresult;
6191 : }
6192 :
6193 :
6194 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetVertCS_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
6195 0 : jint jresult = 0 ;
6196 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6197 0 : char *arg2 = (char *) 0 ;
6198 0 : char *arg3 = (char *) 0 ;
6199 : OGRErr result;
6200 :
6201 : (void)jenv;
6202 : (void)jcls;
6203 : (void)jarg1_;
6204 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6205 0 : arg2 = 0;
6206 0 : if (jarg2) {
6207 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6208 0 : if (!arg2) return 0;
6209 : }
6210 0 : arg3 = 0;
6211 0 : if (jarg3) {
6212 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
6213 0 : if (!arg3) return 0;
6214 : }
6215 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetVertCS__SWIG_0(arg1,(char const *)arg2,(char const *)arg3);
6216 : {
6217 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6218 0 : if (result != 0 && bUseExceptions) {
6219 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6220 : OGRErrMessages(result));
6221 0 : return 0;
6222 : }
6223 0 : jresult = (jint)result;
6224 : }
6225 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6226 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
6227 : {
6228 : /* %typemap(ret) OGRErr */
6229 : }
6230 0 : return jresult;
6231 : }
6232 :
6233 :
6234 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetVertCS_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6235 0 : jint jresult = 0 ;
6236 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6237 0 : char *arg2 = (char *) 0 ;
6238 : OGRErr result;
6239 :
6240 : (void)jenv;
6241 : (void)jcls;
6242 : (void)jarg1_;
6243 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6244 0 : arg2 = 0;
6245 0 : if (jarg2) {
6246 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6247 0 : if (!arg2) return 0;
6248 : }
6249 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetVertCS__SWIG_0(arg1,(char const *)arg2);
6250 : {
6251 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6252 0 : if (result != 0 && bUseExceptions) {
6253 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6254 : OGRErrMessages(result));
6255 0 : return 0;
6256 : }
6257 0 : jresult = (jint)result;
6258 : }
6259 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6260 : {
6261 : /* %typemap(ret) OGRErr */
6262 : }
6263 0 : return jresult;
6264 : }
6265 :
6266 :
6267 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetVertCS_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
6268 0 : jint jresult = 0 ;
6269 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6270 : OGRErr result;
6271 :
6272 : (void)jenv;
6273 : (void)jcls;
6274 : (void)jarg1_;
6275 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6276 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetVertCS__SWIG_0(arg1);
6277 : {
6278 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6279 0 : if (result != 0 && bUseExceptions) {
6280 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6281 : OGRErrMessages(result));
6282 0 : return 0;
6283 : }
6284 0 : jresult = (jint)result;
6285 : }
6286 : {
6287 : /* %typemap(ret) OGRErr */
6288 : }
6289 0 : return jresult;
6290 : }
6291 :
6292 :
6293 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1SetCompoundCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_) {
6294 0 : jint jresult = 0 ;
6295 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6296 0 : char *arg2 = (char *) 0 ;
6297 0 : OSRSpatialReferenceShadow *arg3 = (OSRSpatialReferenceShadow *) 0 ;
6298 0 : OSRSpatialReferenceShadow *arg4 = (OSRSpatialReferenceShadow *) 0 ;
6299 : OGRErr result;
6300 :
6301 : (void)jenv;
6302 : (void)jcls;
6303 : (void)jarg1_;
6304 : (void)jarg3_;
6305 : (void)jarg4_;
6306 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6307 0 : arg2 = 0;
6308 0 : if (jarg2) {
6309 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6310 0 : if (!arg2) return 0;
6311 : }
6312 0 : arg3 = *(OSRSpatialReferenceShadow **)&jarg3;
6313 0 : arg4 = *(OSRSpatialReferenceShadow **)&jarg4;
6314 : {
6315 0 : if (!arg2) {
6316 : {
6317 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6318 : };
6319 : }
6320 : }
6321 : {
6322 0 : if (!arg3) {
6323 : {
6324 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6325 : };
6326 : }
6327 : }
6328 : {
6329 0 : if (!arg4) {
6330 : {
6331 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6332 : };
6333 : }
6334 : }
6335 0 : result = (OGRErr)OSRSpatialReferenceShadow_SetCompoundCS(arg1,(char const *)arg2,arg3,arg4);
6336 : {
6337 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6338 0 : if (result != 0 && bUseExceptions) {
6339 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6340 : OGRErrMessages(result));
6341 0 : return 0;
6342 : }
6343 0 : jresult = (jint)result;
6344 : }
6345 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6346 : {
6347 : /* %typemap(ret) OGRErr */
6348 : }
6349 0 : return jresult;
6350 : }
6351 :
6352 :
6353 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromWkt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6354 0 : jint jresult = 0 ;
6355 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6356 0 : char **arg2 = (char **) 0 ;
6357 : char *ori_val2 ;
6358 : char *val2 ;
6359 : OGRErr result;
6360 :
6361 : (void)jenv;
6362 : (void)jcls;
6363 : (void)jarg1_;
6364 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6365 : {
6366 : /* %typemap(in) (char **ignorechange) */
6367 0 : ori_val2 = val2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6368 0 : arg2 = &val2;
6369 : }
6370 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromWkt(arg1,arg2);
6371 : {
6372 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6373 0 : if (result != 0 && bUseExceptions) {
6374 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6375 : OGRErrMessages(result));
6376 0 : return 0;
6377 : }
6378 0 : jresult = (jint)result;
6379 : }
6380 : {
6381 : /* %typemap(freearg) (char **ignorechange) */
6382 0 : jenv->ReleaseStringUTFChars(jarg2, ori_val2);
6383 : }
6384 : {
6385 : /* %typemap(ret) OGRErr */
6386 : }
6387 0 : return jresult;
6388 : }
6389 :
6390 :
6391 2 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromProj4(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6392 2 : jint jresult = 0 ;
6393 2 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6394 2 : char *arg2 = (char *) 0 ;
6395 : OGRErr result;
6396 :
6397 : (void)jenv;
6398 : (void)jcls;
6399 : (void)jarg1_;
6400 2 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6401 2 : arg2 = 0;
6402 2 : if (jarg2) {
6403 2 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6404 2 : if (!arg2) return 0;
6405 : }
6406 2 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromProj4(arg1,arg2);
6407 : {
6408 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6409 2 : if (result != 0 && bUseExceptions) {
6410 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6411 : OGRErrMessages(result));
6412 0 : return 0;
6413 : }
6414 2 : jresult = (jint)result;
6415 : }
6416 2 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6417 : {
6418 : /* %typemap(ret) OGRErr */
6419 : }
6420 2 : return jresult;
6421 : }
6422 :
6423 :
6424 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromUrl(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6425 0 : jint jresult = 0 ;
6426 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6427 0 : char *arg2 = (char *) 0 ;
6428 : OGRErr result;
6429 :
6430 : (void)jenv;
6431 : (void)jcls;
6432 : (void)jarg1_;
6433 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6434 0 : arg2 = 0;
6435 0 : if (jarg2) {
6436 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6437 0 : if (!arg2) return 0;
6438 : }
6439 : {
6440 0 : if (!arg2) {
6441 : {
6442 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6443 : };
6444 : }
6445 : }
6446 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUrl(arg1,arg2);
6447 : {
6448 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6449 0 : if (result != 0 && bUseExceptions) {
6450 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6451 : OGRErrMessages(result));
6452 0 : return 0;
6453 : }
6454 0 : jresult = (jint)result;
6455 : }
6456 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6457 : {
6458 : /* %typemap(ret) OGRErr */
6459 : }
6460 0 : return jresult;
6461 : }
6462 :
6463 :
6464 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromESRI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
6465 0 : jint jresult = 0 ;
6466 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6467 0 : char **arg2 = (char **) 0 ;
6468 : OGRErr result;
6469 :
6470 : (void)jenv;
6471 : (void)jcls;
6472 : (void)jarg1_;
6473 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6474 : {
6475 : /* %typemap(in) char **options */
6476 0 : arg2 = NULL;
6477 0 : if(jarg2 != 0) {
6478 0 : const jclass vector = jenv->FindClass("java/util/Vector");
6479 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
6480 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
6481 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
6482 : "()Ljava/util/Enumeration;");
6483 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
6484 : "hasMoreElements", "()Z");
6485 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
6486 : "nextElement", "()Ljava/lang/Object;");
6487 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
6488 0 : hasMoreElements == NULL || getNextElement == NULL) {
6489 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
6490 0 : return 0;
6491 : }
6492 0 : for (jobject keys = jenv->CallObjectMethod(jarg2, elements);
6493 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
6494 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
6495 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
6496 : {
6497 0 : CSLDestroy(arg2);
6498 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
6499 0 : return 0;
6500 : }
6501 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
6502 0 : arg2 = CSLAddString(arg2, valptr);
6503 0 : jenv->ReleaseStringUTFChars(value, valptr);
6504 : }
6505 : }
6506 : }
6507 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromESRI(arg1,arg2);
6508 : {
6509 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6510 0 : if (result != 0 && bUseExceptions) {
6511 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6512 : OGRErrMessages(result));
6513 0 : return 0;
6514 : }
6515 0 : jresult = (jint)result;
6516 : }
6517 : {
6518 : /* %typemap(freearg) char **options */
6519 0 : CSLDestroy( arg2 );
6520 : }
6521 : {
6522 : /* %typemap(ret) OGRErr */
6523 : }
6524 0 : return jresult;
6525 : }
6526 :
6527 :
6528 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromEPSG(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
6529 0 : jint jresult = 0 ;
6530 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6531 : int arg2 ;
6532 : OGRErr result;
6533 :
6534 : (void)jenv;
6535 : (void)jcls;
6536 : (void)jarg1_;
6537 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6538 0 : arg2 = (int)jarg2;
6539 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromEPSG(arg1,arg2);
6540 : {
6541 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6542 0 : if (result != 0 && bUseExceptions) {
6543 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6544 : OGRErrMessages(result));
6545 0 : return 0;
6546 : }
6547 0 : jresult = (jint)result;
6548 : }
6549 : {
6550 : /* %typemap(ret) OGRErr */
6551 : }
6552 0 : return jresult;
6553 : }
6554 :
6555 :
6556 1 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromEPSGA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
6557 1 : jint jresult = 0 ;
6558 1 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6559 : int arg2 ;
6560 : OGRErr result;
6561 :
6562 : (void)jenv;
6563 : (void)jcls;
6564 : (void)jarg1_;
6565 1 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6566 1 : arg2 = (int)jarg2;
6567 1 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromEPSGA(arg1,arg2);
6568 : {
6569 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6570 1 : if (result != 0 && bUseExceptions) {
6571 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6572 : OGRErrMessages(result));
6573 0 : return 0;
6574 : }
6575 1 : jresult = (jint)result;
6576 : }
6577 : {
6578 : /* %typemap(ret) OGRErr */
6579 : }
6580 1 : return jresult;
6581 : }
6582 :
6583 :
6584 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromPCI_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jdoubleArray jarg4) {
6585 0 : jint jresult = 0 ;
6586 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6587 0 : char *arg2 = (char *) 0 ;
6588 0 : char *arg3 = (char *) 0 ;
6589 : double *arg4 ;
6590 : OGRErr result;
6591 :
6592 : (void)jenv;
6593 : (void)jcls;
6594 : (void)jarg1_;
6595 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6596 0 : arg2 = 0;
6597 0 : if (jarg2) {
6598 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6599 0 : if (!arg2) return 0;
6600 : }
6601 0 : arg3 = 0;
6602 0 : if (jarg3) {
6603 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
6604 0 : if (!arg3) return 0;
6605 : }
6606 : {
6607 : /* %typemap(in) (double argin[ANY]) */
6608 0 : if(jarg4 == NULL || jenv->GetArrayLength(jarg4) != 17) {
6609 : char errorMsg[128];
6610 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 17);
6611 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
6612 0 : return 0;
6613 : }
6614 0 : arg4 = (double *)jenv->GetDoubleArrayElements(jarg4, NULL);
6615 : }
6616 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromPCI__SWIG_0(arg1,(char const *)arg2,(char const *)arg3,arg4);
6617 : {
6618 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6619 0 : if (result != 0 && bUseExceptions) {
6620 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6621 : OGRErrMessages(result));
6622 0 : return 0;
6623 : }
6624 0 : jresult = (jint)result;
6625 : }
6626 : {
6627 : /* %typemap(argout) (double argin[ANY]) */
6628 : }
6629 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6630 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
6631 : {
6632 : /* %typemap(freearg) (double argin[ANY]) */
6633 0 : if(arg4) {
6634 0 : jenv->ReleaseDoubleArrayElements(jarg4, (jdouble *)arg4, JNI_ABORT);
6635 : }
6636 : }
6637 : {
6638 : /* %typemap(ret) OGRErr */
6639 : }
6640 0 : return jresult;
6641 : }
6642 :
6643 :
6644 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromPCI_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) {
6645 0 : jint jresult = 0 ;
6646 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6647 0 : char *arg2 = (char *) 0 ;
6648 0 : char *arg3 = (char *) 0 ;
6649 : OGRErr result;
6650 :
6651 : (void)jenv;
6652 : (void)jcls;
6653 : (void)jarg1_;
6654 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6655 0 : arg2 = 0;
6656 0 : if (jarg2) {
6657 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6658 0 : if (!arg2) return 0;
6659 : }
6660 0 : arg3 = 0;
6661 0 : if (jarg3) {
6662 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
6663 0 : if (!arg3) return 0;
6664 : }
6665 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromPCI__SWIG_0(arg1,(char const *)arg2,(char const *)arg3);
6666 : {
6667 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6668 0 : if (result != 0 && bUseExceptions) {
6669 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6670 : OGRErrMessages(result));
6671 0 : return 0;
6672 : }
6673 0 : jresult = (jint)result;
6674 : }
6675 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6676 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
6677 : {
6678 : /* %typemap(ret) OGRErr */
6679 : }
6680 0 : return jresult;
6681 : }
6682 :
6683 :
6684 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromPCI_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6685 0 : jint jresult = 0 ;
6686 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6687 0 : char *arg2 = (char *) 0 ;
6688 : OGRErr result;
6689 :
6690 : (void)jenv;
6691 : (void)jcls;
6692 : (void)jarg1_;
6693 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6694 0 : arg2 = 0;
6695 0 : if (jarg2) {
6696 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6697 0 : if (!arg2) return 0;
6698 : }
6699 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromPCI__SWIG_0(arg1,(char const *)arg2);
6700 : {
6701 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6702 0 : if (result != 0 && bUseExceptions) {
6703 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6704 : OGRErrMessages(result));
6705 0 : return 0;
6706 : }
6707 0 : jresult = (jint)result;
6708 : }
6709 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6710 : {
6711 : /* %typemap(ret) OGRErr */
6712 : }
6713 0 : return jresult;
6714 : }
6715 :
6716 :
6717 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromUSGS_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jdoubleArray jarg4, jint jarg5) {
6718 0 : jint jresult = 0 ;
6719 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6720 : long arg2 ;
6721 : long arg3 ;
6722 : double *arg4 ;
6723 : long arg5 ;
6724 : OGRErr result;
6725 :
6726 : (void)jenv;
6727 : (void)jcls;
6728 : (void)jarg1_;
6729 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6730 0 : arg2 = (long)jarg2;
6731 0 : arg3 = (long)jarg3;
6732 : {
6733 : /* %typemap(in) (double argin[ANY]) */
6734 0 : if(jarg4 == NULL || jenv->GetArrayLength(jarg4) != 15) {
6735 : char errorMsg[128];
6736 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 15);
6737 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
6738 0 : return 0;
6739 : }
6740 0 : arg4 = (double *)jenv->GetDoubleArrayElements(jarg4, NULL);
6741 : }
6742 0 : arg5 = (long)jarg5;
6743 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUSGS__SWIG_0(arg1,arg2,arg3,arg4,arg5);
6744 : {
6745 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6746 0 : if (result != 0 && bUseExceptions) {
6747 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6748 : OGRErrMessages(result));
6749 0 : return 0;
6750 : }
6751 0 : jresult = (jint)result;
6752 : }
6753 : {
6754 : /* %typemap(argout) (double argin[ANY]) */
6755 : }
6756 : {
6757 : /* %typemap(freearg) (double argin[ANY]) */
6758 0 : if(arg4) {
6759 0 : jenv->ReleaseDoubleArrayElements(jarg4, (jdouble *)arg4, JNI_ABORT);
6760 : }
6761 : }
6762 : {
6763 : /* %typemap(ret) OGRErr */
6764 : }
6765 0 : return jresult;
6766 : }
6767 :
6768 :
6769 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromUSGS_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jdoubleArray jarg4) {
6770 0 : jint jresult = 0 ;
6771 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6772 : long arg2 ;
6773 : long arg3 ;
6774 : double *arg4 ;
6775 : OGRErr result;
6776 :
6777 : (void)jenv;
6778 : (void)jcls;
6779 : (void)jarg1_;
6780 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6781 0 : arg2 = (long)jarg2;
6782 0 : arg3 = (long)jarg3;
6783 : {
6784 : /* %typemap(in) (double argin[ANY]) */
6785 0 : if(jarg4 == NULL || jenv->GetArrayLength(jarg4) != 15) {
6786 : char errorMsg[128];
6787 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 15);
6788 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
6789 0 : return 0;
6790 : }
6791 0 : arg4 = (double *)jenv->GetDoubleArrayElements(jarg4, NULL);
6792 : }
6793 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUSGS__SWIG_0(arg1,arg2,arg3,arg4);
6794 : {
6795 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6796 0 : if (result != 0 && bUseExceptions) {
6797 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6798 : OGRErrMessages(result));
6799 0 : return 0;
6800 : }
6801 0 : jresult = (jint)result;
6802 : }
6803 : {
6804 : /* %typemap(argout) (double argin[ANY]) */
6805 : }
6806 : {
6807 : /* %typemap(freearg) (double argin[ANY]) */
6808 0 : if(arg4) {
6809 0 : jenv->ReleaseDoubleArrayElements(jarg4, (jdouble *)arg4, JNI_ABORT);
6810 : }
6811 : }
6812 : {
6813 : /* %typemap(ret) OGRErr */
6814 : }
6815 0 : return jresult;
6816 : }
6817 :
6818 :
6819 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromUSGS_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) {
6820 0 : jint jresult = 0 ;
6821 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6822 : long arg2 ;
6823 : long arg3 ;
6824 : OGRErr result;
6825 :
6826 : (void)jenv;
6827 : (void)jcls;
6828 : (void)jarg1_;
6829 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6830 0 : arg2 = (long)jarg2;
6831 0 : arg3 = (long)jarg3;
6832 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUSGS__SWIG_0(arg1,arg2,arg3);
6833 : {
6834 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6835 0 : if (result != 0 && bUseExceptions) {
6836 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6837 : OGRErrMessages(result));
6838 0 : return 0;
6839 : }
6840 0 : jresult = (jint)result;
6841 : }
6842 : {
6843 : /* %typemap(ret) OGRErr */
6844 : }
6845 0 : return jresult;
6846 : }
6847 :
6848 :
6849 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromUSGS_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
6850 0 : jint jresult = 0 ;
6851 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6852 : long arg2 ;
6853 : OGRErr result;
6854 :
6855 : (void)jenv;
6856 : (void)jcls;
6857 : (void)jarg1_;
6858 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6859 0 : arg2 = (long)jarg2;
6860 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromUSGS__SWIG_0(arg1,arg2);
6861 : {
6862 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6863 0 : if (result != 0 && bUseExceptions) {
6864 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6865 : OGRErrMessages(result));
6866 0 : return 0;
6867 : }
6868 0 : jresult = (jint)result;
6869 : }
6870 : {
6871 : /* %typemap(ret) OGRErr */
6872 : }
6873 0 : return jresult;
6874 : }
6875 :
6876 :
6877 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromXML(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6878 0 : jint jresult = 0 ;
6879 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6880 0 : char *arg2 = (char *) 0 ;
6881 : OGRErr result;
6882 :
6883 : (void)jenv;
6884 : (void)jcls;
6885 : (void)jarg1_;
6886 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6887 0 : arg2 = 0;
6888 0 : if (jarg2) {
6889 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6890 0 : if (!arg2) return 0;
6891 : }
6892 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromXML(arg1,(char const *)arg2);
6893 : {
6894 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6895 0 : if (result != 0 && bUseExceptions) {
6896 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6897 : OGRErrMessages(result));
6898 0 : return 0;
6899 : }
6900 0 : jresult = (jint)result;
6901 : }
6902 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6903 : {
6904 : /* %typemap(ret) OGRErr */
6905 : }
6906 0 : return jresult;
6907 : }
6908 :
6909 :
6910 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromERM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) {
6911 0 : jint jresult = 0 ;
6912 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6913 0 : char *arg2 = (char *) 0 ;
6914 0 : char *arg3 = (char *) 0 ;
6915 0 : char *arg4 = (char *) 0 ;
6916 : OGRErr result;
6917 :
6918 : (void)jenv;
6919 : (void)jcls;
6920 : (void)jarg1_;
6921 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6922 0 : arg2 = 0;
6923 0 : if (jarg2) {
6924 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6925 0 : if (!arg2) return 0;
6926 : }
6927 0 : arg3 = 0;
6928 0 : if (jarg3) {
6929 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
6930 0 : if (!arg3) return 0;
6931 : }
6932 0 : arg4 = 0;
6933 0 : if (jarg4) {
6934 0 : arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0);
6935 0 : if (!arg4) return 0;
6936 : }
6937 : {
6938 0 : if (!arg2) {
6939 : {
6940 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6941 : };
6942 : }
6943 : }
6944 : {
6945 0 : if (!arg3) {
6946 : {
6947 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
6948 : };
6949 : }
6950 : }
6951 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromERM(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
6952 : {
6953 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6954 0 : if (result != 0 && bUseExceptions) {
6955 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6956 : OGRErrMessages(result));
6957 0 : return 0;
6958 : }
6959 0 : jresult = (jint)result;
6960 : }
6961 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6962 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
6963 0 : if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4);
6964 : {
6965 : /* %typemap(ret) OGRErr */
6966 : }
6967 0 : return jresult;
6968 : }
6969 :
6970 :
6971 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromMICoordSys(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
6972 0 : jint jresult = 0 ;
6973 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
6974 0 : char *arg2 = (char *) 0 ;
6975 : OGRErr result;
6976 :
6977 : (void)jenv;
6978 : (void)jcls;
6979 : (void)jarg1_;
6980 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
6981 0 : arg2 = 0;
6982 0 : if (jarg2) {
6983 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
6984 0 : if (!arg2) return 0;
6985 : }
6986 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromMICoordSys(arg1,(char const *)arg2);
6987 : {
6988 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
6989 0 : if (result != 0 && bUseExceptions) {
6990 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
6991 : OGRErrMessages(result));
6992 0 : return 0;
6993 : }
6994 0 : jresult = (jint)result;
6995 : }
6996 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
6997 : {
6998 : /* %typemap(ret) OGRErr */
6999 : }
7000 0 : return jresult;
7001 : }
7002 :
7003 :
7004 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromISISPVL(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
7005 0 : jint jresult = 0 ;
7006 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7007 0 : char *arg2 = (char *) 0 ;
7008 : OGRErr result;
7009 :
7010 : (void)jenv;
7011 : (void)jcls;
7012 : (void)jarg1_;
7013 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7014 0 : arg2 = 0;
7015 0 : if (jarg2) {
7016 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
7017 0 : if (!arg2) return 0;
7018 : }
7019 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromISISPVL(arg1,(char const *)arg2);
7020 : {
7021 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7022 0 : if (result != 0 && bUseExceptions) {
7023 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7024 : OGRErrMessages(result));
7025 0 : return 0;
7026 : }
7027 0 : jresult = (jint)result;
7028 : }
7029 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
7030 : {
7031 : /* %typemap(ret) OGRErr */
7032 : }
7033 0 : return jresult;
7034 : }
7035 :
7036 :
7037 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromOzi(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
7038 0 : jint jresult = 0 ;
7039 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7040 0 : char **arg2 = (char **) 0 ;
7041 : OGRErr result;
7042 :
7043 : (void)jenv;
7044 : (void)jcls;
7045 : (void)jarg1_;
7046 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7047 : {
7048 : /* %typemap(in) char **options */
7049 0 : arg2 = NULL;
7050 0 : if(jarg2 != 0) {
7051 0 : const jclass vector = jenv->FindClass("java/util/Vector");
7052 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
7053 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
7054 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
7055 : "()Ljava/util/Enumeration;");
7056 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
7057 : "hasMoreElements", "()Z");
7058 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
7059 : "nextElement", "()Ljava/lang/Object;");
7060 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
7061 0 : hasMoreElements == NULL || getNextElement == NULL) {
7062 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
7063 0 : return 0;
7064 : }
7065 0 : for (jobject keys = jenv->CallObjectMethod(jarg2, elements);
7066 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
7067 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
7068 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
7069 : {
7070 0 : CSLDestroy(arg2);
7071 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
7072 0 : return 0;
7073 : }
7074 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
7075 0 : arg2 = CSLAddString(arg2, valptr);
7076 0 : jenv->ReleaseStringUTFChars(value, valptr);
7077 : }
7078 : }
7079 : }
7080 : {
7081 0 : if (!arg2) {
7082 : {
7083 0 : SWIG_JavaException(jenv, SWIG_ValueError, "Received a NULL pointer."); return 0;
7084 : };
7085 : }
7086 : }
7087 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromOzi(arg1,(char const *const *)arg2);
7088 : {
7089 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7090 0 : if (result != 0 && bUseExceptions) {
7091 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7092 : OGRErrMessages(result));
7093 0 : return 0;
7094 : }
7095 0 : jresult = (jint)result;
7096 : }
7097 : {
7098 : /* %typemap(freearg) char **options */
7099 0 : CSLDestroy( arg2 );
7100 : }
7101 : {
7102 : /* %typemap(ret) OGRErr */
7103 : }
7104 0 : return jresult;
7105 : }
7106 :
7107 :
7108 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromCF1_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jstring jarg3) {
7109 0 : jint jresult = 0 ;
7110 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7111 0 : char **arg2 = (char **) 0 ;
7112 0 : char *arg3 = (char *) 0 ;
7113 : OGRErr result;
7114 :
7115 : (void)jenv;
7116 : (void)jcls;
7117 : (void)jarg1_;
7118 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7119 : {
7120 : /* %typemap(in) char **options */
7121 0 : arg2 = NULL;
7122 0 : if(jarg2 != 0) {
7123 0 : const jclass vector = jenv->FindClass("java/util/Vector");
7124 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
7125 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
7126 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
7127 : "()Ljava/util/Enumeration;");
7128 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
7129 : "hasMoreElements", "()Z");
7130 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
7131 : "nextElement", "()Ljava/lang/Object;");
7132 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
7133 0 : hasMoreElements == NULL || getNextElement == NULL) {
7134 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
7135 0 : return 0;
7136 : }
7137 0 : for (jobject keys = jenv->CallObjectMethod(jarg2, elements);
7138 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
7139 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
7140 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
7141 : {
7142 0 : CSLDestroy(arg2);
7143 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
7144 0 : return 0;
7145 : }
7146 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
7147 0 : arg2 = CSLAddString(arg2, valptr);
7148 0 : jenv->ReleaseStringUTFChars(value, valptr);
7149 : }
7150 : }
7151 : }
7152 0 : arg3 = 0;
7153 0 : if (jarg3) {
7154 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
7155 0 : if (!arg3) return 0;
7156 : }
7157 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromCF1__SWIG_0(arg1,arg2,(char const *)arg3);
7158 : {
7159 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7160 0 : if (result != 0 && bUseExceptions) {
7161 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7162 : OGRErrMessages(result));
7163 0 : return 0;
7164 : }
7165 0 : jresult = (jint)result;
7166 : }
7167 : {
7168 : /* %typemap(freearg) char **options */
7169 0 : CSLDestroy( arg2 );
7170 : }
7171 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
7172 : {
7173 : /* %typemap(ret) OGRErr */
7174 : }
7175 0 : return jresult;
7176 : }
7177 :
7178 :
7179 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ImportFromCF1_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
7180 0 : jint jresult = 0 ;
7181 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7182 0 : char **arg2 = (char **) 0 ;
7183 : OGRErr result;
7184 :
7185 : (void)jenv;
7186 : (void)jcls;
7187 : (void)jarg1_;
7188 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7189 : {
7190 : /* %typemap(in) char **options */
7191 0 : arg2 = NULL;
7192 0 : if(jarg2 != 0) {
7193 0 : const jclass vector = jenv->FindClass("java/util/Vector");
7194 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
7195 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
7196 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
7197 : "()Ljava/util/Enumeration;");
7198 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
7199 : "hasMoreElements", "()Z");
7200 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
7201 : "nextElement", "()Ljava/lang/Object;");
7202 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
7203 0 : hasMoreElements == NULL || getNextElement == NULL) {
7204 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
7205 0 : return 0;
7206 : }
7207 0 : for (jobject keys = jenv->CallObjectMethod(jarg2, elements);
7208 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
7209 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
7210 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
7211 : {
7212 0 : CSLDestroy(arg2);
7213 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
7214 0 : return 0;
7215 : }
7216 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
7217 0 : arg2 = CSLAddString(arg2, valptr);
7218 0 : jenv->ReleaseStringUTFChars(value, valptr);
7219 : }
7220 : }
7221 : }
7222 0 : result = (OGRErr)OSRSpatialReferenceShadow_ImportFromCF1__SWIG_0(arg1,arg2);
7223 : {
7224 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7225 0 : if (result != 0 && bUseExceptions) {
7226 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7227 : OGRErrMessages(result));
7228 0 : return 0;
7229 : }
7230 0 : jresult = (jint)result;
7231 : }
7232 : {
7233 : /* %typemap(freearg) char **options */
7234 0 : CSLDestroy( arg2 );
7235 : }
7236 : {
7237 : /* %typemap(ret) OGRErr */
7238 : }
7239 0 : return jresult;
7240 : }
7241 :
7242 :
7243 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToWkt_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2, jobject jarg3) {
7244 0 : jint jresult = 0 ;
7245 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7246 0 : char **arg2 = (char **) 0 ;
7247 0 : char **arg3 = (char **) 0 ;
7248 0 : char *argout2 = 0 ;
7249 : OGRErr result;
7250 :
7251 : (void)jenv;
7252 : (void)jcls;
7253 : (void)jarg1_;
7254 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7255 : {
7256 : /* %typemap(in) (char **argout2) */
7257 0 : arg2 = &argout2;
7258 : }
7259 : {
7260 : /* %typemap(in) char **options */
7261 0 : arg3 = NULL;
7262 0 : if(jarg3 != 0) {
7263 0 : const jclass vector = jenv->FindClass("java/util/Vector");
7264 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
7265 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
7266 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
7267 : "()Ljava/util/Enumeration;");
7268 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
7269 : "hasMoreElements", "()Z");
7270 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
7271 : "nextElement", "()Ljava/lang/Object;");
7272 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
7273 0 : hasMoreElements == NULL || getNextElement == NULL) {
7274 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
7275 0 : return 0;
7276 : }
7277 0 : for (jobject keys = jenv->CallObjectMethod(jarg3, elements);
7278 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
7279 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
7280 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
7281 : {
7282 0 : CSLDestroy(arg3);
7283 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
7284 0 : return 0;
7285 : }
7286 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
7287 0 : arg3 = CSLAddString(arg3, valptr);
7288 0 : jenv->ReleaseStringUTFChars(value, valptr);
7289 : }
7290 : }
7291 : }
7292 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToWkt__SWIG_0(arg1,arg2,arg3);
7293 : {
7294 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7295 0 : if (result != 0 && bUseExceptions) {
7296 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7297 : OGRErrMessages(result));
7298 0 : return 0;
7299 : }
7300 0 : jresult = (jint)result;
7301 : }
7302 : {
7303 : /* %typemap(argout) (char **argout) */
7304 : jstring temp_string;
7305 :
7306 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7307 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7308 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7309 0 : jenv->DeleteLocalRef(temp_string);
7310 : }
7311 : }
7312 : {
7313 : /* %typemap(freearg) (char **argout) */
7314 0 : if(arg2) {
7315 0 : CPLFree((void *) argout2);
7316 : }
7317 : }
7318 : {
7319 : /* %typemap(freearg) char **options */
7320 0 : CSLDestroy( arg3 );
7321 : }
7322 : {
7323 : /* %typemap(ret) OGRErr */
7324 : }
7325 0 : return jresult;
7326 : }
7327 :
7328 :
7329 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToWkt_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
7330 0 : jint jresult = 0 ;
7331 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7332 0 : char **arg2 = (char **) 0 ;
7333 0 : char *argout2 = 0 ;
7334 : OGRErr result;
7335 :
7336 : (void)jenv;
7337 : (void)jcls;
7338 : (void)jarg1_;
7339 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7340 : {
7341 : /* %typemap(in) (char **argout2) */
7342 0 : arg2 = &argout2;
7343 : }
7344 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToWkt__SWIG_0(arg1,arg2);
7345 : {
7346 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7347 0 : if (result != 0 && bUseExceptions) {
7348 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7349 : OGRErrMessages(result));
7350 0 : return 0;
7351 : }
7352 0 : jresult = (jint)result;
7353 : }
7354 : {
7355 : /* %typemap(argout) (char **argout) */
7356 : jstring temp_string;
7357 :
7358 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7359 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7360 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7361 0 : jenv->DeleteLocalRef(temp_string);
7362 : }
7363 : }
7364 : {
7365 : /* %typemap(freearg) (char **argout) */
7366 0 : if(arg2) {
7367 0 : CPLFree((void *) argout2);
7368 : }
7369 : }
7370 : {
7371 : /* %typemap(ret) OGRErr */
7372 : }
7373 0 : return jresult;
7374 : }
7375 :
7376 :
7377 1 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToPrettyWkt_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2, jint jarg3) {
7378 1 : jint jresult = 0 ;
7379 1 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7380 1 : char **arg2 = (char **) 0 ;
7381 : int arg3 ;
7382 1 : char *argout2 = 0 ;
7383 : OGRErr result;
7384 :
7385 : (void)jenv;
7386 : (void)jcls;
7387 : (void)jarg1_;
7388 1 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7389 : {
7390 : /* %typemap(in) (char **argout2) */
7391 1 : arg2 = &argout2;
7392 : }
7393 1 : arg3 = (int)jarg3;
7394 1 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToPrettyWkt__SWIG_0(arg1,arg2,arg3);
7395 : {
7396 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7397 1 : if (result != 0 && bUseExceptions) {
7398 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7399 : OGRErrMessages(result));
7400 0 : return 0;
7401 : }
7402 1 : jresult = (jint)result;
7403 : }
7404 : {
7405 : /* %typemap(argout) (char **argout) */
7406 : jstring temp_string;
7407 :
7408 1 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7409 1 : temp_string = SafeNewStringUTF8(jenv, argout2);
7410 1 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7411 1 : jenv->DeleteLocalRef(temp_string);
7412 : }
7413 : }
7414 : {
7415 : /* %typemap(freearg) (char **argout) */
7416 1 : if(arg2) {
7417 1 : CPLFree((void *) argout2);
7418 : }
7419 : }
7420 : {
7421 : /* %typemap(ret) OGRErr */
7422 : }
7423 1 : return jresult;
7424 : }
7425 :
7426 :
7427 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToPrettyWkt_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
7428 0 : jint jresult = 0 ;
7429 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7430 0 : char **arg2 = (char **) 0 ;
7431 0 : char *argout2 = 0 ;
7432 : OGRErr result;
7433 :
7434 : (void)jenv;
7435 : (void)jcls;
7436 : (void)jarg1_;
7437 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7438 : {
7439 : /* %typemap(in) (char **argout2) */
7440 0 : arg2 = &argout2;
7441 : }
7442 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToPrettyWkt__SWIG_0(arg1,arg2);
7443 : {
7444 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7445 0 : if (result != 0 && bUseExceptions) {
7446 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7447 : OGRErrMessages(result));
7448 0 : return 0;
7449 : }
7450 0 : jresult = (jint)result;
7451 : }
7452 : {
7453 : /* %typemap(argout) (char **argout) */
7454 : jstring temp_string;
7455 :
7456 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7457 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7458 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7459 0 : jenv->DeleteLocalRef(temp_string);
7460 : }
7461 : }
7462 : {
7463 : /* %typemap(freearg) (char **argout) */
7464 0 : if(arg2) {
7465 0 : CPLFree((void *) argout2);
7466 : }
7467 : }
7468 : {
7469 : /* %typemap(ret) OGRErr */
7470 : }
7471 0 : return jresult;
7472 : }
7473 :
7474 :
7475 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToPROJJSON_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2, jobject jarg3) {
7476 0 : jint jresult = 0 ;
7477 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7478 0 : char **arg2 = (char **) 0 ;
7479 0 : char **arg3 = (char **) 0 ;
7480 0 : char *argout2 = 0 ;
7481 : OGRErr result;
7482 :
7483 : (void)jenv;
7484 : (void)jcls;
7485 : (void)jarg1_;
7486 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7487 : {
7488 : /* %typemap(in) (char **argout2) */
7489 0 : arg2 = &argout2;
7490 : }
7491 : {
7492 : /* %typemap(in) char **options */
7493 0 : arg3 = NULL;
7494 0 : if(jarg3 != 0) {
7495 0 : const jclass vector = jenv->FindClass("java/util/Vector");
7496 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
7497 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
7498 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
7499 : "()Ljava/util/Enumeration;");
7500 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
7501 : "hasMoreElements", "()Z");
7502 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
7503 : "nextElement", "()Ljava/lang/Object;");
7504 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
7505 0 : hasMoreElements == NULL || getNextElement == NULL) {
7506 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
7507 0 : return 0;
7508 : }
7509 0 : for (jobject keys = jenv->CallObjectMethod(jarg3, elements);
7510 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
7511 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
7512 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
7513 : {
7514 0 : CSLDestroy(arg3);
7515 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
7516 0 : return 0;
7517 : }
7518 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
7519 0 : arg3 = CSLAddString(arg3, valptr);
7520 0 : jenv->ReleaseStringUTFChars(value, valptr);
7521 : }
7522 : }
7523 : }
7524 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToPROJJSON__SWIG_0(arg1,arg2,arg3);
7525 : {
7526 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7527 0 : if (result != 0 && bUseExceptions) {
7528 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7529 : OGRErrMessages(result));
7530 0 : return 0;
7531 : }
7532 0 : jresult = (jint)result;
7533 : }
7534 : {
7535 : /* %typemap(argout) (char **argout) */
7536 : jstring temp_string;
7537 :
7538 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7539 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7540 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7541 0 : jenv->DeleteLocalRef(temp_string);
7542 : }
7543 : }
7544 : {
7545 : /* %typemap(freearg) (char **argout) */
7546 0 : if(arg2) {
7547 0 : CPLFree((void *) argout2);
7548 : }
7549 : }
7550 : {
7551 : /* %typemap(freearg) char **options */
7552 0 : CSLDestroy( arg3 );
7553 : }
7554 : {
7555 : /* %typemap(ret) OGRErr */
7556 : }
7557 0 : return jresult;
7558 : }
7559 :
7560 :
7561 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToPROJJSON_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
7562 0 : jint jresult = 0 ;
7563 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7564 0 : char **arg2 = (char **) 0 ;
7565 0 : char *argout2 = 0 ;
7566 : OGRErr result;
7567 :
7568 : (void)jenv;
7569 : (void)jcls;
7570 : (void)jarg1_;
7571 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7572 : {
7573 : /* %typemap(in) (char **argout2) */
7574 0 : arg2 = &argout2;
7575 : }
7576 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToPROJJSON__SWIG_0(arg1,arg2);
7577 : {
7578 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7579 0 : if (result != 0 && bUseExceptions) {
7580 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7581 : OGRErrMessages(result));
7582 0 : return 0;
7583 : }
7584 0 : jresult = (jint)result;
7585 : }
7586 : {
7587 : /* %typemap(argout) (char **argout) */
7588 : jstring temp_string;
7589 :
7590 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7591 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7592 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7593 0 : jenv->DeleteLocalRef(temp_string);
7594 : }
7595 : }
7596 : {
7597 : /* %typemap(freearg) (char **argout) */
7598 0 : if(arg2) {
7599 0 : CPLFree((void *) argout2);
7600 : }
7601 : }
7602 : {
7603 : /* %typemap(ret) OGRErr */
7604 : }
7605 0 : return jresult;
7606 : }
7607 :
7608 :
7609 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToProj4(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
7610 0 : jint jresult = 0 ;
7611 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7612 0 : char **arg2 = (char **) 0 ;
7613 0 : char *argout2 = 0 ;
7614 : OGRErr result;
7615 :
7616 : (void)jenv;
7617 : (void)jcls;
7618 : (void)jarg1_;
7619 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7620 : {
7621 : /* %typemap(in) (char **argout2) */
7622 0 : arg2 = &argout2;
7623 : }
7624 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToProj4(arg1,arg2);
7625 : {
7626 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7627 0 : if (result != 0 && bUseExceptions) {
7628 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7629 : OGRErrMessages(result));
7630 0 : return 0;
7631 : }
7632 0 : jresult = (jint)result;
7633 : }
7634 : {
7635 : /* %typemap(argout) (char **argout) */
7636 : jstring temp_string;
7637 :
7638 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7639 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7640 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7641 0 : jenv->DeleteLocalRef(temp_string);
7642 : }
7643 : }
7644 : {
7645 : /* %typemap(freearg) (char **argout) */
7646 0 : if(arg2) {
7647 0 : CPLFree((void *) argout2);
7648 : }
7649 : }
7650 : {
7651 : /* %typemap(ret) OGRErr */
7652 : }
7653 0 : return jresult;
7654 : }
7655 :
7656 :
7657 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToPCI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2, jobjectArray jarg3, jdoubleArray jarg4) {
7658 0 : jint jresult = 0 ;
7659 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7660 0 : char **arg2 = (char **) 0 ;
7661 0 : char **arg3 = (char **) 0 ;
7662 : double **arg4 ;
7663 0 : char *argout2 = 0 ;
7664 0 : char *argout3 = 0 ;
7665 : double *argout4 ;
7666 : OGRErr result;
7667 :
7668 : (void)jenv;
7669 : (void)jcls;
7670 : (void)jarg1_;
7671 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7672 : {
7673 : /* %typemap(in) (char **argout2) */
7674 0 : arg2 = &argout2;
7675 : }
7676 : {
7677 : /* %typemap(in) (char **argout3) */
7678 0 : arg3 = &argout3;
7679 : }
7680 : {
7681 : /* %typemap(in) (double *argout4[ANY]) */
7682 0 : if(jarg4 == NULL || jenv->GetArrayLength(jarg4) != 17) {
7683 : char errorMsg[128];
7684 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 17);
7685 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
7686 0 : return 0;
7687 : }
7688 0 : arg4 = &argout4;
7689 : }
7690 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToPCI(arg1,arg2,arg3,arg4);
7691 : {
7692 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7693 0 : if (result != 0 && bUseExceptions) {
7694 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7695 : OGRErrMessages(result));
7696 0 : return 0;
7697 : }
7698 0 : jresult = (jint)result;
7699 : }
7700 : {
7701 : /* %typemap(argout) (char **argout) */
7702 : jstring temp_string;
7703 :
7704 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7705 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7706 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7707 0 : jenv->DeleteLocalRef(temp_string);
7708 : }
7709 : }
7710 : {
7711 : /* %typemap(argout) (char **argout) */
7712 : jstring temp_string;
7713 :
7714 0 : if(jarg3 != NULL && (int)jenv->GetArrayLength(jarg3) >= 1) {
7715 0 : temp_string = SafeNewStringUTF8(jenv, argout3);
7716 0 : jenv->SetObjectArrayElement(jarg3, 0, temp_string);
7717 0 : jenv->DeleteLocalRef(temp_string);
7718 : }
7719 : }
7720 : {
7721 : /* %typemap(argout) (double *argout[ANY]) */
7722 0 : jenv->SetDoubleArrayRegion(jarg4, (jsize)0, (jsize)17, *arg4);
7723 : }
7724 : {
7725 : /* %typemap(freearg) (char **argout) */
7726 0 : if(arg2) {
7727 0 : CPLFree((void *) argout2);
7728 : }
7729 : }
7730 : {
7731 : /* %typemap(freearg) (char **argout) */
7732 0 : if(arg3) {
7733 0 : CPLFree((void *) argout3);
7734 : }
7735 : }
7736 : {
7737 : /* %typemap(freearg) (double *argout[ANY]) */
7738 0 : CPLFree(*arg4);
7739 : }
7740 : {
7741 : /* %typemap(ret) OGRErr */
7742 : }
7743 0 : return jresult;
7744 : }
7745 :
7746 :
7747 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToUSGS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jintArray jarg2, jintArray jarg3, jdoubleArray jarg4, jintArray jarg5) {
7748 0 : jint jresult = 0 ;
7749 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7750 0 : long *arg2 = (long *) 0 ;
7751 0 : long *arg3 = (long *) 0 ;
7752 : double **arg4 ;
7753 0 : long *arg5 = (long *) 0 ;
7754 : long temp2 ;
7755 : long temp3 ;
7756 : double *argout4 ;
7757 : long temp5 ;
7758 : OGRErr result;
7759 :
7760 : (void)jenv;
7761 : (void)jcls;
7762 : (void)jarg1_;
7763 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7764 : {
7765 0 : if (!jarg2) {
7766 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
7767 0 : return 0;
7768 : }
7769 0 : if (jenv->GetArrayLength(jarg2) == 0) {
7770 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
7771 0 : return 0;
7772 : }
7773 0 : temp2 = (long)0;
7774 0 : arg2 = &temp2;
7775 : }
7776 : {
7777 0 : if (!jarg3) {
7778 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
7779 0 : return 0;
7780 : }
7781 0 : if (jenv->GetArrayLength(jarg3) == 0) {
7782 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
7783 0 : return 0;
7784 : }
7785 0 : temp3 = (long)0;
7786 0 : arg3 = &temp3;
7787 : }
7788 : {
7789 : /* %typemap(in) (double *argout4[ANY]) */
7790 0 : if(jarg4 == NULL || jenv->GetArrayLength(jarg4) != 15) {
7791 : char errorMsg[128];
7792 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 15);
7793 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
7794 0 : return 0;
7795 : }
7796 0 : arg4 = &argout4;
7797 : }
7798 : {
7799 0 : if (!jarg5) {
7800 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
7801 0 : return 0;
7802 : }
7803 0 : if (jenv->GetArrayLength(jarg5) == 0) {
7804 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
7805 0 : return 0;
7806 : }
7807 0 : temp5 = (long)0;
7808 0 : arg5 = &temp5;
7809 : }
7810 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToUSGS(arg1,arg2,arg3,arg4,arg5);
7811 : {
7812 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7813 0 : if (result != 0 && bUseExceptions) {
7814 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7815 : OGRErrMessages(result));
7816 0 : return 0;
7817 : }
7818 0 : jresult = (jint)result;
7819 : }
7820 : {
7821 0 : jint jvalue = (jint)temp2;
7822 0 : jenv->SetIntArrayRegion(jarg2, 0, 1, &jvalue);
7823 : }
7824 : {
7825 0 : jint jvalue = (jint)temp3;
7826 0 : jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue);
7827 : }
7828 : {
7829 : /* %typemap(argout) (double *argout[ANY]) */
7830 0 : jenv->SetDoubleArrayRegion(jarg4, (jsize)0, (jsize)15, *arg4);
7831 : }
7832 : {
7833 0 : jint jvalue = (jint)temp5;
7834 0 : jenv->SetIntArrayRegion(jarg5, 0, 1, &jvalue);
7835 : }
7836 :
7837 :
7838 : {
7839 : /* %typemap(freearg) (double *argout[ANY]) */
7840 0 : CPLFree(*arg4);
7841 : }
7842 :
7843 : {
7844 : /* %typemap(ret) OGRErr */
7845 : }
7846 0 : return jresult;
7847 : }
7848 :
7849 :
7850 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToERM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2, jobjectArray jarg3, jobjectArray jarg4) {
7851 0 : jint jresult = 0 ;
7852 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7853 0 : char **arg2 = (char **) 0 ;
7854 0 : char **arg3 = (char **) 0 ;
7855 0 : char **arg4 = (char **) 0 ;
7856 0 : char *argout2 = 0 ;
7857 0 : char *argout3 = 0 ;
7858 0 : char *argout4 = 0 ;
7859 : OGRErr result;
7860 :
7861 : (void)jenv;
7862 : (void)jcls;
7863 : (void)jarg1_;
7864 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7865 : {
7866 : /* %typemap(in) (char **argout2) */
7867 0 : arg2 = &argout2;
7868 : }
7869 : {
7870 : /* %typemap(in) (char **argout3) */
7871 0 : arg3 = &argout3;
7872 : }
7873 : {
7874 : /* %typemap(in) (char **argout4) */
7875 0 : arg4 = &argout4;
7876 : }
7877 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToERM(arg1,arg2,arg3,arg4);
7878 : {
7879 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7880 0 : if (result != 0 && bUseExceptions) {
7881 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7882 : OGRErrMessages(result));
7883 0 : return 0;
7884 : }
7885 0 : jresult = (jint)result;
7886 : }
7887 : {
7888 : /* %typemap(argout) (char **argout) */
7889 : jstring temp_string;
7890 :
7891 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7892 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7893 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7894 0 : jenv->DeleteLocalRef(temp_string);
7895 : }
7896 : }
7897 : {
7898 : /* %typemap(argout) (char **argout) */
7899 : jstring temp_string;
7900 :
7901 0 : if(jarg3 != NULL && (int)jenv->GetArrayLength(jarg3) >= 1) {
7902 0 : temp_string = SafeNewStringUTF8(jenv, argout3);
7903 0 : jenv->SetObjectArrayElement(jarg3, 0, temp_string);
7904 0 : jenv->DeleteLocalRef(temp_string);
7905 : }
7906 : }
7907 : {
7908 : /* %typemap(argout) (char **argout) */
7909 : jstring temp_string;
7910 :
7911 0 : if(jarg4 != NULL && (int)jenv->GetArrayLength(jarg4) >= 1) {
7912 0 : temp_string = SafeNewStringUTF8(jenv, argout4);
7913 0 : jenv->SetObjectArrayElement(jarg4, 0, temp_string);
7914 0 : jenv->DeleteLocalRef(temp_string);
7915 : }
7916 : }
7917 : {
7918 : /* %typemap(freearg) (char **argout) */
7919 0 : if(arg2) {
7920 0 : CPLFree((void *) argout2);
7921 : }
7922 : }
7923 : {
7924 : /* %typemap(freearg) (char **argout) */
7925 0 : if(arg3) {
7926 0 : CPLFree((void *) argout3);
7927 : }
7928 : }
7929 : {
7930 : /* %typemap(freearg) (char **argout) */
7931 0 : if(arg4) {
7932 0 : CPLFree((void *) argout4);
7933 : }
7934 : }
7935 : {
7936 : /* %typemap(ret) OGRErr */
7937 : }
7938 0 : return jresult;
7939 : }
7940 :
7941 :
7942 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToXML_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2, jstring jarg3) {
7943 0 : jint jresult = 0 ;
7944 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
7945 0 : char **arg2 = (char **) 0 ;
7946 0 : char *arg3 = (char *) 0 ;
7947 0 : char *argout2 = 0 ;
7948 : OGRErr result;
7949 :
7950 : (void)jenv;
7951 : (void)jcls;
7952 : (void)jarg1_;
7953 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
7954 : {
7955 : /* %typemap(in) (char **argout2) */
7956 0 : arg2 = &argout2;
7957 : }
7958 0 : arg3 = 0;
7959 0 : if (jarg3) {
7960 0 : arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
7961 0 : if (!arg3) return 0;
7962 : }
7963 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToXML__SWIG_0(arg1,arg2,(char const *)arg3);
7964 : {
7965 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
7966 0 : if (result != 0 && bUseExceptions) {
7967 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
7968 : OGRErrMessages(result));
7969 0 : return 0;
7970 : }
7971 0 : jresult = (jint)result;
7972 : }
7973 : {
7974 : /* %typemap(argout) (char **argout) */
7975 : jstring temp_string;
7976 :
7977 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
7978 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
7979 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
7980 0 : jenv->DeleteLocalRef(temp_string);
7981 : }
7982 : }
7983 : {
7984 : /* %typemap(freearg) (char **argout) */
7985 0 : if(arg2) {
7986 0 : CPLFree((void *) argout2);
7987 : }
7988 : }
7989 0 : if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
7990 : {
7991 : /* %typemap(ret) OGRErr */
7992 : }
7993 0 : return jresult;
7994 : }
7995 :
7996 :
7997 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToXML_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
7998 0 : jint jresult = 0 ;
7999 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8000 0 : char **arg2 = (char **) 0 ;
8001 0 : char *argout2 = 0 ;
8002 : OGRErr result;
8003 :
8004 : (void)jenv;
8005 : (void)jcls;
8006 : (void)jarg1_;
8007 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8008 : {
8009 : /* %typemap(in) (char **argout2) */
8010 0 : arg2 = &argout2;
8011 : }
8012 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToXML__SWIG_0(arg1,arg2);
8013 : {
8014 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8015 0 : if (result != 0 && bUseExceptions) {
8016 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8017 : OGRErrMessages(result));
8018 0 : return 0;
8019 : }
8020 0 : jresult = (jint)result;
8021 : }
8022 : {
8023 : /* %typemap(argout) (char **argout) */
8024 : jstring temp_string;
8025 :
8026 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
8027 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
8028 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
8029 0 : jenv->DeleteLocalRef(temp_string);
8030 : }
8031 : }
8032 : {
8033 : /* %typemap(freearg) (char **argout) */
8034 0 : if(arg2) {
8035 0 : CPLFree((void *) argout2);
8036 : }
8037 : }
8038 : {
8039 : /* %typemap(ret) OGRErr */
8040 : }
8041 0 : return jresult;
8042 : }
8043 :
8044 :
8045 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToMICoordSys(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
8046 0 : jint jresult = 0 ;
8047 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8048 0 : char **arg2 = (char **) 0 ;
8049 0 : char *argout2 = 0 ;
8050 : OGRErr result;
8051 :
8052 : (void)jenv;
8053 : (void)jcls;
8054 : (void)jarg1_;
8055 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8056 : {
8057 : /* %typemap(in) (char **argout2) */
8058 0 : arg2 = &argout2;
8059 : }
8060 0 : result = (OGRErr)OSRSpatialReferenceShadow_ExportToMICoordSys(arg1,arg2);
8061 : {
8062 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8063 0 : if (result != 0 && bUseExceptions) {
8064 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8065 : OGRErrMessages(result));
8066 0 : return 0;
8067 : }
8068 0 : jresult = (jint)result;
8069 : }
8070 : {
8071 : /* %typemap(argout) (char **argout) */
8072 : jstring temp_string;
8073 :
8074 0 : if(jarg2 != NULL && (int)jenv->GetArrayLength(jarg2) >= 1) {
8075 0 : temp_string = SafeNewStringUTF8(jenv, argout2);
8076 0 : jenv->SetObjectArrayElement(jarg2, 0, temp_string);
8077 0 : jenv->DeleteLocalRef(temp_string);
8078 : }
8079 : }
8080 : {
8081 : /* %typemap(freearg) (char **argout) */
8082 0 : if(arg2) {
8083 0 : CPLFree((void *) argout2);
8084 : }
8085 : }
8086 : {
8087 : /* %typemap(ret) OGRErr */
8088 : }
8089 0 : return jresult;
8090 : }
8091 :
8092 :
8093 0 : SWIGEXPORT jobject JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToCF1_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
8094 0 : jobject jresult = 0 ;
8095 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8096 0 : char **arg2 = (char **) 0 ;
8097 0 : char **result = 0 ;
8098 :
8099 : (void)jenv;
8100 : (void)jcls;
8101 : (void)jarg1_;
8102 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8103 : {
8104 : /* %typemap(in) char **options */
8105 0 : arg2 = NULL;
8106 0 : if(jarg2 != 0) {
8107 0 : const jclass vector = jenv->FindClass("java/util/Vector");
8108 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
8109 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
8110 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
8111 : "()Ljava/util/Enumeration;");
8112 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
8113 : "hasMoreElements", "()Z");
8114 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
8115 : "nextElement", "()Ljava/lang/Object;");
8116 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
8117 0 : hasMoreElements == NULL || getNextElement == NULL) {
8118 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
8119 0 : return 0;
8120 : }
8121 0 : for (jobject keys = jenv->CallObjectMethod(jarg2, elements);
8122 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
8123 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
8124 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
8125 : {
8126 0 : CSLDestroy(arg2);
8127 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
8128 0 : return 0;
8129 : }
8130 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
8131 0 : arg2 = CSLAddString(arg2, valptr);
8132 0 : jenv->ReleaseStringUTFChars(value, valptr);
8133 : }
8134 : }
8135 : }
8136 0 : result = (char **)OSRSpatialReferenceShadow_ExportToCF1__SWIG_0(arg1,arg2);
8137 : {
8138 : /* %typemap(out) char **dictAndCSLDestroy */
8139 0 : jresult = GetCSLStringAsHashTable(jenv, result, true);
8140 : }
8141 : {
8142 : /* %typemap(freearg) char **options */
8143 0 : CSLDestroy( arg2 );
8144 : }
8145 0 : return jresult;
8146 : }
8147 :
8148 :
8149 0 : SWIGEXPORT jobject JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToCF1_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8150 0 : jobject jresult = 0 ;
8151 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8152 0 : char **result = 0 ;
8153 :
8154 : (void)jenv;
8155 : (void)jcls;
8156 : (void)jarg1_;
8157 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8158 0 : result = (char **)OSRSpatialReferenceShadow_ExportToCF1__SWIG_0(arg1);
8159 : {
8160 : /* %typemap(out) char **dictAndCSLDestroy */
8161 0 : jresult = GetCSLStringAsHashTable(jenv, result, true);
8162 : }
8163 0 : return jresult;
8164 : }
8165 :
8166 :
8167 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToCF1Units_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
8168 0 : jstring jresult = 0 ;
8169 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8170 0 : char **arg2 = (char **) 0 ;
8171 0 : retStringAndCPLFree *result = 0 ;
8172 :
8173 : (void)jenv;
8174 : (void)jcls;
8175 : (void)jarg1_;
8176 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8177 : {
8178 : /* %typemap(in) char **options */
8179 0 : arg2 = NULL;
8180 0 : if(jarg2 != 0) {
8181 0 : const jclass vector = jenv->FindClass("java/util/Vector");
8182 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
8183 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
8184 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
8185 : "()Ljava/util/Enumeration;");
8186 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
8187 : "hasMoreElements", "()Z");
8188 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
8189 : "nextElement", "()Ljava/lang/Object;");
8190 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
8191 0 : hasMoreElements == NULL || getNextElement == NULL) {
8192 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
8193 0 : return 0;
8194 : }
8195 0 : for (jobject keys = jenv->CallObjectMethod(jarg2, elements);
8196 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
8197 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
8198 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
8199 : {
8200 0 : CSLDestroy(arg2);
8201 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
8202 0 : return 0;
8203 : }
8204 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
8205 0 : arg2 = CSLAddString(arg2, valptr);
8206 0 : jenv->ReleaseStringUTFChars(value, valptr);
8207 : }
8208 : }
8209 : }
8210 0 : result = (retStringAndCPLFree *)OSRSpatialReferenceShadow_ExportToCF1Units__SWIG_0(arg1,arg2);
8211 : {
8212 : /* %typemap(out) (retStringAndCPLFree*) */
8213 0 : if(result)
8214 : {
8215 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
8216 0 : CPLFree(result);
8217 : }
8218 : }
8219 : {
8220 : /* %typemap(freearg) char **options */
8221 0 : CSLDestroy( arg2 );
8222 : }
8223 0 : return jresult;
8224 : }
8225 :
8226 :
8227 0 : SWIGEXPORT jstring JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ExportToCF1Units_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8228 0 : jstring jresult = 0 ;
8229 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8230 0 : retStringAndCPLFree *result = 0 ;
8231 :
8232 : (void)jenv;
8233 : (void)jcls;
8234 : (void)jarg1_;
8235 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8236 0 : result = (retStringAndCPLFree *)OSRSpatialReferenceShadow_ExportToCF1Units__SWIG_0(arg1);
8237 : {
8238 : /* %typemap(out) (retStringAndCPLFree*) */
8239 0 : if(result)
8240 : {
8241 0 : jresult = SafeNewStringUTF8(jenv, (const char *)result);
8242 0 : CPLFree(result);
8243 : }
8244 : }
8245 0 : return jresult;
8246 : }
8247 :
8248 :
8249 5 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1CloneGeogCS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8250 5 : jlong jresult = 0 ;
8251 5 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8252 5 : OSRSpatialReferenceShadow *result = 0 ;
8253 :
8254 : (void)jenv;
8255 : (void)jcls;
8256 : (void)jarg1_;
8257 5 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8258 5 : result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_CloneGeogCS(arg1);
8259 5 : *(OSRSpatialReferenceShadow **)&jresult = result;
8260 5 : return jresult;
8261 : }
8262 :
8263 :
8264 2 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1Clone(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8265 2 : jlong jresult = 0 ;
8266 2 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8267 2 : OSRSpatialReferenceShadow *result = 0 ;
8268 :
8269 : (void)jenv;
8270 : (void)jcls;
8271 : (void)jarg1_;
8272 2 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8273 2 : result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_Clone(arg1);
8274 2 : *(OSRSpatialReferenceShadow **)&jresult = result;
8275 2 : return jresult;
8276 : }
8277 :
8278 :
8279 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1StripVertical(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8280 0 : jint jresult = 0 ;
8281 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8282 : OGRErr result;
8283 :
8284 : (void)jenv;
8285 : (void)jcls;
8286 : (void)jarg1_;
8287 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8288 0 : result = (OGRErr)OSRSpatialReferenceShadow_StripVertical(arg1);
8289 : {
8290 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8291 0 : if (result != 0 && bUseExceptions) {
8292 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8293 : OGRErrMessages(result));
8294 0 : return 0;
8295 : }
8296 0 : jresult = (jint)result;
8297 : }
8298 : {
8299 : /* %typemap(ret) OGRErr */
8300 : }
8301 0 : return jresult;
8302 : }
8303 :
8304 :
8305 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1Validate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8306 0 : jint jresult = 0 ;
8307 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8308 : OGRErr result;
8309 :
8310 : (void)jenv;
8311 : (void)jcls;
8312 : (void)jarg1_;
8313 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8314 0 : result = (OGRErr)OSRSpatialReferenceShadow_Validate(arg1);
8315 : {
8316 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8317 0 : if (result != 0 && bUseExceptions) {
8318 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8319 : OGRErrMessages(result));
8320 0 : return 0;
8321 : }
8322 0 : jresult = (jint)result;
8323 : }
8324 : {
8325 : /* %typemap(ret) OGRErr */
8326 : }
8327 0 : return jresult;
8328 : }
8329 :
8330 :
8331 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1MorphToESRI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8332 0 : jint jresult = 0 ;
8333 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8334 : OGRErr result;
8335 :
8336 : (void)jenv;
8337 : (void)jcls;
8338 : (void)jarg1_;
8339 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8340 0 : result = (OGRErr)OSRSpatialReferenceShadow_MorphToESRI(arg1);
8341 : {
8342 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8343 0 : if (result != 0 && bUseExceptions) {
8344 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8345 : OGRErrMessages(result));
8346 0 : return 0;
8347 : }
8348 0 : jresult = (jint)result;
8349 : }
8350 : {
8351 : /* %typemap(ret) OGRErr */
8352 : }
8353 0 : return jresult;
8354 : }
8355 :
8356 :
8357 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1MorphFromESRI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8358 0 : jint jresult = 0 ;
8359 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8360 : OGRErr result;
8361 :
8362 : (void)jenv;
8363 : (void)jcls;
8364 : (void)jarg1_;
8365 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8366 0 : result = (OGRErr)OSRSpatialReferenceShadow_MorphFromESRI(arg1);
8367 : {
8368 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8369 0 : if (result != 0 && bUseExceptions) {
8370 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8371 : OGRErrMessages(result));
8372 0 : return 0;
8373 : }
8374 0 : jresult = (jint)result;
8375 : }
8376 : {
8377 : /* %typemap(ret) OGRErr */
8378 : }
8379 0 : return jresult;
8380 : }
8381 :
8382 :
8383 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ConvertToOtherProjection_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jobject jarg3) {
8384 0 : jlong jresult = 0 ;
8385 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8386 0 : char *arg2 = (char *) 0 ;
8387 0 : char **arg3 = (char **) 0 ;
8388 0 : OSRSpatialReferenceShadow *result = 0 ;
8389 :
8390 : (void)jenv;
8391 : (void)jcls;
8392 : (void)jarg1_;
8393 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8394 0 : arg2 = 0;
8395 0 : if (jarg2) {
8396 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
8397 0 : if (!arg2) return 0;
8398 : }
8399 : {
8400 : /* %typemap(in) char **options */
8401 0 : arg3 = NULL;
8402 0 : if(jarg3 != 0) {
8403 0 : const jclass vector = jenv->FindClass("java/util/Vector");
8404 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
8405 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
8406 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
8407 : "()Ljava/util/Enumeration;");
8408 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
8409 : "hasMoreElements", "()Z");
8410 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
8411 : "nextElement", "()Ljava/lang/Object;");
8412 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
8413 0 : hasMoreElements == NULL || getNextElement == NULL) {
8414 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
8415 0 : return 0;
8416 : }
8417 0 : for (jobject keys = jenv->CallObjectMethod(jarg3, elements);
8418 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
8419 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
8420 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
8421 : {
8422 0 : CSLDestroy(arg3);
8423 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
8424 0 : return 0;
8425 : }
8426 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
8427 0 : arg3 = CSLAddString(arg3, valptr);
8428 0 : jenv->ReleaseStringUTFChars(value, valptr);
8429 : }
8430 : }
8431 : }
8432 0 : result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_ConvertToOtherProjection__SWIG_0(arg1,(char const *)arg2,arg3);
8433 0 : *(OSRSpatialReferenceShadow **)&jresult = result;
8434 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
8435 : {
8436 : /* %typemap(freearg) char **options */
8437 0 : CSLDestroy( arg3 );
8438 : }
8439 0 : return jresult;
8440 : }
8441 :
8442 :
8443 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1ConvertToOtherProjection_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
8444 0 : jlong jresult = 0 ;
8445 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8446 0 : char *arg2 = (char *) 0 ;
8447 0 : OSRSpatialReferenceShadow *result = 0 ;
8448 :
8449 : (void)jenv;
8450 : (void)jcls;
8451 : (void)jarg1_;
8452 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8453 0 : arg2 = 0;
8454 0 : if (jarg2) {
8455 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
8456 0 : if (!arg2) return 0;
8457 : }
8458 0 : result = (OSRSpatialReferenceShadow *)OSRSpatialReferenceShadow_ConvertToOtherProjection__SWIG_0(arg1,(char const *)arg2);
8459 0 : *(OSRSpatialReferenceShadow **)&jresult = result;
8460 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
8461 0 : return jresult;
8462 : }
8463 :
8464 :
8465 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1PromoteTo3D_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
8466 0 : jint jresult = 0 ;
8467 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8468 0 : char *arg2 = (char *) 0 ;
8469 : OGRErr result;
8470 :
8471 : (void)jenv;
8472 : (void)jcls;
8473 : (void)jarg1_;
8474 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8475 0 : arg2 = 0;
8476 0 : if (jarg2) {
8477 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
8478 0 : if (!arg2) return 0;
8479 : }
8480 0 : result = (OGRErr)OSRSpatialReferenceShadow_PromoteTo3D__SWIG_0(arg1,(char const *)arg2);
8481 : {
8482 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8483 0 : if (result != 0 && bUseExceptions) {
8484 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8485 : OGRErrMessages(result));
8486 0 : return 0;
8487 : }
8488 0 : jresult = (jint)result;
8489 : }
8490 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
8491 : {
8492 : /* %typemap(ret) OGRErr */
8493 : }
8494 0 : return jresult;
8495 : }
8496 :
8497 :
8498 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1PromoteTo3D_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8499 0 : jint jresult = 0 ;
8500 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8501 : OGRErr result;
8502 :
8503 : (void)jenv;
8504 : (void)jcls;
8505 : (void)jarg1_;
8506 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8507 0 : result = (OGRErr)OSRSpatialReferenceShadow_PromoteTo3D__SWIG_0(arg1);
8508 : {
8509 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8510 0 : if (result != 0 && bUseExceptions) {
8511 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8512 : OGRErrMessages(result));
8513 0 : return 0;
8514 : }
8515 0 : jresult = (jint)result;
8516 : }
8517 : {
8518 : /* %typemap(ret) OGRErr */
8519 : }
8520 0 : return jresult;
8521 : }
8522 :
8523 :
8524 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1DemoteTo2D_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
8525 0 : jint jresult = 0 ;
8526 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8527 0 : char *arg2 = (char *) 0 ;
8528 : OGRErr result;
8529 :
8530 : (void)jenv;
8531 : (void)jcls;
8532 : (void)jarg1_;
8533 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8534 0 : arg2 = 0;
8535 0 : if (jarg2) {
8536 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
8537 0 : if (!arg2) return 0;
8538 : }
8539 0 : result = (OGRErr)OSRSpatialReferenceShadow_DemoteTo2D__SWIG_0(arg1,(char const *)arg2);
8540 : {
8541 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8542 0 : if (result != 0 && bUseExceptions) {
8543 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8544 : OGRErrMessages(result));
8545 0 : return 0;
8546 : }
8547 0 : jresult = (jint)result;
8548 : }
8549 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
8550 : {
8551 : /* %typemap(ret) OGRErr */
8552 : }
8553 0 : return jresult;
8554 : }
8555 :
8556 :
8557 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_SpatialReference_1DemoteTo2D_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8558 0 : jint jresult = 0 ;
8559 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8560 : OGRErr result;
8561 :
8562 : (void)jenv;
8563 : (void)jcls;
8564 : (void)jarg1_;
8565 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8566 0 : result = (OGRErr)OSRSpatialReferenceShadow_DemoteTo2D__SWIG_0(arg1);
8567 : {
8568 : /* %typemap(out,fragment="OGRErrMessages") OGRErr */
8569 0 : if (result != 0 && bUseExceptions) {
8570 0 : SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException,
8571 : OGRErrMessages(result));
8572 0 : return 0;
8573 : }
8574 0 : jresult = (jint)result;
8575 : }
8576 : {
8577 : /* %typemap(ret) OGRErr */
8578 : }
8579 0 : return jresult;
8580 : }
8581 :
8582 :
8583 2 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_new_1CoordinateTransformationOptions(JNIEnv *jenv, jclass jcls) {
8584 2 : jlong jresult = 0 ;
8585 2 : OGRCoordinateTransformationOptions *result = 0 ;
8586 :
8587 : (void)jenv;
8588 : (void)jcls;
8589 2 : result = (OGRCoordinateTransformationOptions *)new_OGRCoordinateTransformationOptions();
8590 2 : *(OGRCoordinateTransformationOptions **)&jresult = result;
8591 2 : return jresult;
8592 : }
8593 :
8594 :
8595 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_delete_1CoordinateTransformationOptions(JNIEnv *jenv, jclass jcls, jlong jarg1) {
8596 0 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8597 :
8598 : (void)jenv;
8599 : (void)jcls;
8600 0 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8601 0 : delete_OGRCoordinateTransformationOptions(arg1);
8602 0 : }
8603 :
8604 :
8605 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformationOptions_1SetAreaOfInterest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
8606 0 : jboolean jresult = 0 ;
8607 0 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8608 : double arg2 ;
8609 : double arg3 ;
8610 : double arg4 ;
8611 : double arg5 ;
8612 : bool result;
8613 :
8614 : (void)jenv;
8615 : (void)jcls;
8616 : (void)jarg1_;
8617 0 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8618 0 : arg2 = (double)jarg2;
8619 0 : arg3 = (double)jarg3;
8620 0 : arg4 = (double)jarg4;
8621 0 : arg5 = (double)jarg5;
8622 0 : result = (bool)OGRCoordinateTransformationOptions_SetAreaOfInterest(arg1,arg2,arg3,arg4,arg5);
8623 0 : jresult = (jboolean)result;
8624 0 : return jresult;
8625 : }
8626 :
8627 :
8628 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformationOptions_1SetOperation_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jboolean jarg3) {
8629 0 : jboolean jresult = 0 ;
8630 0 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8631 0 : char *arg2 = (char *) 0 ;
8632 : bool arg3 ;
8633 : bool result;
8634 :
8635 : (void)jenv;
8636 : (void)jcls;
8637 : (void)jarg1_;
8638 0 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8639 0 : arg2 = 0;
8640 0 : if (jarg2) {
8641 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
8642 0 : if (!arg2) return 0;
8643 : }
8644 0 : arg3 = jarg3 ? true : false;
8645 0 : result = (bool)OGRCoordinateTransformationOptions_SetOperation__SWIG_0(arg1,(char const *)arg2,arg3);
8646 0 : jresult = (jboolean)result;
8647 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
8648 0 : return jresult;
8649 : }
8650 :
8651 :
8652 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformationOptions_1SetOperation_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
8653 0 : jboolean jresult = 0 ;
8654 0 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8655 0 : char *arg2 = (char *) 0 ;
8656 : bool result;
8657 :
8658 : (void)jenv;
8659 : (void)jcls;
8660 : (void)jarg1_;
8661 0 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8662 0 : arg2 = 0;
8663 0 : if (jarg2) {
8664 0 : arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
8665 0 : if (!arg2) return 0;
8666 : }
8667 0 : result = (bool)OGRCoordinateTransformationOptions_SetOperation__SWIG_0(arg1,(char const *)arg2);
8668 0 : jresult = (jboolean)result;
8669 0 : if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
8670 0 : return jresult;
8671 : }
8672 :
8673 :
8674 1 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformationOptions_1SetDesiredAccuracy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) {
8675 1 : jboolean jresult = 0 ;
8676 1 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8677 : double arg2 ;
8678 : bool result;
8679 :
8680 : (void)jenv;
8681 : (void)jcls;
8682 : (void)jarg1_;
8683 1 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8684 1 : arg2 = (double)jarg2;
8685 1 : result = (bool)OGRCoordinateTransformationOptions_SetDesiredAccuracy(arg1,arg2);
8686 1 : jresult = (jboolean)result;
8687 1 : return jresult;
8688 : }
8689 :
8690 :
8691 1 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformationOptions_1SetBallparkAllowed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
8692 1 : jboolean jresult = 0 ;
8693 1 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8694 : bool arg2 ;
8695 : bool result;
8696 :
8697 : (void)jenv;
8698 : (void)jcls;
8699 : (void)jarg1_;
8700 1 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8701 1 : arg2 = jarg2 ? true : false;
8702 1 : result = (bool)OGRCoordinateTransformationOptions_SetBallparkAllowed(arg1,arg2);
8703 1 : jresult = (jboolean)result;
8704 1 : return jresult;
8705 : }
8706 :
8707 :
8708 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformationOptions_1SetOnlyBest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
8709 0 : jboolean jresult = 0 ;
8710 0 : OGRCoordinateTransformationOptions *arg1 = (OGRCoordinateTransformationOptions *) 0 ;
8711 : bool arg2 ;
8712 : bool result;
8713 :
8714 : (void)jenv;
8715 : (void)jcls;
8716 : (void)jarg1_;
8717 0 : arg1 = *(OGRCoordinateTransformationOptions **)&jarg1;
8718 0 : arg2 = jarg2 ? true : false;
8719 0 : result = (bool)OGRCoordinateTransformationOptions_SetOnlyBest(arg1,arg2);
8720 0 : jresult = (jboolean)result;
8721 0 : return jresult;
8722 : }
8723 :
8724 :
8725 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_new_1CoordinateTransformation_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
8726 0 : jlong jresult = 0 ;
8727 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8728 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
8729 0 : OSRCoordinateTransformationShadow *result = 0 ;
8730 :
8731 : (void)jenv;
8732 : (void)jcls;
8733 : (void)jarg1_;
8734 : (void)jarg2_;
8735 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8736 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
8737 0 : result = (OSRCoordinateTransformationShadow *)new_OSRCoordinateTransformationShadow__SWIG_0(arg1,arg2);
8738 0 : *(OSRCoordinateTransformationShadow **)&jresult = result;
8739 0 : return jresult;
8740 : }
8741 :
8742 :
8743 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_new_1CoordinateTransformation_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
8744 0 : jlong jresult = 0 ;
8745 0 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
8746 0 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
8747 0 : OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
8748 0 : OSRCoordinateTransformationShadow *result = 0 ;
8749 :
8750 : (void)jenv;
8751 : (void)jcls;
8752 : (void)jarg1_;
8753 : (void)jarg2_;
8754 : (void)jarg3_;
8755 0 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
8756 0 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
8757 0 : arg3 = *(OGRCoordinateTransformationOptions **)&jarg3;
8758 0 : result = (OSRCoordinateTransformationShadow *)new_OSRCoordinateTransformationShadow__SWIG_1(arg1,arg2,arg3);
8759 0 : *(OSRCoordinateTransformationShadow **)&jresult = result;
8760 0 : return jresult;
8761 : }
8762 :
8763 :
8764 5 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_delete_1CoordinateTransformation(JNIEnv *jenv, jclass jcls, jlong jarg1) {
8765 5 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8766 :
8767 : (void)jenv;
8768 : (void)jcls;
8769 5 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8770 5 : delete_OSRCoordinateTransformationShadow(arg1);
8771 5 : }
8772 :
8773 :
8774 0 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1GetInverse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
8775 0 : jlong jresult = 0 ;
8776 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8777 0 : OSRCoordinateTransformationShadow *result = 0 ;
8778 :
8779 : (void)jenv;
8780 : (void)jcls;
8781 : (void)jarg1_;
8782 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8783 0 : result = (OSRCoordinateTransformationShadow *)OSRCoordinateTransformationShadow_GetInverse(arg1);
8784 0 : *(OSRCoordinateTransformationShadow **)&jresult = result;
8785 0 : return jresult;
8786 : }
8787 :
8788 :
8789 1 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPoint_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2) {
8790 1 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8791 : double *arg2 ;
8792 :
8793 : (void)jenv;
8794 : (void)jcls;
8795 : (void)jarg1_;
8796 1 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8797 : {
8798 : /* %typemap(in) (double argout[ANY]) */
8799 1 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 3) {
8800 : char errorMsg[128];
8801 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 3);
8802 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
8803 0 : return ;
8804 : }
8805 1 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
8806 : }
8807 1 : OSRCoordinateTransformationShadow_TransformPoint__SWIG_0(arg1,arg2);
8808 : {
8809 : /* %typemap(argout) (double argout[ANY]) */
8810 : }
8811 : {
8812 : /* %typemap(freearg) (double argout[ANY]) */
8813 1 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
8814 : }
8815 : }
8816 :
8817 :
8818 6 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPoint_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5) {
8819 6 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8820 : double *arg2 ;
8821 : double arg3 ;
8822 : double arg4 ;
8823 : double arg5 ;
8824 :
8825 : (void)jenv;
8826 : (void)jcls;
8827 : (void)jarg1_;
8828 6 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8829 : {
8830 : /* %typemap(in) (double argout[ANY]) */
8831 6 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 3) {
8832 : char errorMsg[128];
8833 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 3);
8834 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
8835 0 : return ;
8836 : }
8837 6 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
8838 : }
8839 6 : arg3 = (double)jarg3;
8840 6 : arg4 = (double)jarg4;
8841 6 : arg5 = (double)jarg5;
8842 6 : OSRCoordinateTransformationShadow_TransformPoint__SWIG_2(arg1,arg2,arg3,arg4,arg5);
8843 : {
8844 : /* %typemap(argout) (double argout[ANY]) */
8845 : }
8846 : {
8847 : /* %typemap(freearg) (double argout[ANY]) */
8848 6 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
8849 : }
8850 : }
8851 :
8852 :
8853 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPoint_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2, jdouble jarg3, jdouble jarg4) {
8854 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8855 : double *arg2 ;
8856 : double arg3 ;
8857 : double arg4 ;
8858 :
8859 : (void)jenv;
8860 : (void)jcls;
8861 : (void)jarg1_;
8862 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8863 : {
8864 : /* %typemap(in) (double argout[ANY]) */
8865 0 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 3) {
8866 : char errorMsg[128];
8867 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 3);
8868 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
8869 0 : return ;
8870 : }
8871 0 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
8872 : }
8873 0 : arg3 = (double)jarg3;
8874 0 : arg4 = (double)jarg4;
8875 0 : OSRCoordinateTransformationShadow_TransformPoint__SWIG_2(arg1,arg2,arg3,arg4);
8876 : {
8877 : /* %typemap(argout) (double argout[ANY]) */
8878 : }
8879 : {
8880 : /* %typemap(freearg) (double argout[ANY]) */
8881 0 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
8882 : }
8883 : }
8884 :
8885 :
8886 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPoint_1_1SWIG_14(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
8887 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8888 : double *arg2 ;
8889 : double arg3 ;
8890 : double arg4 ;
8891 : double arg5 ;
8892 : double arg6 ;
8893 :
8894 : (void)jenv;
8895 : (void)jcls;
8896 : (void)jarg1_;
8897 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8898 : {
8899 : /* %typemap(in) (double argout[ANY]) */
8900 0 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 4) {
8901 : char errorMsg[128];
8902 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 4);
8903 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
8904 0 : return ;
8905 : }
8906 0 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
8907 : }
8908 0 : arg3 = (double)jarg3;
8909 0 : arg4 = (double)jarg4;
8910 0 : arg5 = (double)jarg5;
8911 0 : arg6 = (double)jarg6;
8912 0 : OSRCoordinateTransformationShadow_TransformPoint__SWIG_4(arg1,arg2,arg3,arg4,arg5,arg6);
8913 : {
8914 : /* %typemap(argout) (double argout[ANY]) */
8915 : }
8916 : {
8917 : /* %typemap(freearg) (double argout[ANY]) */
8918 0 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
8919 : }
8920 : }
8921 :
8922 :
8923 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPointWithErrorCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6) {
8924 0 : jint jresult = 0 ;
8925 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8926 : double *arg2 ;
8927 : double arg3 ;
8928 : double arg4 ;
8929 : double arg5 ;
8930 : double arg6 ;
8931 : int result;
8932 :
8933 : (void)jenv;
8934 : (void)jcls;
8935 : (void)jarg1_;
8936 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8937 : {
8938 : /* %typemap(in) (double argout[ANY]) */
8939 0 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 4) {
8940 : char errorMsg[128];
8941 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 4);
8942 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
8943 0 : return 0;
8944 : }
8945 0 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
8946 : }
8947 0 : arg3 = (double)jarg3;
8948 0 : arg4 = (double)jarg4;
8949 0 : arg5 = (double)jarg5;
8950 0 : arg6 = (double)jarg6;
8951 0 : result = (int)OSRCoordinateTransformationShadow_TransformPointWithErrorCode(arg1,arg2,arg3,arg4,arg5,arg6);
8952 0 : jresult = (jint)result;
8953 : {
8954 : /* %typemap(argout) (double argout[ANY]) */
8955 : }
8956 : {
8957 : /* %typemap(freearg) (double argout[ANY]) */
8958 0 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
8959 : }
8960 0 : return jresult;
8961 : }
8962 :
8963 :
8964 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPoints(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
8965 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
8966 : int arg2 ;
8967 0 : double *arg3 = (double *) 0 ;
8968 0 : double *arg4 = (double *) 0 ;
8969 0 : double *arg5 = (double *) 0 ;
8970 : int xyzLen2 ;
8971 :
8972 : (void)jenv;
8973 : (void)jcls;
8974 : (void)jarg1_;
8975 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
8976 : {
8977 : /* %typemap(in) ( int nCount, double *x, double *y, double *z ) */
8978 0 : arg2 = (jarg2) ? jenv->GetArrayLength(jarg2) : 0;
8979 0 : xyzLen2 = arg2;
8980 0 : arg3 = (double*)CPLMalloc(arg2 * sizeof(double));
8981 0 : arg4 = (double*)CPLMalloc(arg2 * sizeof(double));
8982 0 : arg5 = (double*)CPLMalloc(arg2 * sizeof(double));
8983 : int i;
8984 0 : for (i=0; i<arg2; i++) {
8985 0 : jdoubleArray doubleArray = (jdoubleArray)jenv->GetObjectArrayElement(jarg2, i);
8986 0 : if (doubleArray == NULL)
8987 : {
8988 0 : CPLFree (arg3);
8989 0 : CPLFree (arg4);
8990 0 : CPLFree (arg5);
8991 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null object in array");
8992 0 : return ;
8993 : }
8994 0 : int nDim = jenv->GetArrayLength(doubleArray);
8995 0 : if (nDim != 2 && nDim != 3)
8996 : {
8997 0 : CPLFree (arg3);
8998 0 : CPLFree (arg4);
8999 0 : CPLFree (arg5);
9000 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "wrong array dimensions");
9001 0 : return ;
9002 : }
9003 0 : double* pElements = jenv->GetDoubleArrayElements(doubleArray, NULL);
9004 0 : arg3[i] = pElements[0];
9005 0 : arg4[i] = pElements[1];
9006 0 : if (nDim == 3)
9007 0 : arg5[i] = pElements[2];
9008 : else
9009 0 : arg5[i] = 0;
9010 0 : jenv->ReleaseDoubleArrayElements(doubleArray, pElements, JNI_ABORT);
9011 : }
9012 : }
9013 0 : OSRCoordinateTransformationShadow_TransformPoints(arg1,arg2,arg3,arg4,arg5);
9014 : {
9015 : /* %typemap(argout) ( int nCount, double *x, double *y, double *z ) */
9016 : int i;
9017 0 : for (i=0; i<arg2; i++) {
9018 0 : jdoubleArray doubleArray = (jdoubleArray)jenv->GetObjectArrayElement(jarg2, i);
9019 0 : int nDim = jenv->GetArrayLength(doubleArray);
9020 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)0, (jsize)1, &arg3[i]);
9021 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)1, (jsize)1, &arg4[i]);
9022 0 : if (nDim == 3)
9023 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)2, (jsize)1, &arg5[i]);
9024 : }
9025 0 : CPLFree(arg3);
9026 0 : CPLFree(arg4);
9027 0 : CPLFree(arg5);
9028 : }
9029 : }
9030 :
9031 :
9032 0 : SWIGEXPORT jintArray JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformPointsWithErrorCodes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobjectArray jarg2) {
9033 0 : jintArray jresult = 0 ;
9034 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
9035 : int arg2 ;
9036 0 : double *arg3 = (double *) 0 ;
9037 0 : double *arg4 = (double *) 0 ;
9038 0 : double *arg5 = (double *) 0 ;
9039 0 : double *arg6 = (double *) 0 ;
9040 0 : int *arg7 = (int *) 0 ;
9041 0 : int **arg8 = (int **) 0 ;
9042 : int xyzLen2 ;
9043 0 : int nPoints7 = 0 ;
9044 0 : int *errorCodes7 = NULL ;
9045 0 : int *result = 0 ;
9046 :
9047 : (void)jenv;
9048 : (void)jcls;
9049 : {
9050 : /* %typemap(in,numinputs=0) (int* pnCountOut, int** outErrorCodes) */
9051 0 : arg7 = &nPoints7;
9052 0 : arg8 = &errorCodes7;
9053 : }
9054 : (void)jarg1_;
9055 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
9056 : {
9057 : /* %typemap(in) ( int nCount, double *x, double *y, double *z, double *t ) */
9058 0 : arg2 = (jarg2) ? jenv->GetArrayLength(jarg2) : 0;
9059 0 : xyzLen2 = arg2;
9060 0 : arg3 = (double*)CPLMalloc(arg2 * sizeof(double));
9061 0 : arg4 = (double*)CPLMalloc(arg2 * sizeof(double));
9062 0 : arg5 = (double*)CPLMalloc(arg2 * sizeof(double));
9063 0 : arg6 = (double*)CPLMalloc(arg2 * sizeof(double));
9064 : int i;
9065 0 : for (i=0; i<arg2; i++) {
9066 0 : jdoubleArray doubleArray = (jdoubleArray)jenv->GetObjectArrayElement(jarg2, i);
9067 0 : if (doubleArray == NULL)
9068 : {
9069 0 : CPLFree (arg3);
9070 0 : CPLFree (arg4);
9071 0 : CPLFree (arg5);
9072 0 : CPLFree (arg6);
9073 0 : SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null object in array");
9074 0 : return 0;
9075 : }
9076 0 : int nDim = jenv->GetArrayLength(doubleArray);
9077 0 : if (nDim != 2 && nDim != 3 && nDim != 4)
9078 : {
9079 0 : CPLFree (arg3);
9080 0 : CPLFree (arg4);
9081 0 : CPLFree (arg5);
9082 0 : CPLFree (arg6);
9083 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "wrong array dimensions");
9084 0 : return 0;
9085 : }
9086 0 : double* pElements = jenv->GetDoubleArrayElements(doubleArray, NULL);
9087 0 : arg3[i] = pElements[0];
9088 0 : arg4[i] = pElements[1];
9089 0 : if (nDim == 3 || nDim == 4)
9090 0 : arg5[i] = pElements[2];
9091 : else
9092 0 : arg5[i] = 0;
9093 0 : if (nDim == 4)
9094 0 : arg6[i] = pElements[3];
9095 : else
9096 0 : arg6[i] = 0;
9097 0 : jenv->ReleaseDoubleArrayElements(doubleArray, pElements, JNI_ABORT);
9098 : }
9099 : }
9100 0 : result = (int *)OSRCoordinateTransformationShadow_TransformPointsWithErrorCodes(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
9101 0 : *(int **)&jresult = result;
9102 : {
9103 : /* %typemap(argout) ( int nCount, double *x, double *y, double *z, double *t ) */
9104 : int i;
9105 0 : for (i=0; i<arg2; i++) {
9106 0 : jdoubleArray doubleArray = (jdoubleArray)jenv->GetObjectArrayElement(jarg2, i);
9107 0 : int nDim = jenv->GetArrayLength(doubleArray);
9108 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)0, (jsize)1, &arg3[i]);
9109 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)1, (jsize)1, &arg4[i]);
9110 0 : if (nDim == 3 || nDim == 4)
9111 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)2, (jsize)1, &arg5[i]);
9112 0 : if (nDim == 4)
9113 0 : jenv->SetDoubleArrayRegion(doubleArray, (jsize)3, (jsize)1, &arg6[i]);
9114 : }
9115 0 : CPLFree(arg3);
9116 0 : CPLFree(arg4);
9117 0 : CPLFree(arg5);
9118 0 : CPLFree(arg6);
9119 : }
9120 : {
9121 : /* %typemap(argout) (int* pnCountOut, int** outErrorCodes) */
9122 0 : int nPointCount = *(arg7);
9123 0 : const int* errorCodes = *(arg8);
9124 0 : jintArray intArray = jenv->NewIntArray(nPointCount);
9125 0 : jenv->SetIntArrayRegion(intArray, (jsize)0, (jsize)nPointCount, (jint*)errorCodes);
9126 0 : *(jintArray *)&jresult = intArray;
9127 : }
9128 : {
9129 : /* %typemap(freearg) (int* pnCountOut, int** outErrorCodes) */
9130 0 : int* errorCodes = *(arg8);
9131 0 : VSIFree(errorCodes);
9132 : }
9133 0 : return jresult;
9134 : }
9135 :
9136 :
9137 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_CoordinateTransformation_1TransformBounds(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdoubleArray jarg2, jdouble jarg3, jdouble jarg4, jdouble jarg5, jdouble jarg6, jint jarg7) {
9138 0 : OSRCoordinateTransformationShadow *arg1 = (OSRCoordinateTransformationShadow *) 0 ;
9139 : double *arg2 ;
9140 : double arg3 ;
9141 : double arg4 ;
9142 : double arg5 ;
9143 : double arg6 ;
9144 : int arg7 ;
9145 :
9146 : (void)jenv;
9147 : (void)jcls;
9148 : (void)jarg1_;
9149 0 : arg1 = *(OSRCoordinateTransformationShadow **)&jarg1;
9150 : {
9151 : /* %typemap(in) (double argout[ANY]) */
9152 0 : if(jarg2 == NULL || jenv->GetArrayLength(jarg2) != 4) {
9153 : char errorMsg[128];
9154 0 : snprintf(errorMsg, sizeof(errorMsg), "array of size %d expected", 4);
9155 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, errorMsg);
9156 0 : return ;
9157 : }
9158 0 : arg2 = (double *)jenv->GetDoubleArrayElements(jarg2, NULL);
9159 : }
9160 0 : arg3 = (double)jarg3;
9161 0 : arg4 = (double)jarg4;
9162 0 : arg5 = (double)jarg5;
9163 0 : arg6 = (double)jarg6;
9164 0 : arg7 = (int)jarg7;
9165 0 : OSRCoordinateTransformationShadow_TransformBounds(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
9166 : {
9167 : /* %typemap(argout) (double argout[ANY]) */
9168 : }
9169 : {
9170 : /* %typemap(freearg) (double argout[ANY]) */
9171 0 : jenv->ReleaseDoubleArrayElements(jarg2, (jdouble *)arg2, 0);
9172 : }
9173 : }
9174 :
9175 :
9176 2 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_CreateCoordinateTransformation_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) {
9177 2 : jlong jresult = 0 ;
9178 2 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
9179 2 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
9180 2 : OGRCoordinateTransformationOptions *arg3 = (OGRCoordinateTransformationOptions *) 0 ;
9181 2 : OSRCoordinateTransformationShadow *result = 0 ;
9182 :
9183 : (void)jenv;
9184 : (void)jcls;
9185 : (void)jarg1_;
9186 : (void)jarg2_;
9187 : (void)jarg3_;
9188 2 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
9189 2 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
9190 2 : arg3 = *(OGRCoordinateTransformationOptions **)&jarg3;
9191 2 : result = (OSRCoordinateTransformationShadow *)CreateCoordinateTransformation(arg1,arg2,arg3);
9192 2 : *(OSRCoordinateTransformationShadow **)&jresult = result;
9193 2 : return jresult;
9194 : }
9195 :
9196 :
9197 6 : SWIGEXPORT jlong JNICALL Java_org_gdal_osr_osrJNI_CreateCoordinateTransformation_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
9198 6 : jlong jresult = 0 ;
9199 6 : OSRSpatialReferenceShadow *arg1 = (OSRSpatialReferenceShadow *) 0 ;
9200 6 : OSRSpatialReferenceShadow *arg2 = (OSRSpatialReferenceShadow *) 0 ;
9201 6 : OSRCoordinateTransformationShadow *result = 0 ;
9202 :
9203 : (void)jenv;
9204 : (void)jcls;
9205 : (void)jarg1_;
9206 : (void)jarg2_;
9207 6 : arg1 = *(OSRSpatialReferenceShadow **)&jarg1;
9208 6 : arg2 = *(OSRSpatialReferenceShadow **)&jarg2;
9209 6 : result = (OSRCoordinateTransformationShadow *)CreateCoordinateTransformation(arg1,arg2);
9210 6 : *(OSRCoordinateTransformationShadow **)&jresult = result;
9211 6 : return jresult;
9212 : }
9213 :
9214 :
9215 0 : SWIGEXPORT jobject JNICALL Java_org_gdal_osr_osrJNI_GetAuthorityListFromDatabase(JNIEnv *jenv, jclass jcls) {
9216 0 : jobject jresult = 0 ;
9217 0 : char **result = 0 ;
9218 :
9219 : (void)jenv;
9220 : (void)jcls;
9221 0 : result = (char **)GetAuthorityListFromDatabase();
9222 : {
9223 : /* %typemap(out) char **CSL */
9224 0 : char **stringarray = result;
9225 0 : const jclass vector = jenv->FindClass("java/util/Vector");
9226 0 : const jmethodID constructor = jenv->GetMethodID(vector, "<init>", "()V");
9227 0 : const jmethodID add = jenv->GetMethodID(vector, "add", "(Ljava/lang/Object;)Z");
9228 :
9229 0 : jresult = jenv->NewObject(vector, constructor);
9230 0 : if ( stringarray != NULL ) {
9231 0 : while(*stringarray != NULL) {
9232 0 : jstring value = SafeNewStringUTF8(jenv, *stringarray);
9233 0 : jenv->CallBooleanMethod(jresult, add, value);
9234 0 : jenv->DeleteLocalRef(value);
9235 0 : stringarray++;
9236 : }
9237 : }
9238 0 : CSLDestroy(result);
9239 : }
9240 0 : return jresult;
9241 : }
9242 :
9243 :
9244 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SetPROJSearchPath(JNIEnv *jenv, jclass jcls, jstring jarg1) {
9245 0 : char *arg1 = (char *) 0 ;
9246 :
9247 : (void)jenv;
9248 : (void)jcls;
9249 0 : arg1 = 0;
9250 0 : if (jarg1) {
9251 0 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
9252 0 : if (!arg1) return ;
9253 : }
9254 0 : SetPROJSearchPath((char const *)arg1);
9255 0 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
9256 : }
9257 :
9258 :
9259 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SetPROJSearchPaths(JNIEnv *jenv, jclass jcls, jobject jarg1) {
9260 0 : char **arg1 = (char **) 0 ;
9261 :
9262 : (void)jenv;
9263 : (void)jcls;
9264 : {
9265 : /* %typemap(in) char **options */
9266 0 : arg1 = NULL;
9267 0 : if(jarg1 != 0) {
9268 0 : const jclass vector = jenv->FindClass("java/util/Vector");
9269 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
9270 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
9271 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
9272 : "()Ljava/util/Enumeration;");
9273 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
9274 : "hasMoreElements", "()Z");
9275 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
9276 : "nextElement", "()Ljava/lang/Object;");
9277 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
9278 0 : hasMoreElements == NULL || getNextElement == NULL) {
9279 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
9280 0 : return ;
9281 : }
9282 0 : for (jobject keys = jenv->CallObjectMethod(jarg1, elements);
9283 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
9284 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
9285 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
9286 : {
9287 0 : CSLDestroy(arg1);
9288 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
9289 0 : return ;
9290 : }
9291 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
9292 0 : arg1 = CSLAddString(arg1, valptr);
9293 0 : jenv->ReleaseStringUTFChars(value, valptr);
9294 : }
9295 : }
9296 : }
9297 0 : SetPROJSearchPaths(arg1);
9298 : {
9299 : /* %typemap(freearg) char **options */
9300 0 : CSLDestroy( arg1 );
9301 : }
9302 : }
9303 :
9304 :
9305 0 : SWIGEXPORT jobject JNICALL Java_org_gdal_osr_osrJNI_GetPROJSearchPaths(JNIEnv *jenv, jclass jcls) {
9306 0 : jobject jresult = 0 ;
9307 0 : char **result = 0 ;
9308 :
9309 : (void)jenv;
9310 : (void)jcls;
9311 0 : result = (char **)GetPROJSearchPaths();
9312 : {
9313 : /* %typemap(out) char **CSL */
9314 0 : char **stringarray = result;
9315 0 : const jclass vector = jenv->FindClass("java/util/Vector");
9316 0 : const jmethodID constructor = jenv->GetMethodID(vector, "<init>", "()V");
9317 0 : const jmethodID add = jenv->GetMethodID(vector, "add", "(Ljava/lang/Object;)Z");
9318 :
9319 0 : jresult = jenv->NewObject(vector, constructor);
9320 0 : if ( stringarray != NULL ) {
9321 0 : while(*stringarray != NULL) {
9322 0 : jstring value = SafeNewStringUTF8(jenv, *stringarray);
9323 0 : jenv->CallBooleanMethod(jresult, add, value);
9324 0 : jenv->DeleteLocalRef(value);
9325 0 : stringarray++;
9326 : }
9327 : }
9328 0 : CSLDestroy(result);
9329 : }
9330 0 : return jresult;
9331 : }
9332 :
9333 :
9334 2 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_GetPROJVersionMajor(JNIEnv *jenv, jclass jcls) {
9335 2 : jint jresult = 0 ;
9336 : int result;
9337 :
9338 : (void)jenv;
9339 : (void)jcls;
9340 2 : result = (int)GetPROJVersionMajor();
9341 2 : jresult = (jint)result;
9342 2 : return jresult;
9343 : }
9344 :
9345 :
9346 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_GetPROJVersionMinor(JNIEnv *jenv, jclass jcls) {
9347 0 : jint jresult = 0 ;
9348 : int result;
9349 :
9350 : (void)jenv;
9351 : (void)jcls;
9352 0 : result = (int)GetPROJVersionMinor();
9353 0 : jresult = (jint)result;
9354 0 : return jresult;
9355 : }
9356 :
9357 :
9358 0 : SWIGEXPORT jint JNICALL Java_org_gdal_osr_osrJNI_GetPROJVersionMicro(JNIEnv *jenv, jclass jcls) {
9359 0 : jint jresult = 0 ;
9360 : int result;
9361 :
9362 : (void)jenv;
9363 : (void)jcls;
9364 0 : result = (int)GetPROJVersionMicro();
9365 0 : jresult = (jint)result;
9366 0 : return jresult;
9367 : }
9368 :
9369 :
9370 0 : SWIGEXPORT jboolean JNICALL Java_org_gdal_osr_osrJNI_GetPROJEnableNetwork(JNIEnv *jenv, jclass jcls) {
9371 0 : jboolean jresult = 0 ;
9372 : bool result;
9373 :
9374 : (void)jenv;
9375 : (void)jcls;
9376 0 : result = (bool)GetPROJEnableNetwork();
9377 0 : jresult = (jboolean)result;
9378 0 : return jresult;
9379 : }
9380 :
9381 :
9382 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SetPROJEnableNetwork(JNIEnv *jenv, jclass jcls, jboolean jarg1) {
9383 : bool arg1 ;
9384 :
9385 : (void)jenv;
9386 : (void)jcls;
9387 0 : arg1 = jarg1 ? true : false;
9388 0 : SetPROJEnableNetwork(arg1);
9389 0 : }
9390 :
9391 :
9392 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SetPROJAuxDbPath(JNIEnv *jenv, jclass jcls, jstring jarg1) {
9393 0 : char *arg1 = (char *) 0 ;
9394 :
9395 : (void)jenv;
9396 : (void)jcls;
9397 0 : arg1 = 0;
9398 0 : if (jarg1) {
9399 0 : arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
9400 0 : if (!arg1) return ;
9401 : }
9402 0 : SetPROJAuxDbPath((char const *)arg1);
9403 0 : if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
9404 : }
9405 :
9406 :
9407 0 : SWIGEXPORT void JNICALL Java_org_gdal_osr_osrJNI_SetPROJAuxDbPaths(JNIEnv *jenv, jclass jcls, jobject jarg1) {
9408 0 : char **arg1 = (char **) 0 ;
9409 :
9410 : (void)jenv;
9411 : (void)jcls;
9412 : {
9413 : /* %typemap(in) char **options */
9414 0 : arg1 = NULL;
9415 0 : if(jarg1 != 0) {
9416 0 : const jclass vector = jenv->FindClass("java/util/Vector");
9417 0 : const jclass enumeration = jenv->FindClass("java/util/Enumeration");
9418 0 : const jclass stringClass = jenv->FindClass("java/lang/String");
9419 0 : const jmethodID elements = jenv->GetMethodID(vector, "elements",
9420 : "()Ljava/util/Enumeration;");
9421 0 : const jmethodID hasMoreElements = jenv->GetMethodID(enumeration,
9422 : "hasMoreElements", "()Z");
9423 0 : const jmethodID getNextElement = jenv->GetMethodID(enumeration,
9424 : "nextElement", "()Ljava/lang/Object;");
9425 0 : if(vector == NULL || enumeration == NULL || elements == NULL ||
9426 0 : hasMoreElements == NULL || getNextElement == NULL) {
9427 0 : fprintf(stderr, "Could not load (options **) jni types.\n");
9428 0 : return ;
9429 : }
9430 0 : for (jobject keys = jenv->CallObjectMethod(jarg1, elements);
9431 0 : jenv->CallBooleanMethod(keys, hasMoreElements) == JNI_TRUE;) {
9432 0 : jstring value = (jstring)jenv->CallObjectMethod(keys, getNextElement);
9433 0 : if (value == NULL || !jenv->IsInstanceOf(value, stringClass))
9434 : {
9435 0 : CSLDestroy(arg1);
9436 0 : SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, "an element in the vector is not a string");
9437 0 : return ;
9438 : }
9439 0 : const char *valptr = jenv->GetStringUTFChars(value, 0);
9440 0 : arg1 = CSLAddString(arg1, valptr);
9441 0 : jenv->ReleaseStringUTFChars(value, valptr);
9442 : }
9443 : }
9444 : }
9445 0 : SetPROJAuxDbPaths(arg1);
9446 : {
9447 : /* %typemap(freearg) char **options */
9448 0 : CSLDestroy( arg1 );
9449 : }
9450 : }
9451 :
9452 :
9453 0 : SWIGEXPORT jobject JNICALL Java_org_gdal_osr_osrJNI_GetPROJAuxDbPaths(JNIEnv *jenv, jclass jcls) {
9454 0 : jobject jresult = 0 ;
9455 0 : char **result = 0 ;
9456 :
9457 : (void)jenv;
9458 : (void)jcls;
9459 0 : result = (char **)GetPROJAuxDbPaths();
9460 : {
9461 : /* %typemap(out) char **CSL */
9462 0 : char **stringarray = result;
9463 0 : const jclass vector = jenv->FindClass("java/util/Vector");
9464 0 : const jmethodID constructor = jenv->GetMethodID(vector, "<init>", "()V");
9465 0 : const jmethodID add = jenv->GetMethodID(vector, "add", "(Ljava/lang/Object;)Z");
9466 :
9467 0 : jresult = jenv->NewObject(vector, constructor);
9468 0 : if ( stringarray != NULL ) {
9469 0 : while(*stringarray != NULL) {
9470 0 : jstring value = SafeNewStringUTF8(jenv, *stringarray);
9471 0 : jenv->CallBooleanMethod(jresult, add, value);
9472 0 : jenv->DeleteLocalRef(value);
9473 0 : stringarray++;
9474 : }
9475 : }
9476 0 : CSLDestroy(result);
9477 : }
9478 0 : return jresult;
9479 : }
9480 :
9481 :
9482 : #ifdef __cplusplus
9483 : }
9484 : #endif
9485 :
|