GDAL 3.12.3__tar.gz → 3.13.0__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.12.3 → gdal-3.13.0}/PKG-INFO +2 -2
  2. {gdal-3.12.3 → gdal-3.13.0}/README.rst +1 -1
  3. {gdal-3.12.3 → gdal-3.13.0}/extensions/gdal_array_wrap.cpp +75 -53
  4. {gdal-3.12.3 → gdal-3.13.0}/extensions/gdal_wrap.cpp +4664 -2159
  5. {gdal-3.12.3 → gdal-3.13.0}/extensions/gdalconst_wrap.c +2 -0
  6. {gdal-3.12.3 → gdal-3.13.0}/extensions/gnm_wrap.cpp +1 -1
  7. {gdal-3.12.3 → gdal-3.13.0}/extensions/ogr_wrap.cpp +1557 -873
  8. {gdal-3.12.3 → gdal-3.13.0}/extensions/osr_wrap.cpp +277 -255
  9. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/PKG-INFO +2 -2
  10. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/SOURCES.txt +3 -2
  11. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/__init__.py +1 -1
  12. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/extent_util.py +5 -3
  13. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/osr_util.py +6 -4
  14. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/util.py +9 -7
  15. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal2tiles.py +176 -79
  16. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal2xyz.py +2 -4
  17. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_polygonize.py +2 -4
  18. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdalmove.py +2 -4
  19. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/pct2rgb.py +2 -4
  20. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/rgb2pct.py +2 -4
  21. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/crs2crs2grid.py +4 -8
  22. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_lut.py +2 -4
  23. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_remove_towgs84.py +2 -4
  24. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalinfo.py +1 -1
  25. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdallocationinfo.py +3 -2
  26. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/jpeg_in_tiff_extract.py +2 -2
  27. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/mkgraticule.py +2 -2
  28. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/ogr2vrt.py +3 -3
  29. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/ogrinfo.py +0 -1
  30. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/tolatlong.py +1 -1
  31. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py +30 -11
  32. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/validate_geoparquet.py +30 -11
  33. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/validate_gpkg.py +62 -36
  34. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/validate_jp2.py +19 -11
  35. gdal-3.13.0/gdal-utils/osgeo_utils/samples/validate_s102.py +2250 -0
  36. gdal-3.13.0/gdal-utils/osgeo_utils/samples/validate_s104.py +2295 -0
  37. gdal-3.13.0/gdal-utils/osgeo_utils/samples/validate_s111.py +2498 -0
  38. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/wcs_virtds_params.py +3 -6
  39. {gdal-3.12.3 → gdal-3.13.0}/osgeo/gdal.py +1075 -756
  40. {gdal-3.12.3 → gdal-3.13.0}/osgeo/gdal_array.py +18 -10
  41. {gdal-3.12.3 → gdal-3.13.0}/osgeo/gdal_fsspec.py +10 -12
  42. {gdal-3.12.3 → gdal-3.13.0}/osgeo/gdalconst.py +2 -0
  43. {gdal-3.12.3 → gdal-3.13.0}/osgeo/gnm.py +1 -1
  44. {gdal-3.12.3 → gdal-3.13.0}/osgeo/ogr.py +500 -416
  45. {gdal-3.12.3 → gdal-3.13.0}/osgeo/osr.py +204 -204
  46. {gdal-3.12.3 → gdal-3.13.0}/pyproject.toml +14 -0
  47. {gdal-3.12.3 → gdal-3.13.0}/setup.py +2 -2
  48. gdal-3.12.3/gdal-utils/osgeo_utils/samples/ogr_dispatch.py +0 -397
  49. gdal-3.12.3/gdal-utils/osgeo_utils/samples/ogrupdate.py +0 -552
  50. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/dependency_links.txt +0 -0
  51. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/entry_points.txt +0 -0
  52. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/not-zip-safe +0 -0
  53. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/requires.txt +0 -0
  54. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/GDAL.egg-info/top_level.txt +0 -0
  55. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/__init__.py +0 -0
  56. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/array_util.py +0 -0
  57. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/base.py +0 -0
  58. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/batch_creator.py +0 -0
  59. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/color_palette.py +0 -0
  60. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/color_table.py +0 -0
  61. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py +0 -0
  62. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/numpy_util.py +0 -0
  63. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/progress.py +0 -0
  64. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/raster_creation.py +0 -0
  65. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/auxiliary/rectangle.py +0 -0
  66. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_calc.py +0 -0
  67. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_edit.py +0 -0
  68. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_fillnodata.py +0 -0
  69. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_merge.py +0 -0
  70. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_pansharpen.py +0 -0
  71. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_proximity.py +0 -0
  72. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_retile.py +0 -0
  73. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdal_sieve.py +0 -0
  74. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdalattachpct.py +0 -0
  75. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/gdalcompare.py +0 -0
  76. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/ogr_layer_algebra.py +0 -0
  77. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/ogrmerge.py +0 -0
  78. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/__init__.py +0 -0
  79. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/assemblepoly.py +0 -0
  80. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/build_jp2_from_xml.py +0 -0
  81. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/classify.py +0 -0
  82. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/densify.py +0 -0
  83. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/dump_jp2.py +0 -0
  84. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/epsg_tr.py +0 -0
  85. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/esri2wkt.py +0 -0
  86. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/fft.py +0 -0
  87. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/fix_gpkg.py +0 -0
  88. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gcps2ogr.py +0 -0
  89. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gcps2vec.py +0 -0
  90. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gcps2wld.py +0 -0
  91. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_auth.py +0 -0
  92. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_create_pdf.py +0 -0
  93. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_minmax_location.py +0 -0
  94. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_mkdir.py +0 -0
  95. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_rm.py +0 -0
  96. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdal_rmdir.py +0 -0
  97. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalbuildvrtofvrt.py +0 -0
  98. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalchksum.py +0 -0
  99. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalcopyproj.py +0 -0
  100. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalfilter.py +0 -0
  101. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalident.py +0 -0
  102. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/gdalimport.py +0 -0
  103. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/get_soundg.py +0 -0
  104. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/histrep.py +0 -0
  105. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/load2odbc.py +0 -0
  106. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/loslas2ntv2.py +0 -0
  107. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/magphase.py +0 -0
  108. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/make_fuzzer_friendly_archive.py +0 -0
  109. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/ogr_build_junction_table.py +0 -0
  110. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/rel.py +0 -0
  111. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/tigerpoly.py +0 -0
  112. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/tile_extent_from_raster.py +0 -0
  113. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/val_repl.py +0 -0
  114. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/vec_tr.py +0 -0
  115. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/osgeo_utils/samples/vec_tr_spat.py +0 -0
  116. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal2tiles.py +0 -0
  117. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal2xyz.py +0 -0
  118. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_calc.py +0 -0
  119. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_edit.py +0 -0
  120. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_fillnodata.py +0 -0
  121. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_merge.py +0 -0
  122. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_pansharpen.py +0 -0
  123. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_polygonize.py +0 -0
  124. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_proximity.py +0 -0
  125. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_retile.py +0 -0
  126. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdal_sieve.py +0 -0
  127. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdalattachpct.py +0 -0
  128. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdalcompare.py +0 -0
  129. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/gdalmove.py +0 -0
  130. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/ogr_layer_algebra.py +0 -0
  131. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/ogrmerge.py +0 -0
  132. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/pct2rgb.py +0 -0
  133. {gdal-3.12.3 → gdal-3.13.0}/gdal-utils/scripts/rgb2pct.py +0 -0
  134. {gdal-3.12.3 → gdal-3.13.0}/osgeo/__init__.py +0 -0
  135. {gdal-3.12.3 → gdal-3.13.0}/osgeo/gdalnumeric.py +0 -0
  136. {gdal-3.12.3 → gdal-3.13.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GDAL
3
- Version: 3.12.3
3
+ Version: 3.13.0
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
@@ -65,7 +65,7 @@ special about gdal.)
65
65
 
66
66
  * SWIG (4 or greater).
67
67
 
68
- * libgdal (3.12.3 or greater).
68
+ * libgdal (3.13.0 or greater).
69
69
 
70
70
  * numpy (1.0.0 or greater). This is not force-required by the build,
71
71
  but many examples and utilities will not work without it. At least
@@ -31,7 +31,7 @@ special about gdal.)
31
31
 
32
32
  * SWIG (4 or greater).
33
33
 
34
- * libgdal (3.12.3 or greater).
34
+ * libgdal (3.13.0 or greater).
35
35
 
36
36
  * numpy (1.0.0 or greater). This is not force-required by the build,
37
37
  but many examples and utilities will not work without it. At least
@@ -4701,6 +4701,7 @@ retStringAndCPLFree* GetArrayFilename(PyArrayObject *psArray)
4701
4701
  PyArrayObject *psArray,
4702
4702
  GDALDataType buf_type,
4703
4703
  GDALRIOResampleAlg resample_alg,
4704
+ int operate_in_buf_type,
4704
4705
  GDALProgressFunc callback = NULL,
4705
4706
  void* callback_data = NULL) {
4706
4707
 
@@ -4741,6 +4742,7 @@ retStringAndCPLFree* GetArrayFilename(PyArrayObject *psArray)
4741
4742
  sExtraArg.eResampleAlg = resample_alg;
4742
4743
  sExtraArg.pfnProgress = callback;
4743
4744
  sExtraArg.pProgressData = callback_data;
4745
+ sExtraArg.bOperateInBufType = operate_in_buf_type;
4744
4746
  int nXOff = (int)(xoff + 0.5);
4745
4747
  int nYOff = (int)(yoff + 0.5);
4746
4748
  int nXSize = (int)(xsize + 0.5);
@@ -4765,6 +4767,7 @@ retStringAndCPLFree* GetArrayFilename(PyArrayObject *psArray)
4765
4767
  PyArrayObject *psArray,
4766
4768
  GDALDataType buf_type,
4767
4769
  GDALRIOResampleAlg resample_alg,
4770
+ int operate_in_buf_type,
4768
4771
  GDALProgressFunc callback = NULL,
4769
4772
  void* callback_data = NULL,
4770
4773
  bool binterleave = true,
@@ -4819,6 +4822,7 @@ retStringAndCPLFree* GetArrayFilename(PyArrayObject *psArray)
4819
4822
  sExtraArg.eResampleAlg = resample_alg;
4820
4823
  sExtraArg.pfnProgress = callback;
4821
4824
  sExtraArg.pProgressData = callback_data;
4825
+ sExtraArg.bOperateInBufType = operate_in_buf_type;
4822
4826
  int nXOff = (int)(xoff + 0.5);
4823
4827
  int nYOff = (int)(yoff + 0.5);
4824
4828
  int nXSize = (int)(xsize + 0.5);
@@ -7192,8 +7196,9 @@ SWIGINTERN PyObject *_wrap_BandRasterIONumPy(PyObject *self, PyObject *args, PyO
7192
7196
  PyArrayObject *arg7 = (PyArrayObject *) 0 ;
7193
7197
  GDALDataType arg8 ;
7194
7198
  GDALRIOResampleAlg arg9 ;
7195
- GDALProgressFunc arg10 = (GDALProgressFunc) NULL ;
7196
- void *arg11 = (void *) NULL ;
7199
+ int arg10 ;
7200
+ GDALProgressFunc arg11 = (GDALProgressFunc) NULL ;
7201
+ void *arg12 = (void *) NULL ;
7197
7202
  void *argp1 = 0 ;
7198
7203
  int res1 = 0 ;
7199
7204
  int val2 ;
@@ -7206,6 +7211,8 @@ SWIGINTERN PyObject *_wrap_BandRasterIONumPy(PyObject *self, PyObject *args, PyO
7206
7211
  int ecode5 = 0 ;
7207
7212
  double val6 ;
7208
7213
  int ecode6 = 0 ;
7214
+ int val10 ;
7215
+ int ecode10 = 0 ;
7209
7216
  PyObject * obj0 = 0 ;
7210
7217
  PyObject * obj1 = 0 ;
7211
7218
  PyObject * obj2 = 0 ;
@@ -7217,8 +7224,9 @@ SWIGINTERN PyObject *_wrap_BandRasterIONumPy(PyObject *self, PyObject *args, PyO
7217
7224
  PyObject * obj8 = 0 ;
7218
7225
  PyObject * obj9 = 0 ;
7219
7226
  PyObject * obj10 = 0 ;
7227
+ PyObject * obj11 = 0 ;
7220
7228
  char * kwnames[] = {
7221
- (char *)"band", (char *)"bWrite", (char *)"xoff", (char *)"yoff", (char *)"xsize", (char *)"ysize", (char *)"psArray", (char *)"buf_type", (char *)"resample_alg", (char *)"callback", (char *)"callback_data", NULL
7229
+ (char *)"band", (char *)"bWrite", (char *)"xoff", (char *)"yoff", (char *)"xsize", (char *)"ysize", (char *)"psArray", (char *)"buf_type", (char *)"resample_alg", (char *)"operate_in_buf_type", (char *)"callback", (char *)"callback_data", NULL
7222
7230
  };
7223
7231
  CPLErr result;
7224
7232
 
@@ -7228,9 +7236,9 @@ SWIGINTERN PyObject *_wrap_BandRasterIONumPy(PyObject *self, PyObject *args, PyO
7228
7236
  psProgressInfo->nLastReported = -1;
7229
7237
  psProgressInfo->psPyCallback = NULL;
7230
7238
  psProgressInfo->psPyCallbackData = NULL;
7231
- arg11 = psProgressInfo;
7239
+ arg12 = psProgressInfo;
7232
7240
  (void)self;
7233
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOO|OO:BandRasterIONumPy", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10)) SWIG_fail;
7241
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOOO|OO:BandRasterIONumPy", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11)) SWIG_fail;
7234
7242
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDALRasterBandShadow, 0 | 0 );
7235
7243
  if (!SWIG_IsOK(res1)) {
7236
7244
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BandRasterIONumPy" "', argument " "1"" of type '" "GDALRasterBandShadow *""'");
@@ -7302,48 +7310,53 @@ SWIGINTERN PyObject *_wrap_BandRasterIONumPy(PyObject *self, PyObject *args, PyO
7302
7310
  }
7303
7311
  arg9 = static_cast< GDALRIOResampleAlg >(val);
7304
7312
  }
7305
- if (obj9) {
7313
+ ecode10 = SWIG_AsVal_int(obj9, &val10);
7314
+ if (!SWIG_IsOK(ecode10)) {
7315
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "BandRasterIONumPy" "', argument " "10"" of type '" "int""'");
7316
+ }
7317
+ arg10 = static_cast< int >(val10);
7318
+ if (obj10) {
7306
7319
  {
7307
7320
  /* %typemap(in) (GDALProgressFunc callback = NULL) */
7308
7321
  /* callback_func typemap */
7309
7322
 
7310
7323
  /* In some cases 0 is passed instead of None. */
7311
7324
  /* See https://github.com/OSGeo/gdal/pull/219 */
7312
- if ( PyLong_Check(obj9) || PyInt_Check(obj9) )
7325
+ if ( PyLong_Check(obj10) || PyInt_Check(obj10) )
7313
7326
  {
7314
- if( PyLong_AsLong(obj9) == 0 )
7327
+ if( PyLong_AsLong(obj10) == 0 )
7315
7328
  {
7316
- obj9 = Py_None;
7329
+ obj10 = Py_None;
7317
7330
  }
7318
7331
  }
7319
7332
 
7320
- if (obj9 && obj9 != Py_None ) {
7333
+ if (obj10 && obj10 != Py_None ) {
7321
7334
  void* cbfunction = NULL;
7322
- CPL_IGNORE_RET_VAL(SWIG_ConvertPtr( obj9,
7335
+ CPL_IGNORE_RET_VAL(SWIG_ConvertPtr( obj10,
7323
7336
  (void**)&cbfunction,
7324
7337
  SWIGTYPE_p_f_double_p_q_const__char_p_void__int,
7325
7338
  SWIG_POINTER_EXCEPTION | 0 ));
7326
7339
 
7327
7340
  if ( cbfunction == GDALTermProgress ) {
7328
- arg10 = GDALTermProgress;
7341
+ arg11 = GDALTermProgress;
7329
7342
  } else {
7330
- if (!PyCallable_Check(obj9)) {
7343
+ if (!PyCallable_Check(obj10)) {
7331
7344
  PyErr_SetString( PyExc_RuntimeError,
7332
7345
  "Object given is not a Python function" );
7333
7346
  SWIG_fail;
7334
7347
  }
7335
- psProgressInfo->psPyCallback = obj9;
7336
- arg10 = PyProgressProxy;
7348
+ psProgressInfo->psPyCallback = obj10;
7349
+ arg11 = PyProgressProxy;
7337
7350
  }
7338
7351
 
7339
7352
  }
7340
7353
 
7341
7354
  }
7342
7355
  }
7343
- if (obj10) {
7356
+ if (obj11) {
7344
7357
  {
7345
7358
  /* %typemap(in) ( void* callback_data=NULL) */
7346
- psProgressInfo->psPyCallbackData = obj10 ;
7359
+ psProgressInfo->psPyCallbackData = obj11 ;
7347
7360
  }
7348
7361
  }
7349
7362
  {
@@ -7353,7 +7366,7 @@ SWIGINTERN PyObject *_wrap_BandRasterIONumPy(PyObject *self, PyObject *args, PyO
7353
7366
  }
7354
7367
  {
7355
7368
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7356
- result = (CPLErr)BandRasterIONumPy(arg1,arg2,arg3,arg4,arg5,arg6,arg7,SWIG_STD_MOVE(arg8),arg9,SWIG_STD_MOVE(arg10),arg11);
7369
+ result = (CPLErr)BandRasterIONumPy(arg1,arg2,arg3,arg4,arg5,arg6,arg7,SWIG_STD_MOVE(arg8),arg9,arg10,SWIG_STD_MOVE(arg11),arg12);
7357
7370
  SWIG_PYTHON_THREAD_END_ALLOW;
7358
7371
  }
7359
7372
  if ( bLocalUseExceptions ) {
@@ -7398,11 +7411,12 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7398
7411
  PyArrayObject *arg7 = (PyArrayObject *) 0 ;
7399
7412
  GDALDataType arg8 ;
7400
7413
  GDALRIOResampleAlg arg9 ;
7401
- GDALProgressFunc arg10 = (GDALProgressFunc) NULL ;
7402
- void *arg11 = (void *) NULL ;
7403
- bool arg12 = (bool) true ;
7404
- int arg13 = (int) 0 ;
7405
- int *arg14 = (int *) 0 ;
7414
+ int arg10 ;
7415
+ GDALProgressFunc arg11 = (GDALProgressFunc) NULL ;
7416
+ void *arg12 = (void *) NULL ;
7417
+ bool arg13 = (bool) true ;
7418
+ int arg14 = (int) 0 ;
7419
+ int *arg15 = (int *) 0 ;
7406
7420
  void *argp1 = 0 ;
7407
7421
  int res1 = 0 ;
7408
7422
  int val2 ;
@@ -7415,8 +7429,10 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7415
7429
  int ecode5 = 0 ;
7416
7430
  double val6 ;
7417
7431
  int ecode6 = 0 ;
7418
- bool val12 ;
7419
- int ecode12 = 0 ;
7432
+ int val10 ;
7433
+ int ecode10 = 0 ;
7434
+ bool val13 ;
7435
+ int ecode13 = 0 ;
7420
7436
  PyObject * obj0 = 0 ;
7421
7437
  PyObject * obj1 = 0 ;
7422
7438
  PyObject * obj2 = 0 ;
@@ -7430,8 +7446,9 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7430
7446
  PyObject * obj10 = 0 ;
7431
7447
  PyObject * obj11 = 0 ;
7432
7448
  PyObject * obj12 = 0 ;
7449
+ PyObject * obj13 = 0 ;
7433
7450
  char * kwnames[] = {
7434
- (char *)"ds", (char *)"bWrite", (char *)"xoff", (char *)"yoff", (char *)"xsize", (char *)"ysize", (char *)"psArray", (char *)"buf_type", (char *)"resample_alg", (char *)"callback", (char *)"callback_data", (char *)"binterleave", (char *)"band_list", NULL
7451
+ (char *)"ds", (char *)"bWrite", (char *)"xoff", (char *)"yoff", (char *)"xsize", (char *)"ysize", (char *)"psArray", (char *)"buf_type", (char *)"resample_alg", (char *)"operate_in_buf_type", (char *)"callback", (char *)"callback_data", (char *)"binterleave", (char *)"band_list", NULL
7435
7452
  };
7436
7453
  CPLErr result;
7437
7454
 
@@ -7441,9 +7458,9 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7441
7458
  psProgressInfo->nLastReported = -1;
7442
7459
  psProgressInfo->psPyCallback = NULL;
7443
7460
  psProgressInfo->psPyCallbackData = NULL;
7444
- arg11 = psProgressInfo;
7461
+ arg12 = psProgressInfo;
7445
7462
  (void)self;
7446
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOO|OOOO:DatasetIONumPy", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12)) SWIG_fail;
7463
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OOOOOOOOOO|OOOO:DatasetIONumPy", kwnames, &obj0, &obj1, &obj2, &obj3, &obj4, &obj5, &obj6, &obj7, &obj8, &obj9, &obj10, &obj11, &obj12, &obj13)) SWIG_fail;
7447
7464
  res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GDALDatasetShadow, 0 | 0 );
7448
7465
  if (!SWIG_IsOK(res1)) {
7449
7466
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatasetIONumPy" "', argument " "1"" of type '" "GDALDatasetShadow *""'");
@@ -7515,62 +7532,67 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7515
7532
  }
7516
7533
  arg9 = static_cast< GDALRIOResampleAlg >(val);
7517
7534
  }
7518
- if (obj9) {
7535
+ ecode10 = SWIG_AsVal_int(obj9, &val10);
7536
+ if (!SWIG_IsOK(ecode10)) {
7537
+ SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DatasetIONumPy" "', argument " "10"" of type '" "int""'");
7538
+ }
7539
+ arg10 = static_cast< int >(val10);
7540
+ if (obj10) {
7519
7541
  {
7520
7542
  /* %typemap(in) (GDALProgressFunc callback = NULL) */
7521
7543
  /* callback_func typemap */
7522
7544
 
7523
7545
  /* In some cases 0 is passed instead of None. */
7524
7546
  /* See https://github.com/OSGeo/gdal/pull/219 */
7525
- if ( PyLong_Check(obj9) || PyInt_Check(obj9) )
7547
+ if ( PyLong_Check(obj10) || PyInt_Check(obj10) )
7526
7548
  {
7527
- if( PyLong_AsLong(obj9) == 0 )
7549
+ if( PyLong_AsLong(obj10) == 0 )
7528
7550
  {
7529
- obj9 = Py_None;
7551
+ obj10 = Py_None;
7530
7552
  }
7531
7553
  }
7532
7554
 
7533
- if (obj9 && obj9 != Py_None ) {
7555
+ if (obj10 && obj10 != Py_None ) {
7534
7556
  void* cbfunction = NULL;
7535
- CPL_IGNORE_RET_VAL(SWIG_ConvertPtr( obj9,
7557
+ CPL_IGNORE_RET_VAL(SWIG_ConvertPtr( obj10,
7536
7558
  (void**)&cbfunction,
7537
7559
  SWIGTYPE_p_f_double_p_q_const__char_p_void__int,
7538
7560
  SWIG_POINTER_EXCEPTION | 0 ));
7539
7561
 
7540
7562
  if ( cbfunction == GDALTermProgress ) {
7541
- arg10 = GDALTermProgress;
7563
+ arg11 = GDALTermProgress;
7542
7564
  } else {
7543
- if (!PyCallable_Check(obj9)) {
7565
+ if (!PyCallable_Check(obj10)) {
7544
7566
  PyErr_SetString( PyExc_RuntimeError,
7545
7567
  "Object given is not a Python function" );
7546
7568
  SWIG_fail;
7547
7569
  }
7548
- psProgressInfo->psPyCallback = obj9;
7549
- arg10 = PyProgressProxy;
7570
+ psProgressInfo->psPyCallback = obj10;
7571
+ arg11 = PyProgressProxy;
7550
7572
  }
7551
7573
 
7552
7574
  }
7553
7575
 
7554
7576
  }
7555
7577
  }
7556
- if (obj10) {
7578
+ if (obj11) {
7557
7579
  {
7558
7580
  /* %typemap(in) ( void* callback_data=NULL) */
7559
- psProgressInfo->psPyCallbackData = obj10 ;
7581
+ psProgressInfo->psPyCallbackData = obj11 ;
7560
7582
  }
7561
7583
  }
7562
- if (obj11) {
7563
- ecode12 = SWIG_AsVal_bool(obj11, &val12);
7564
- if (!SWIG_IsOK(ecode12)) {
7565
- SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DatasetIONumPy" "', argument " "12"" of type '" "bool""'");
7584
+ if (obj12) {
7585
+ ecode13 = SWIG_AsVal_bool(obj12, &val13);
7586
+ if (!SWIG_IsOK(ecode13)) {
7587
+ SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DatasetIONumPy" "', argument " "13"" of type '" "bool""'");
7566
7588
  }
7567
- arg12 = static_cast< bool >(val12);
7589
+ arg13 = static_cast< bool >(val13);
7568
7590
  }
7569
- if (obj12) {
7591
+ if (obj13) {
7570
7592
  {
7571
7593
  /* %typemap(in,numinputs=1) (int nList, int* pList)*/
7572
- arg14 = CreateCIntListFromSequence(obj12, &arg13);
7573
- if( arg13 < 0 ) {
7594
+ arg15 = CreateCIntListFromSequence(obj13, &arg14);
7595
+ if( arg14 < 0 ) {
7574
7596
  SWIG_fail;
7575
7597
  }
7576
7598
  }
@@ -7582,7 +7604,7 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7582
7604
  }
7583
7605
  {
7584
7606
  SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7585
- result = (CPLErr)DatasetIONumPy(arg1,arg2,arg3,arg4,arg5,arg6,arg7,SWIG_STD_MOVE(arg8),arg9,SWIG_STD_MOVE(arg10),arg11,arg12,arg13,arg14);
7607
+ result = (CPLErr)DatasetIONumPy(arg1,arg2,arg3,arg4,arg5,arg6,arg7,SWIG_STD_MOVE(arg8),arg9,arg10,SWIG_STD_MOVE(arg11),arg12,arg13,arg14,arg15);
7586
7608
  SWIG_PYTHON_THREAD_END_ALLOW;
7587
7609
  }
7588
7610
  if ( bLocalUseExceptions ) {
@@ -7606,7 +7628,7 @@ SWIGINTERN PyObject *_wrap_DatasetIONumPy(PyObject *self, PyObject *args, PyObje
7606
7628
  }
7607
7629
  {
7608
7630
  /* %typemap(freearg) (int nList, int* pList) */
7609
- free(arg14);
7631
+ free(arg15);
7610
7632
  }
7611
7633
  return resultobj;
7612
7634
  fail:
@@ -7618,7 +7640,7 @@ fail:
7618
7640
  }
7619
7641
  {
7620
7642
  /* %typemap(freearg) (int nList, int* pList) */
7621
- free(arg14);
7643
+ free(arg15);
7622
7644
  }
7623
7645
  return NULL;
7624
7646
  }
@@ -8225,8 +8247,8 @@ static PyMethodDef SwigMethods[] = {
8225
8247
  { "OpenNumPyArray", _wrap_OpenNumPyArray, METH_VARARGS, "OpenNumPyArray(PyArrayObject * psArray, bool binterleave) -> Dataset"},
8226
8248
  { "OpenMultiDimensionalNumPyArray", _wrap_OpenMultiDimensionalNumPyArray, METH_O, "OpenMultiDimensionalNumPyArray(PyArrayObject * psArray) -> Dataset"},
8227
8249
  { "GetArrayFilename", _wrap_GetArrayFilename, METH_O, "GetArrayFilename(PyArrayObject * psArray) -> retStringAndCPLFree *"},
8228
- { "BandRasterIONumPy", (PyCFunction)(void(*)(void))_wrap_BandRasterIONumPy, METH_VARARGS|METH_KEYWORDS, "BandRasterIONumPy(Band band, int bWrite, double xoff, double yoff, double xsize, double ysize, PyArrayObject * psArray, GDALDataType buf_type, GDALRIOResampleAlg resample_alg, GDALProgressFunc callback=0, void * callback_data=None) -> CPLErr"},
8229
- { "DatasetIONumPy", (PyCFunction)(void(*)(void))_wrap_DatasetIONumPy, METH_VARARGS|METH_KEYWORDS, "DatasetIONumPy(Dataset ds, int bWrite, double xoff, double yoff, double xsize, double ysize, PyArrayObject * psArray, GDALDataType buf_type, GDALRIOResampleAlg resample_alg, GDALProgressFunc callback=0, void * callback_data=None, bool binterleave=True, int band_list=0) -> CPLErr"},
8250
+ { "BandRasterIONumPy", (PyCFunction)(void(*)(void))_wrap_BandRasterIONumPy, METH_VARARGS|METH_KEYWORDS, "BandRasterIONumPy(Band band, int bWrite, double xoff, double yoff, double xsize, double ysize, PyArrayObject * psArray, GDALDataType buf_type, GDALRIOResampleAlg resample_alg, int operate_in_buf_type, GDALProgressFunc callback=0, void * callback_data=None) -> CPLErr"},
8251
+ { "DatasetIONumPy", (PyCFunction)(void(*)(void))_wrap_DatasetIONumPy, METH_VARARGS|METH_KEYWORDS, "DatasetIONumPy(Dataset ds, int bWrite, double xoff, double yoff, double xsize, double ysize, PyArrayObject * psArray, GDALDataType buf_type, GDALRIOResampleAlg resample_alg, int operate_in_buf_type, GDALProgressFunc callback=0, void * callback_data=None, bool binterleave=True, int band_list=0) -> CPLErr"},
8230
8252
  { "MDArrayIONumPy", _wrap_MDArrayIONumPy, METH_VARARGS, "MDArrayIONumPy(bool bWrite, GDALMDArrayHS * mdarray, PyArrayObject * psArray, int nDims1, int nDims3, GDALExtendedDataTypeHS * buffer_datatype) -> CPLErr"},
8231
8253
  { "AddNumpyArrayToDict", _wrap_AddNumpyArrayToDict, METH_VARARGS, "AddNumpyArrayToDict(PyObject * dict, ArrowSchema const * schemaField, ArrowArray const * arrayField, std::string const & osPrefix, PyObject * pointerArrayKeeper) -> bool"},
8232
8254
  { "_RecordBatchAsNumpy", _wrap__RecordBatchAsNumpy, METH_VARARGS, "_RecordBatchAsNumpy(VoidPtrAsLong recordBatchPtr, VoidPtrAsLong schemaPtr, PyObject * pointerArrayKeeper) -> PyObject *"},