GDAL 3.9.0__tar.gz → 3.9.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. {GDAL-3.9.0 → gdal-3.9.2}/PKG-INFO +3 -2
  2. {GDAL-3.9.0 → gdal-3.9.2}/README.rst +2 -1
  3. {GDAL-3.9.0 → gdal-3.9.2}/extensions/gdal_array_wrap.cpp +5 -5
  4. {GDAL-3.9.0 → gdal-3.9.2}/extensions/gdal_wrap.cpp +150 -64
  5. {GDAL-3.9.0 → gdal-3.9.2}/extensions/gnm_wrap.cpp +5 -5
  6. {GDAL-3.9.0 → gdal-3.9.2}/extensions/ogr_wrap.cpp +62 -29
  7. {GDAL-3.9.0 → gdal-3.9.2}/extensions/osr_wrap.cpp +115 -30
  8. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/PKG-INFO +3 -2
  9. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/__init__.py +1 -1
  10. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/util.py +11 -1
  11. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal2tiles.py +66 -61
  12. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal2xyz.py +7 -1
  13. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_calc.py +6 -1
  14. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_edit.py +5 -7
  15. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_fillnodata.py +2 -0
  16. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_merge.py +8 -1
  17. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_pansharpen.py +3 -1
  18. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_polygonize.py +2 -1
  19. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_proximity.py +3 -1
  20. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_retile.py +43 -1
  21. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdal_sieve.py +2 -1
  22. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdalattachpct.py +7 -1
  23. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdalcompare.py +3 -0
  24. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/gdalmove.py +3 -1
  25. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/ogr_layer_algebra.py +3 -0
  26. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/ogrmerge.py +2 -5
  27. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/pct2rgb.py +6 -1
  28. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/rgb2pct.py +6 -1
  29. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/validate_geoparquet.py +1 -15
  30. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal2tiles.py +1 -3
  31. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal2xyz.py +1 -3
  32. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_calc.py +1 -3
  33. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_edit.py +1 -3
  34. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_fillnodata.py +1 -3
  35. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_merge.py +1 -3
  36. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_pansharpen.py +1 -3
  37. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_polygonize.py +1 -3
  38. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_proximity.py +1 -3
  39. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_retile.py +1 -3
  40. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdal_sieve.py +1 -3
  41. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdalattachpct.py +1 -3
  42. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdalcompare.py +1 -3
  43. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/gdalmove.py +1 -3
  44. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/ogr_layer_algebra.py +1 -3
  45. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/ogrmerge.py +1 -3
  46. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/pct2rgb.py +1 -3
  47. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/scripts/rgb2pct.py +1 -3
  48. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/gdal.py +6 -6
  49. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/ogr.py +8 -2
  50. {GDAL-3.9.0 → gdal-3.9.2}/setup.py +1 -1
  51. {GDAL-3.9.0 → gdal-3.9.2}/extensions/gdalconst_wrap.c +0 -0
  52. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/SOURCES.txt +0 -0
  53. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/dependency_links.txt +0 -0
  54. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/entry_points.txt +0 -0
  55. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/not-zip-safe +0 -0
  56. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/requires.txt +0 -0
  57. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/GDAL.egg-info/top_level.txt +0 -0
  58. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/__init__.py +0 -0
  59. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/array_util.py +0 -0
  60. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/base.py +0 -0
  61. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/batch_creator.py +0 -0
  62. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/color_palette.py +0 -0
  63. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/color_table.py +0 -0
  64. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/extent_util.py +0 -0
  65. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py +0 -0
  66. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/numpy_util.py +0 -0
  67. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/osr_util.py +0 -0
  68. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/progress.py +0 -0
  69. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/raster_creation.py +0 -0
  70. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/auxiliary/rectangle.py +0 -0
  71. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/__init__.py +0 -0
  72. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/assemblepoly.py +0 -0
  73. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/build_jp2_from_xml.py +0 -0
  74. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/classify.py +0 -0
  75. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/crs2crs2grid.py +0 -0
  76. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/densify.py +0 -0
  77. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/dump_jp2.py +0 -0
  78. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/epsg_tr.py +0 -0
  79. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/esri2wkt.py +0 -0
  80. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/fft.py +0 -0
  81. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/fix_gpkg.py +0 -0
  82. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gcps2ogr.py +0 -0
  83. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gcps2vec.py +0 -0
  84. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gcps2wld.py +0 -0
  85. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal2grd.py +0 -0
  86. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_auth.py +0 -0
  87. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_cp.py +0 -0
  88. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_create_pdf.py +0 -0
  89. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_ls.py +0 -0
  90. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_lut.py +0 -0
  91. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_mkdir.py +0 -0
  92. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_remove_towgs84.py +0 -0
  93. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_rm.py +0 -0
  94. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_rmdir.py +0 -0
  95. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdal_vrtmerge.py +0 -0
  96. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalbuildvrtofvrt.py +0 -0
  97. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalchksum.py +0 -0
  98. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalcopyproj.py +0 -0
  99. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalfilter.py +0 -0
  100. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalident.py +0 -0
  101. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalimport.py +0 -0
  102. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdalinfo.py +0 -0
  103. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/gdallocationinfo.py +0 -0
  104. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/get_soundg.py +0 -0
  105. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/histrep.py +0 -0
  106. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/hsv_merge.py +0 -0
  107. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/jpeg_in_tiff_extract.py +0 -0
  108. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/load2odbc.py +0 -0
  109. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/loslas2ntv2.py +0 -0
  110. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/magphase.py +0 -0
  111. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/make_fuzzer_friendly_archive.py +0 -0
  112. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/mkgraticule.py +0 -0
  113. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/ogr2vrt.py +0 -0
  114. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/ogr_build_junction_table.py +0 -0
  115. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/ogr_dispatch.py +0 -0
  116. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/ogrinfo.py +0 -0
  117. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/ogrupdate.py +0 -0
  118. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/rel.py +0 -0
  119. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/tigerpoly.py +0 -0
  120. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/tile_extent_from_raster.py +0 -0
  121. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/tolatlong.py +0 -0
  122. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/val_repl.py +0 -0
  123. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py +0 -0
  124. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/validate_gpkg.py +0 -0
  125. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/validate_jp2.py +0 -0
  126. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/vec_tr.py +0 -0
  127. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/vec_tr_spat.py +0 -0
  128. {GDAL-3.9.0 → gdal-3.9.2}/gdal-utils/osgeo_utils/samples/wcs_virtds_params.py +0 -0
  129. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/__init__.py +0 -0
  130. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/gdal_array.py +0 -0
  131. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/gdalconst.py +0 -0
  132. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/gdalnumeric.py +0 -0
  133. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/gnm.py +0 -0
  134. {GDAL-3.9.0 → gdal-3.9.2}/osgeo/osr.py +0 -0
  135. {GDAL-3.9.0 → gdal-3.9.2}/pyproject.toml +0 -0
  136. {GDAL-3.9.0 → gdal-3.9.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GDAL
3
- Version: 3.9.0
3
+ Version: 3.9.2
4
4
  Summary: GDAL: Geospatial Data Abstraction Library
5
5
  Home-page: http://www.gdal.org
6
6
  Author: Frank Warmerdam, Howard Butler, Even Rouault
@@ -44,7 +44,7 @@ reference documentation, but the https://gdal.org/api/python_bindings.html#tutor
44
44
  Dependencies
45
45
  ------------
46
46
 
47
- * libgdal (3.9.0 or greater) and header files (gdal-devel)
47
+ * libgdal (3.9.2 or greater) and header files (gdal-devel)
48
48
  * numpy (1.0.0 or greater) and header files (numpy-devel) (not explicitly
49
49
  required, but many examples and utilities will not work without it)
50
50
 
@@ -111,6 +111,7 @@ This is most often due to pip reusing a cached GDAL installation.
111
111
  Verify that the necessary dependencies have been installed and then run the following to force a clean build:
112
112
 
113
113
  ::
114
+
114
115
  pip install --no-cache --force-reinstall gdal[numpy]=="$(gdal-config --version).*"
115
116
 
116
117
 
@@ -13,7 +13,7 @@ reference documentation, but the https://gdal.org/api/python_bindings.html#tutor
13
13
  Dependencies
14
14
  ------------
15
15
 
16
- * libgdal (3.9.0 or greater) and header files (gdal-devel)
16
+ * libgdal (3.9.2 or greater) and header files (gdal-devel)
17
17
  * numpy (1.0.0 or greater) and header files (numpy-devel) (not explicitly
18
18
  required, but many examples and utilities will not work without it)
19
19
 
@@ -80,6 +80,7 @@ This is most often due to pip reusing a cached GDAL installation.
80
80
  Verify that the necessary dependencies have been installed and then run the following to force a clean build:
81
81
 
82
82
  ::
83
+
83
84
  pip install --no-cache --force-reinstall gdal[numpy]=="$(gdal-config --version).*"
84
85
 
85
86
 
@@ -3552,7 +3552,7 @@ void _DontUseExceptions() {
3552
3552
 
3553
3553
  static int _UserHasSpecifiedIfUsingExceptions()
3554
3554
  {
3555
- return bUserHasSpecifiedIfUsingExceptions;
3555
+ return bUserHasSpecifiedIfUsingExceptions || bUseExceptionsLocal >= 0;
3556
3556
  }
3557
3557
 
3558
3558
 
@@ -6456,7 +6456,7 @@ SWIGINTERN PyObject *_wrap_GetUseExceptions(PyObject *self, PyObject *args) {
6456
6456
  if (!SWIG_Python_UnpackTuple(args, "GetUseExceptions", 0, 0, 0)) SWIG_fail;
6457
6457
  {
6458
6458
  #ifdef SED_HACKS
6459
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
6459
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
6460
6460
  #endif
6461
6461
  result = GetUseExceptions();
6462
6462
  }
@@ -6475,7 +6475,7 @@ SWIGINTERN PyObject *_wrap__GetExceptionsLocal(PyObject *self, PyObject *args) {
6475
6475
  if (!SWIG_Python_UnpackTuple(args, "_GetExceptionsLocal", 0, 0, 0)) SWIG_fail;
6476
6476
  {
6477
6477
  #ifdef SED_HACKS
6478
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
6478
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
6479
6479
  #endif
6480
6480
  {
6481
6481
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -6507,7 +6507,7 @@ SWIGINTERN PyObject *_wrap__SetExceptionsLocal(PyObject *self, PyObject *args) {
6507
6507
  arg1 = static_cast< int >(val1);
6508
6508
  {
6509
6509
  #ifdef SED_HACKS
6510
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
6510
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
6511
6511
  #endif
6512
6512
  {
6513
6513
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -6564,7 +6564,7 @@ SWIGINTERN PyObject *_wrap__UserHasSpecifiedIfUsingExceptions(PyObject *self, Py
6564
6564
  if (!SWIG_Python_UnpackTuple(args, "_UserHasSpecifiedIfUsingExceptions", 0, 0, 0)) SWIG_fail;
6565
6565
  {
6566
6566
  #ifdef SED_HACKS
6567
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
6567
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
6568
6568
  #endif
6569
6569
  {
6570
6570
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -3509,7 +3509,7 @@ void _DontUseExceptions() {
3509
3509
 
3510
3510
  static int _UserHasSpecifiedIfUsingExceptions()
3511
3511
  {
3512
- return bUserHasSpecifiedIfUsingExceptions;
3512
+ return bUserHasSpecifiedIfUsingExceptions || bUseExceptionsLocal >= 0;
3513
3513
  }
3514
3514
 
3515
3515
 
@@ -5033,9 +5033,6 @@ void GDAL_GCP_Id_set( GDAL_GCP *gcp, const char * pszId ) {
5033
5033
  }
5034
5034
 
5035
5035
 
5036
- #define t_output_helper SWIG_Python_AppendOutput
5037
-
5038
-
5039
5036
  static PyObject *
5040
5037
  CreateTupleFromDoubleArray( const double *first, size_t size ) {
5041
5038
  PyObject *out = PyTuple_New( size );
@@ -6625,8 +6622,8 @@ SWIGINTERN CPLErr GDALMDArrayHS_Read(GDALMDArrayHS *self,int nDims1,GUIntBig *ar
6625
6622
  SWIGINTERN CPLErr GDALMDArrayHS_WriteStringArray(GDALMDArrayHS *self,int nDims1,GUIntBig *array_start_idx,int nDims2,GUIntBig *count,int nDims3,GIntBig *array_step,GDALExtendedDataTypeHS *buffer_datatype,char **options){
6626
6623
 
6627
6624
  const int nExpectedDims = (int)GDALMDArrayGetDimensionCount(self);
6628
- std::vector<size_t> count_internal(nExpectedDims);
6629
- if( nExpectedDims != 1 )
6625
+ std::vector<size_t> count_internal(nExpectedDims + 1);
6626
+ if( nExpectedDims > 1 )
6630
6627
  {
6631
6628
  CPLError(CE_Failure, CPLE_AppDefined,
6632
6629
  "Unsupported number of dimensions");
@@ -6641,23 +6638,26 @@ SWIGINTERN CPLErr GDALMDArrayHS_WriteStringArray(GDALMDArrayHS *self,int nDims1,
6641
6638
  return CE_Failure;
6642
6639
  }
6643
6640
  }
6644
- if( nDims1 != 1 )
6645
- {
6646
- CPLError(CE_Failure, CPLE_AppDefined,
6647
- "Wrong number of values in array_start_idx");
6648
- return CE_Failure;
6649
- }
6650
- if( nDims2 != 1 )
6641
+ if( nExpectedDims == 1 )
6651
6642
  {
6652
- CPLError(CE_Failure, CPLE_AppDefined,
6653
- "Wrong number of values in count");
6654
- return CE_Failure;
6655
- }
6656
- if( nDims3 != 1 )
6657
- {
6658
- CPLError(CE_Failure, CPLE_AppDefined,
6659
- "Wrong number of values in array_step");
6660
- return CE_Failure;
6643
+ if( nDims1 != 1 )
6644
+ {
6645
+ CPLError(CE_Failure, CPLE_AppDefined,
6646
+ "Wrong number of values in array_start_idx");
6647
+ return CE_Failure;
6648
+ }
6649
+ if( nDims2 != 1 )
6650
+ {
6651
+ CPLError(CE_Failure, CPLE_AppDefined,
6652
+ "Wrong number of values in count");
6653
+ return CE_Failure;
6654
+ }
6655
+ if( nDims3 != 1 )
6656
+ {
6657
+ CPLError(CE_Failure, CPLE_AppDefined,
6658
+ "Wrong number of values in array_step");
6659
+ return CE_Failure;
6660
+ }
6661
6661
  }
6662
6662
 
6663
6663
  CPLErr eErr = GDALMDArrayWrite(self,
@@ -9422,7 +9422,7 @@ SWIGINTERN PyObject *_wrap_GetUseExceptions(PyObject *self, PyObject *args) {
9422
9422
  if (!SWIG_Python_UnpackTuple(args, "GetUseExceptions", 0, 0, 0)) SWIG_fail;
9423
9423
  {
9424
9424
  #ifdef SED_HACKS
9425
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
9425
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
9426
9426
  #endif
9427
9427
  result = GetUseExceptions();
9428
9428
  }
@@ -9441,7 +9441,7 @@ SWIGINTERN PyObject *_wrap__GetExceptionsLocal(PyObject *self, PyObject *args) {
9441
9441
  if (!SWIG_Python_UnpackTuple(args, "_GetExceptionsLocal", 0, 0, 0)) SWIG_fail;
9442
9442
  {
9443
9443
  #ifdef SED_HACKS
9444
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
9444
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
9445
9445
  #endif
9446
9446
  {
9447
9447
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -9473,7 +9473,7 @@ SWIGINTERN PyObject *_wrap__SetExceptionsLocal(PyObject *self, PyObject *args) {
9473
9473
  arg1 = static_cast< int >(val1);
9474
9474
  {
9475
9475
  #ifdef SED_HACKS
9476
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
9476
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
9477
9477
  #endif
9478
9478
  {
9479
9479
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -9530,7 +9530,7 @@ SWIGINTERN PyObject *_wrap__UserHasSpecifiedIfUsingExceptions(PyObject *self, Py
9530
9530
  if (!SWIG_Python_UnpackTuple(args, "_UserHasSpecifiedIfUsingExceptions", 0, 0, 0)) SWIG_fail;
9531
9531
  {
9532
9532
  #ifdef SED_HACKS
9533
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
9533
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
9534
9534
  #endif
9535
9535
  {
9536
9536
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -19546,7 +19546,11 @@ SWIGINTERN PyObject *_wrap_GCPsToGeoTransform(PyObject *self, PyObject *args) {
19546
19546
  {
19547
19547
  /* %typemap(argout) (double argout[ANY]) */
19548
19548
  PyObject *out = CreateTupleFromDoubleArray( arg3, 6 );
19549
- resultobj = t_output_helper(resultobj,out);
19549
+ #if SWIG_VERSION >= 0x040300
19550
+ resultobj = SWIG_Python_AppendOutput(resultobj,out,$isvoid);
19551
+ #else
19552
+ resultobj = SWIG_Python_AppendOutput(resultobj,out);
19553
+ #endif
19550
19554
  }
19551
19555
  {
19552
19556
  /* %typemap(freearg) (int nGCPs, GDAL_GCP const *pGCPs ) */
@@ -20799,7 +20803,11 @@ SWIGINTERN PyObject *_wrap_Dataset_GetGeoTransform(PyObject *self, PyObject *arg
20799
20803
  else {
20800
20804
  r = CreateTupleFromDoubleArray(arg2, 6);
20801
20805
  }
20802
- resultobj = t_output_helper(resultobj,r);
20806
+ #if 0x040101 >= 0x040300
20807
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
20808
+ #else
20809
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
20810
+ #endif
20803
20811
  }
20804
20812
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
20805
20813
  return resultobj;
@@ -23399,14 +23407,19 @@ SWIGINTERN PyObject *_wrap_Dataset_GetNextFeature(PyObject *self, PyObject *args
23399
23407
  PyList_SetItem(resultobj, 0, Py_None);
23400
23408
  }
23401
23409
 
23410
+ PyObject* r;
23402
23411
  if ( !*arg4 ) {
23412
+ r = Py_None;
23403
23413
  Py_INCREF(Py_None);
23404
- resultobj = SWIG_Python_AppendOutput(resultobj, Py_None);
23405
23414
  }
23406
23415
  else {
23407
- resultobj = SWIG_Python_AppendOutput(resultobj,
23408
- SWIG_NewPointerObj(SWIG_as_voidptr( *arg4), SWIGTYPE_p_OGRLayerShadow, 0 ));
23416
+ r = SWIG_NewPointerObj(SWIG_as_voidptr( *arg4), SWIGTYPE_p_OGRLayerShadow, 0 );
23409
23417
  }
23418
+ #if SWIG_VERSION >= 0x040300
23419
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
23420
+ #else
23421
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
23422
+ #endif
23410
23423
  }
23411
23424
 
23412
23425
  if( arg3 )
@@ -23416,7 +23429,12 @@ SWIGINTERN PyObject *_wrap_Dataset_GetNextFeature(PyObject *self, PyObject *args
23416
23429
  resultobj = PyList_New(1);
23417
23430
  PyList_SetItem(resultobj, 0, Py_None);
23418
23431
  }
23419
- resultobj = SWIG_Python_AppendOutput(resultobj, PyFloat_FromDouble( *arg5));
23432
+ PyObject* r = PyFloat_FromDouble( *arg5);
23433
+ #if SWIG_VERSION >= 0x040300
23434
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
23435
+ #else
23436
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
23437
+ #endif
23420
23438
  }
23421
23439
 
23422
23440
  }
@@ -31135,12 +31153,15 @@ SWIGINTERN PyObject *_wrap_MDArray_GetNoDataValueAsDouble(PyObject *self, PyObje
31135
31153
  if ( !*arg3 ) {
31136
31154
  Py_INCREF(Py_None);
31137
31155
  r = Py_None;
31138
- resultobj = t_output_helper(resultobj,r);
31139
31156
  }
31140
31157
  else {
31141
31158
  r = PyFloat_FromDouble( *arg2 );
31142
- resultobj = t_output_helper(resultobj,r);
31143
31159
  }
31160
+ #if SWIG_VERSION >= 0x040300
31161
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
31162
+ #else
31163
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
31164
+ #endif
31144
31165
  }
31145
31166
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
31146
31167
  return resultobj;
@@ -31201,12 +31222,15 @@ SWIGINTERN PyObject *_wrap_MDArray_GetNoDataValueAsInt64(PyObject *self, PyObjec
31201
31222
  if ( !*arg3 ) {
31202
31223
  Py_INCREF(Py_None);
31203
31224
  r = Py_None;
31204
- resultobj = t_output_helper(resultobj,r);
31205
31225
  }
31206
31226
  else {
31207
31227
  r = PyLong_FromLongLong( *arg2 );
31208
- resultobj = t_output_helper(resultobj,r);
31209
31228
  }
31229
+ #if SWIG_VERSION >= 0x040300
31230
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
31231
+ #else
31232
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
31233
+ #endif
31210
31234
  }
31211
31235
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
31212
31236
  return resultobj;
@@ -31267,12 +31291,15 @@ SWIGINTERN PyObject *_wrap_MDArray_GetNoDataValueAsUInt64(PyObject *self, PyObje
31267
31291
  if ( !*arg3 ) {
31268
31292
  Py_INCREF(Py_None);
31269
31293
  r = Py_None;
31270
- resultobj = t_output_helper(resultobj,r);
31271
31294
  }
31272
31295
  else {
31273
31296
  r = PyLong_FromUnsignedLongLong( *arg2 );
31274
- resultobj = t_output_helper(resultobj,r);
31275
31297
  }
31298
+ #if SWIG_VERSION >= 0x040300
31299
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
31300
+ #else
31301
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
31302
+ #endif
31276
31303
  }
31277
31304
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
31278
31305
  return resultobj;
@@ -31714,12 +31741,15 @@ SWIGINTERN PyObject *_wrap_MDArray_GetOffset(PyObject *self, PyObject *args) {
31714
31741
  if ( !*arg3 ) {
31715
31742
  Py_INCREF(Py_None);
31716
31743
  r = Py_None;
31717
- resultobj = t_output_helper(resultobj,r);
31718
31744
  }
31719
31745
  else {
31720
31746
  r = PyFloat_FromDouble( *arg2 );
31721
- resultobj = t_output_helper(resultobj,r);
31722
31747
  }
31748
+ #if SWIG_VERSION >= 0x040300
31749
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
31750
+ #else
31751
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
31752
+ #endif
31723
31753
  }
31724
31754
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
31725
31755
  return resultobj;
@@ -31825,12 +31855,15 @@ SWIGINTERN PyObject *_wrap_MDArray_GetScale(PyObject *self, PyObject *args) {
31825
31855
  if ( !*arg3 ) {
31826
31856
  Py_INCREF(Py_None);
31827
31857
  r = Py_None;
31828
- resultobj = t_output_helper(resultobj,r);
31829
31858
  }
31830
31859
  else {
31831
31860
  r = PyFloat_FromDouble( *arg2 );
31832
- resultobj = t_output_helper(resultobj,r);
31833
31861
  }
31862
+ #if SWIG_VERSION >= 0x040300
31863
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
31864
+ #else
31865
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
31866
+ #endif
31834
31867
  }
31835
31868
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
31836
31869
  return resultobj;
@@ -36405,7 +36438,11 @@ SWIGINTERN PyObject *_wrap_Band_GetActualBlockSize(PyObject *self, PyObject *arg
36405
36438
  PyTuple_SetItem( r, 0, PyLong_FromLong(*arg4) );
36406
36439
  PyTuple_SetItem( r, 1, PyLong_FromLong(*arg5) );
36407
36440
  }
36408
- resultobj = t_output_helper(resultobj,r);
36441
+ #if SWIG_VERSION >= 0x040300
36442
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
36443
+ #else
36444
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
36445
+ #endif
36409
36446
  }
36410
36447
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
36411
36448
  return resultobj;
@@ -36660,12 +36697,15 @@ SWIGINTERN PyObject *_wrap_Band_GetNoDataValue(PyObject *self, PyObject *args) {
36660
36697
  if ( !*arg3 ) {
36661
36698
  Py_INCREF(Py_None);
36662
36699
  r = Py_None;
36663
- resultobj = t_output_helper(resultobj,r);
36664
36700
  }
36665
36701
  else {
36666
36702
  r = PyFloat_FromDouble( *arg2 );
36667
- resultobj = t_output_helper(resultobj,r);
36668
36703
  }
36704
+ #if SWIG_VERSION >= 0x040300
36705
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
36706
+ #else
36707
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
36708
+ #endif
36669
36709
  }
36670
36710
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
36671
36711
  return resultobj;
@@ -36726,12 +36766,15 @@ SWIGINTERN PyObject *_wrap_Band_GetNoDataValueAsInt64(PyObject *self, PyObject *
36726
36766
  if ( !*arg3 ) {
36727
36767
  Py_INCREF(Py_None);
36728
36768
  r = Py_None;
36729
- resultobj = t_output_helper(resultobj,r);
36730
36769
  }
36731
36770
  else {
36732
36771
  r = PyLong_FromLongLong( *arg2 );
36733
- resultobj = t_output_helper(resultobj,r);
36734
36772
  }
36773
+ #if SWIG_VERSION >= 0x040300
36774
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
36775
+ #else
36776
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
36777
+ #endif
36735
36778
  }
36736
36779
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
36737
36780
  return resultobj;
@@ -36792,12 +36835,15 @@ SWIGINTERN PyObject *_wrap_Band_GetNoDataValueAsUInt64(PyObject *self, PyObject
36792
36835
  if ( !*arg3 ) {
36793
36836
  Py_INCREF(Py_None);
36794
36837
  r = Py_None;
36795
- resultobj = t_output_helper(resultobj,r);
36796
36838
  }
36797
36839
  else {
36798
36840
  r = PyLong_FromUnsignedLongLong( *arg2 );
36799
- resultobj = t_output_helper(resultobj,r);
36800
36841
  }
36842
+ #if SWIG_VERSION >= 0x040300
36843
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
36844
+ #else
36845
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
36846
+ #endif
36801
36847
  }
36802
36848
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
36803
36849
  return resultobj;
@@ -37280,12 +37326,15 @@ SWIGINTERN PyObject *_wrap_Band_GetMinimum(PyObject *self, PyObject *args) {
37280
37326
  if ( !*arg3 ) {
37281
37327
  Py_INCREF(Py_None);
37282
37328
  r = Py_None;
37283
- resultobj = t_output_helper(resultobj,r);
37284
37329
  }
37285
37330
  else {
37286
37331
  r = PyFloat_FromDouble( *arg2 );
37287
- resultobj = t_output_helper(resultobj,r);
37288
37332
  }
37333
+ #if SWIG_VERSION >= 0x040300
37334
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
37335
+ #else
37336
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
37337
+ #endif
37289
37338
  }
37290
37339
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
37291
37340
  return resultobj;
@@ -37346,12 +37395,15 @@ SWIGINTERN PyObject *_wrap_Band_GetMaximum(PyObject *self, PyObject *args) {
37346
37395
  if ( !*arg3 ) {
37347
37396
  Py_INCREF(Py_None);
37348
37397
  r = Py_None;
37349
- resultobj = t_output_helper(resultobj,r);
37350
37398
  }
37351
37399
  else {
37352
37400
  r = PyFloat_FromDouble( *arg2 );
37353
- resultobj = t_output_helper(resultobj,r);
37354
37401
  }
37402
+ #if SWIG_VERSION >= 0x040300
37403
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
37404
+ #else
37405
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
37406
+ #endif
37355
37407
  }
37356
37408
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
37357
37409
  return resultobj;
@@ -37412,12 +37464,15 @@ SWIGINTERN PyObject *_wrap_Band_GetOffset(PyObject *self, PyObject *args) {
37412
37464
  if ( !*arg3 ) {
37413
37465
  Py_INCREF(Py_None);
37414
37466
  r = Py_None;
37415
- resultobj = t_output_helper(resultobj,r);
37416
37467
  }
37417
37468
  else {
37418
37469
  r = PyFloat_FromDouble( *arg2 );
37419
- resultobj = t_output_helper(resultobj,r);
37420
37470
  }
37471
+ #if SWIG_VERSION >= 0x040300
37472
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
37473
+ #else
37474
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
37475
+ #endif
37421
37476
  }
37422
37477
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
37423
37478
  return resultobj;
@@ -37478,12 +37533,15 @@ SWIGINTERN PyObject *_wrap_Band_GetScale(PyObject *self, PyObject *args) {
37478
37533
  if ( !*arg3 ) {
37479
37534
  Py_INCREF(Py_None);
37480
37535
  r = Py_None;
37481
- resultobj = t_output_helper(resultobj,r);
37482
37536
  }
37483
37537
  else {
37484
37538
  r = PyFloat_FromDouble( *arg2 );
37485
- resultobj = t_output_helper(resultobj,r);
37486
37539
  }
37540
+ #if SWIG_VERSION >= 0x040300
37541
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
37542
+ #else
37543
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
37544
+ #endif
37487
37545
  }
37488
37546
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
37489
37547
  return resultobj;
@@ -38221,7 +38279,11 @@ SWIGINTERN PyObject *_wrap_Band_ComputeRasterMinMax(PyObject *self, PyObject *ar
38221
38279
  else {
38222
38280
  r = CreateTupleFromDoubleArray(arg2, 2);
38223
38281
  }
38224
- resultobj = t_output_helper(resultobj,r);
38282
+ #if 0x040101 >= 0x040300
38283
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
38284
+ #else
38285
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
38286
+ #endif
38225
38287
  }
38226
38288
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
38227
38289
  return resultobj;
@@ -38286,7 +38348,11 @@ SWIGINTERN PyObject *_wrap_Band_ComputeBandStats(PyObject *self, PyObject *args)
38286
38348
  {
38287
38349
  /* %typemap(argout) (double argout[ANY]) */
38288
38350
  PyObject *out = CreateTupleFromDoubleArray( arg2, 2 );
38289
- resultobj = t_output_helper(resultobj,out);
38351
+ #if SWIG_VERSION >= 0x040300
38352
+ resultobj = SWIG_Python_AppendOutput(resultobj,out,$isvoid);
38353
+ #else
38354
+ resultobj = SWIG_Python_AppendOutput(resultobj,out);
38355
+ #endif
38290
38356
  }
38291
38357
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
38292
38358
  return resultobj;
@@ -46134,7 +46200,11 @@ SWIGINTERN PyObject *_wrap_IsLineOfSightVisible(PyObject *self, PyObject *args,
46134
46200
  PyTuple_SetItem( r, 0, PyBool_FromLong(*arg8) );
46135
46201
  PyTuple_SetItem( r, 1, PyLong_FromLong(*arg9) );
46136
46202
  PyTuple_SetItem( r, 2, PyLong_FromLong(*arg10) );
46137
- resultobj = t_output_helper(resultobj,r);
46203
+ #if SWIG_VERSION >= 0x040300
46204
+ resultobj = SWIG_Python_AppendOutput(resultobj,r,$isvoid);
46205
+ #else
46206
+ resultobj = SWIG_Python_AppendOutput(resultobj,r);
46207
+ #endif
46138
46208
  }
46139
46209
  {
46140
46210
  /* %typemap(freearg) char **dict */
@@ -46469,7 +46539,11 @@ SWIGINTERN PyObject *_wrap_GDALTransformerInfoShadow_TransformPoint__SWIG_0(PyOb
46469
46539
  {
46470
46540
  /* %typemap(argout) (double argout[ANY]) */
46471
46541
  PyObject *out = CreateTupleFromDoubleArray( arg3, 3 );
46472
- resultobj = t_output_helper(resultobj,out);
46542
+ #if SWIG_VERSION >= 0x040300
46543
+ resultobj = SWIG_Python_AppendOutput(resultobj,out,$isvoid);
46544
+ #else
46545
+ resultobj = SWIG_Python_AppendOutput(resultobj,out);
46546
+ #endif
46473
46547
  }
46474
46548
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
46475
46549
  return resultobj;
@@ -46558,7 +46632,11 @@ SWIGINTERN PyObject *_wrap_GDALTransformerInfoShadow_TransformPoint__SWIG_1(PyOb
46558
46632
  {
46559
46633
  /* %typemap(argout) (double argout[ANY]) */
46560
46634
  PyObject *out = CreateTupleFromDoubleArray( arg2, 3 );
46561
- resultobj = t_output_helper(resultobj,out);
46635
+ #if SWIG_VERSION >= 0x040300
46636
+ resultobj = SWIG_Python_AppendOutput(resultobj,out,$isvoid);
46637
+ #else
46638
+ resultobj = SWIG_Python_AppendOutput(resultobj,out);
46639
+ #endif
46562
46640
  }
46563
46641
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
46564
46642
  return resultobj;
@@ -47307,7 +47385,11 @@ SWIGINTERN PyObject *_wrap_SuggestedWarpOutputRes_GetGeotransform(PyObject *self
47307
47385
  {
47308
47386
  /* %typemap(argout) (double argout[ANY]) */
47309
47387
  PyObject *out = CreateTupleFromDoubleArray( arg2, 6 );
47310
- resultobj = t_output_helper(resultobj,out);
47388
+ #if SWIG_VERSION >= 0x040300
47389
+ resultobj = SWIG_Python_AppendOutput(resultobj,out,$isvoid);
47390
+ #else
47391
+ resultobj = SWIG_Python_AppendOutput(resultobj,out);
47392
+ #endif
47311
47393
  }
47312
47394
  if ( ReturnSame(bLocalUseExceptionsCode) ) { CPLErr eclass = CPLGetLastErrorType(); if ( eclass == CE_Failure || eclass == CE_Fatal ) { Py_XDECREF(resultobj); SWIG_Error( SWIG_RuntimeError, CPLGetLastErrorMsg() ); return NULL; } }
47313
47395
  return resultobj;
@@ -47750,7 +47832,11 @@ SWIGINTERN PyObject *_wrap_InvGeoTransform(PyObject *self, PyObject *args) {
47750
47832
  {
47751
47833
  /* %typemap(argout) (double argout[ANY]) */
47752
47834
  PyObject *out = CreateTupleFromDoubleArray( arg2, 6 );
47753
- resultobj = t_output_helper(resultobj,out);
47835
+ #if SWIG_VERSION >= 0x040300
47836
+ resultobj = SWIG_Python_AppendOutput(resultobj,out,$isvoid);
47837
+ #else
47838
+ resultobj = SWIG_Python_AppendOutput(resultobj,out);
47839
+ #endif
47754
47840
  }
47755
47841
  {
47756
47842
  /* %typemap(ret) IF_FALSE_RETURN_NONE */
@@ -3287,7 +3287,7 @@ void _DontUseExceptions() {
3287
3287
 
3288
3288
  static int _UserHasSpecifiedIfUsingExceptions()
3289
3289
  {
3290
- return bUserHasSpecifiedIfUsingExceptions;
3290
+ return bUserHasSpecifiedIfUsingExceptions || bUseExceptionsLocal >= 0;
3291
3291
  }
3292
3292
 
3293
3293
 
@@ -4215,7 +4215,7 @@ SWIGINTERN PyObject *_wrap_GetUseExceptions(PyObject *self, PyObject *args) {
4215
4215
  if (!SWIG_Python_UnpackTuple(args, "GetUseExceptions", 0, 0, 0)) SWIG_fail;
4216
4216
  {
4217
4217
  #ifdef SED_HACKS
4218
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
4218
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
4219
4219
  #endif
4220
4220
  result = GetUseExceptions();
4221
4221
  }
@@ -4234,7 +4234,7 @@ SWIGINTERN PyObject *_wrap__GetExceptionsLocal(PyObject *self, PyObject *args) {
4234
4234
  if (!SWIG_Python_UnpackTuple(args, "_GetExceptionsLocal", 0, 0, 0)) SWIG_fail;
4235
4235
  {
4236
4236
  #ifdef SED_HACKS
4237
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
4237
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
4238
4238
  #endif
4239
4239
  {
4240
4240
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -4266,7 +4266,7 @@ SWIGINTERN PyObject *_wrap__SetExceptionsLocal(PyObject *self, PyObject *args) {
4266
4266
  arg1 = static_cast< int >(val1);
4267
4267
  {
4268
4268
  #ifdef SED_HACKS
4269
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
4269
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
4270
4270
  #endif
4271
4271
  {
4272
4272
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
@@ -4323,7 +4323,7 @@ SWIGINTERN PyObject *_wrap__UserHasSpecifiedIfUsingExceptions(PyObject *self, Py
4323
4323
  if (!SWIG_Python_UnpackTuple(args, "_UserHasSpecifiedIfUsingExceptions", 0, 0, 0)) SWIG_fail;
4324
4324
  {
4325
4325
  #ifdef SED_HACKS
4326
- if( bUseExceptions ) bLocalUseExceptionsCode = FALSE;
4326
+ if( ReturnSame(TRUE) ) bLocalUseExceptionsCode = FALSE;
4327
4327
  #endif
4328
4328
  {
4329
4329
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;