GDAL 3.13.0__tar.gz → 3.13.1__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 (134) hide show
  1. {gdal-3.13.0 → gdal-3.13.1}/PKG-INFO +2 -2
  2. {gdal-3.13.0 → gdal-3.13.1}/README.rst +1 -1
  3. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/PKG-INFO +2 -2
  4. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/__init__.py +1 -1
  5. {gdal-3.13.0 → gdal-3.13.1}/osgeo/gdal.py +46 -14
  6. {gdal-3.13.0 → gdal-3.13.1}/setup.py +1 -1
  7. {gdal-3.13.0 → gdal-3.13.1}/extensions/gdal_array_wrap.cpp +0 -0
  8. {gdal-3.13.0 → gdal-3.13.1}/extensions/gdal_wrap.cpp +0 -0
  9. {gdal-3.13.0 → gdal-3.13.1}/extensions/gdalconst_wrap.c +0 -0
  10. {gdal-3.13.0 → gdal-3.13.1}/extensions/gnm_wrap.cpp +0 -0
  11. {gdal-3.13.0 → gdal-3.13.1}/extensions/ogr_wrap.cpp +0 -0
  12. {gdal-3.13.0 → gdal-3.13.1}/extensions/osr_wrap.cpp +0 -0
  13. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/SOURCES.txt +0 -0
  14. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/dependency_links.txt +0 -0
  15. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/entry_points.txt +0 -0
  16. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/not-zip-safe +0 -0
  17. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/requires.txt +0 -0
  18. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/GDAL.egg-info/top_level.txt +0 -0
  19. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/__init__.py +0 -0
  20. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/array_util.py +0 -0
  21. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/base.py +0 -0
  22. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/batch_creator.py +0 -0
  23. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/color_palette.py +0 -0
  24. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/color_table.py +0 -0
  25. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/extent_util.py +0 -0
  26. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py +0 -0
  27. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/numpy_util.py +0 -0
  28. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/osr_util.py +0 -0
  29. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/progress.py +0 -0
  30. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/raster_creation.py +0 -0
  31. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/rectangle.py +0 -0
  32. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/auxiliary/util.py +0 -0
  33. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal2tiles.py +0 -0
  34. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal2xyz.py +0 -0
  35. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_calc.py +0 -0
  36. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_edit.py +0 -0
  37. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_fillnodata.py +0 -0
  38. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_merge.py +0 -0
  39. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_pansharpen.py +0 -0
  40. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_polygonize.py +0 -0
  41. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_proximity.py +0 -0
  42. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_retile.py +0 -0
  43. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdal_sieve.py +0 -0
  44. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdalattachpct.py +0 -0
  45. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdalcompare.py +0 -0
  46. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/gdalmove.py +0 -0
  47. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/ogr_layer_algebra.py +0 -0
  48. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/ogrmerge.py +0 -0
  49. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/pct2rgb.py +0 -0
  50. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/rgb2pct.py +0 -0
  51. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/__init__.py +0 -0
  52. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/assemblepoly.py +0 -0
  53. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/build_jp2_from_xml.py +0 -0
  54. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/classify.py +0 -0
  55. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/crs2crs2grid.py +0 -0
  56. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/densify.py +0 -0
  57. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/dump_jp2.py +0 -0
  58. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/epsg_tr.py +0 -0
  59. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/esri2wkt.py +0 -0
  60. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/fft.py +0 -0
  61. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/fix_gpkg.py +0 -0
  62. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gcps2ogr.py +0 -0
  63. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gcps2vec.py +0 -0
  64. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gcps2wld.py +0 -0
  65. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_auth.py +0 -0
  66. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_create_pdf.py +0 -0
  67. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_lut.py +0 -0
  68. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_minmax_location.py +0 -0
  69. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_mkdir.py +0 -0
  70. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_remove_towgs84.py +0 -0
  71. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_rm.py +0 -0
  72. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdal_rmdir.py +0 -0
  73. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalbuildvrtofvrt.py +0 -0
  74. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalchksum.py +0 -0
  75. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalcopyproj.py +0 -0
  76. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalfilter.py +0 -0
  77. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalident.py +0 -0
  78. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalimport.py +0 -0
  79. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdalinfo.py +0 -0
  80. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/gdallocationinfo.py +0 -0
  81. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/get_soundg.py +0 -0
  82. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/histrep.py +0 -0
  83. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/jpeg_in_tiff_extract.py +0 -0
  84. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/load2odbc.py +0 -0
  85. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/loslas2ntv2.py +0 -0
  86. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/magphase.py +0 -0
  87. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/make_fuzzer_friendly_archive.py +0 -0
  88. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/mkgraticule.py +0 -0
  89. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/ogr2vrt.py +0 -0
  90. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/ogr_build_junction_table.py +0 -0
  91. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/ogrinfo.py +0 -0
  92. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/rel.py +0 -0
  93. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/tigerpoly.py +0 -0
  94. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/tile_extent_from_raster.py +0 -0
  95. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/tolatlong.py +0 -0
  96. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/val_repl.py +0 -0
  97. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py +0 -0
  98. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_geoparquet.py +0 -0
  99. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_gpkg.py +0 -0
  100. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_jp2.py +0 -0
  101. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_s102.py +0 -0
  102. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_s104.py +0 -0
  103. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/validate_s111.py +0 -0
  104. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/vec_tr.py +0 -0
  105. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/vec_tr_spat.py +0 -0
  106. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/osgeo_utils/samples/wcs_virtds_params.py +0 -0
  107. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal2tiles.py +0 -0
  108. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal2xyz.py +0 -0
  109. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_calc.py +0 -0
  110. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_edit.py +0 -0
  111. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_fillnodata.py +0 -0
  112. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_merge.py +0 -0
  113. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_pansharpen.py +0 -0
  114. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_polygonize.py +0 -0
  115. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_proximity.py +0 -0
  116. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_retile.py +0 -0
  117. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdal_sieve.py +0 -0
  118. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdalattachpct.py +0 -0
  119. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdalcompare.py +0 -0
  120. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/gdalmove.py +0 -0
  121. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/ogr_layer_algebra.py +0 -0
  122. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/ogrmerge.py +0 -0
  123. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/pct2rgb.py +0 -0
  124. {gdal-3.13.0 → gdal-3.13.1}/gdal-utils/scripts/rgb2pct.py +0 -0
  125. {gdal-3.13.0 → gdal-3.13.1}/osgeo/__init__.py +0 -0
  126. {gdal-3.13.0 → gdal-3.13.1}/osgeo/gdal_array.py +0 -0
  127. {gdal-3.13.0 → gdal-3.13.1}/osgeo/gdal_fsspec.py +0 -0
  128. {gdal-3.13.0 → gdal-3.13.1}/osgeo/gdalconst.py +0 -0
  129. {gdal-3.13.0 → gdal-3.13.1}/osgeo/gdalnumeric.py +0 -0
  130. {gdal-3.13.0 → gdal-3.13.1}/osgeo/gnm.py +0 -0
  131. {gdal-3.13.0 → gdal-3.13.1}/osgeo/ogr.py +0 -0
  132. {gdal-3.13.0 → gdal-3.13.1}/osgeo/osr.py +0 -0
  133. {gdal-3.13.0 → gdal-3.13.1}/pyproject.toml +0 -0
  134. {gdal-3.13.0 → gdal-3.13.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GDAL
3
- Version: 3.13.0
3
+ Version: 3.13.1
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.13.0 or greater).
68
+ * libgdal (3.13.1 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.13.0 or greater).
34
+ * libgdal (3.13.1 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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GDAL
3
- Version: 3.13.0
3
+ Version: 3.13.1
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.13.0 or greater).
68
+ * libgdal (3.13.1 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
@@ -1,5 +1,5 @@
1
1
  __package_name__ = "gdal-utils"
2
- gdal_utils_version = (3, 13, 0, 0)
2
+ gdal_utils_version = (3, 13, 1, 0)
3
3
  __version__ = ".".join(str(i) for i in gdal_utils_version)
4
4
  __author__ = "Frank Warmerdam"
5
5
  __author_email__ = "warmerdam@pobox.com"
@@ -677,6 +677,26 @@ def InfoOptions(options=None, format='text', deserialize=True,
677
677
 
678
678
  return (GDALInfoOptions(new_options), format, deserialize)
679
679
 
680
+
681
+ def _get_allowed_drivers_and_open_options(**kwargs):
682
+
683
+ allowed_drivers = []
684
+ open_options = []
685
+ if 'options' in kwargs and isinstance(kwargs['options'], list):
686
+ options = kwargs['options']
687
+ i = 0
688
+ while i < len(options):
689
+ if options[i] == "-if":
690
+ i += 1
691
+ allowed_drivers.append(options[i])
692
+ elif options[i] == "-oo":
693
+ i += 1
694
+ open_options.append(options[i])
695
+ i += 1
696
+
697
+ return allowed_drivers, open_options
698
+
699
+
680
700
  def Info(ds, **kwargs):
681
701
  """Return information on a raster dataset.
682
702
 
@@ -692,13 +712,14 @@ def Info(ds, **kwargs):
692
712
 
693
713
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
694
714
 
715
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
695
716
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
696
717
  (opts, format, deserialize) = InfoOptions(**kwargs)
697
718
  else:
698
719
  (opts, format, deserialize) = kwargs['options']
699
720
 
700
721
  if isinstance(ds, (str, os.PathLike)):
701
- ds = Open(ds)
722
+ ds = OpenEx(ds, allowed_drivers = allowed_drivers, open_options = open_options)
702
723
  ret = InfoInternal(ds, opts)
703
724
  if format == 'json' and deserialize:
704
725
  import json
@@ -811,13 +832,14 @@ def VectorInfo(ds, **kwargs):
811
832
 
812
833
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
813
834
 
835
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
814
836
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
815
837
  (opts, format, deserialize) = VectorInfoOptions(**kwargs)
816
838
  else:
817
839
  (opts, format, deserialize) = kwargs['options']
818
840
 
819
841
  if isinstance(ds, (str, os.PathLike)):
820
- ds = OpenEx(ds, OF_VERBOSE_ERROR | OF_VECTOR)
842
+ ds = OpenEx(ds, OF_VERBOSE_ERROR | OF_VECTOR, allowed_drivers = allowed_drivers, open_options = open_options)
821
843
  ret = VectorInfoInternal(ds, opts)
822
844
  if format == 'json' and deserialize:
823
845
  import json
@@ -863,6 +885,7 @@ def MultiDimInfo(ds, **kwargs):
863
885
 
864
886
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
865
887
 
888
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
866
889
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
867
890
  opts, as_text = MultiDimInfoOptions(**kwargs)
868
891
  else:
@@ -870,7 +893,7 @@ def MultiDimInfo(ds, **kwargs):
870
893
  as_text = True
871
894
 
872
895
  if isinstance(ds, (str, os.PathLike)):
873
- ds = OpenEx(ds, OF_VERBOSE_ERROR | OF_MULTIDIM_RASTER)
896
+ ds = OpenEx(ds, OF_VERBOSE_ERROR | OF_MULTIDIM_RASTER, allowed_drivers = allowed_drivers, open_options = open_options)
874
897
  ret = MultiDimInfoInternal(ds, opts)
875
898
  if not as_text:
876
899
  import json
@@ -1147,6 +1170,7 @@ def Translate(destName, srcDS, **kwargs):
1147
1170
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
1148
1171
 
1149
1172
  filenamePrefix = ""
1173
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
1150
1174
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
1151
1175
  (opts, callback, callback_data) = TranslateOptions(**kwargs)
1152
1176
  if "format" in kwargs and kwargs["format"].upper() == "ZARR" and "creationOptions" in kwargs:
@@ -1158,7 +1182,7 @@ def Translate(destName, srcDS, **kwargs):
1158
1182
  (opts, callback, callback_data) = kwargs['options']
1159
1183
 
1160
1184
  if isinstance(srcDS, (str, os.PathLike)):
1161
- srcDS = Open(filenamePrefix + str(srcDS))
1185
+ srcDS = OpenEx(filenamePrefix + str(srcDS), allowed_drivers = allowed_drivers, open_options = open_options)
1162
1186
 
1163
1187
  return TranslateInternal(destName, srcDS, opts, callback, callback_data)
1164
1188
 
@@ -1440,18 +1464,19 @@ def Warp(destNameOrDestDS, srcDSOrSrcDSTab, **kwargs):
1440
1464
 
1441
1465
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
1442
1466
 
1467
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
1443
1468
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
1444
1469
  (opts, callback, callback_data) = WarpOptions(**kwargs)
1445
1470
  else:
1446
1471
  (opts, callback, callback_data) = kwargs['options']
1447
1472
 
1448
1473
  if isinstance(srcDSOrSrcDSTab, (str, os.PathLike)):
1449
- srcDSTab = [Open(srcDSOrSrcDSTab)]
1474
+ srcDSTab = [OpenEx(srcDSOrSrcDSTab, allowed_drivers = allowed_drivers, open_options = open_options)]
1450
1475
  elif isinstance(srcDSOrSrcDSTab, list):
1451
1476
  srcDSTab = []
1452
1477
  for elt in srcDSOrSrcDSTab:
1453
1478
  if isinstance(elt, (str, os.PathLike)):
1454
- srcDSTab.append(Open(elt))
1479
+ srcDSTab.append(OpenEx(elt, allowed_drivers = allowed_drivers, open_options = open_options))
1455
1480
  else:
1456
1481
  srcDSTab.append(elt)
1457
1482
  else:
@@ -1867,13 +1892,14 @@ def VectorTranslate(destNameOrDestDS, srcDS, **kwargs):
1867
1892
 
1868
1893
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
1869
1894
 
1895
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
1870
1896
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
1871
1897
  (opts, callback, callback_data) = VectorTranslateOptions(**kwargs)
1872
1898
  else:
1873
1899
  (opts, callback, callback_data) = kwargs['options']
1874
1900
 
1875
1901
  if isinstance(srcDS, (str, os.PathLike)):
1876
- srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR)
1902
+ srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR, allowed_drivers = allowed_drivers, open_options = open_options)
1877
1903
 
1878
1904
  if isinstance(destNameOrDestDS, (str, os.PathLike)):
1879
1905
  return wrapper_GDALVectorTranslateDestName(destNameOrDestDS, srcDS, opts, callback, callback_data)
@@ -2132,13 +2158,14 @@ def Nearblack(destNameOrDestDS, srcDS, **kwargs):
2132
2158
 
2133
2159
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
2134
2160
 
2161
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
2135
2162
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
2136
2163
  (opts, callback, callback_data) = NearblackOptions(**kwargs)
2137
2164
  else:
2138
2165
  (opts, callback, callback_data) = kwargs['options']
2139
2166
 
2140
2167
  if isinstance(srcDS, (str, os.PathLike)):
2141
- srcDS = OpenEx(srcDS)
2168
+ srcDS = OpenEx(srcDS, allowed_drivers = allowed_drivers, open_options = open_options)
2142
2169
 
2143
2170
  if isinstance(destNameOrDestDS, (str, os.PathLike)):
2144
2171
  return wrapper_GDALNearblackDestName(destNameOrDestDS, srcDS, opts, callback, callback_data)
@@ -2279,13 +2306,14 @@ def Grid(destName, srcDS, **kwargs):
2279
2306
 
2280
2307
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
2281
2308
 
2309
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
2282
2310
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
2283
2311
  (opts, callback, callback_data) = GridOptions(**kwargs)
2284
2312
  else:
2285
2313
  (opts, callback, callback_data) = kwargs['options']
2286
2314
 
2287
2315
  if isinstance(srcDS, (str, os.PathLike)):
2288
- srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR)
2316
+ srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR, allowed_drivers = allowed_drivers, open_options = open_options)
2289
2317
 
2290
2318
  return GridInternal(destName, srcDS, opts, callback, callback_data)
2291
2319
 
@@ -2437,13 +2465,14 @@ def Contour(destNameOrDestDS, srcDS, **kwargs):
2437
2465
 
2438
2466
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
2439
2467
 
2468
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
2440
2469
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
2441
2470
  (opts, callback, callback_data) = ContourOptions(**kwargs)
2442
2471
  else:
2443
2472
  (opts, callback, callback_data) = kwargs['options']
2444
2473
 
2445
2474
  if isinstance(srcDS, (str, os.PathLike)):
2446
- srcDS = OpenEx(srcDS)
2475
+ srcDS = OpenEx(srcDS, allowed_drivers = allowed_drivers, open_options = open_options)
2447
2476
 
2448
2477
  if isinstance(destNameOrDestDS, (str, os.PathLike)):
2449
2478
  return wrapper_GDALContourDestName(destNameOrDestDS, srcDS, opts, callback, callback_data)
@@ -2638,12 +2667,13 @@ def Rasterize(destNameOrDestDS, srcDS, **kwargs):
2638
2667
 
2639
2668
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
2640
2669
 
2670
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
2641
2671
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
2642
2672
  (opts, callback, callback_data) = RasterizeOptions(**kwargs)
2643
2673
  else:
2644
2674
  (opts, callback, callback_data) = kwargs['options']
2645
2675
  if isinstance(srcDS, (str, os.PathLike)):
2646
- srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR)
2676
+ srcDS = OpenEx(srcDS, gdalconst.OF_VECTOR, allowed_drivers = allowed_drivers, open_options = open_options)
2647
2677
 
2648
2678
  if isinstance(destNameOrDestDS, (str, os.PathLike)):
2649
2679
  return wrapper_GDALRasterizeDestName(destNameOrDestDS, srcDS, opts, callback, callback_data)
@@ -2833,13 +2863,14 @@ def Footprint(destNameOrDestDS, srcDS, **kwargs):
2833
2863
  kwargs = copy.copy(kwargs)
2834
2864
  kwargs["format"] = "GeoJSON"
2835
2865
 
2866
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
2836
2867
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
2837
2868
  (opts, callback, callback_data) = FootprintOptions(**kwargs)
2838
2869
  else:
2839
2870
  (opts, callback, callback_data) = kwargs['options']
2840
2871
 
2841
2872
  if isinstance(srcDS, (str, os.PathLike)):
2842
- srcDS = OpenEx(srcDS, gdalconst.OF_RASTER)
2873
+ srcDS = OpenEx(srcDS, gdalconst.OF_RASTER, allowed_drivers = allowed_drivers, open_options = open_options)
2843
2874
 
2844
2875
  if inline_geojson_requested or wkt_requested:
2845
2876
  import uuid
@@ -3346,6 +3377,7 @@ def MultiDimTranslate(destName, srcDSOrSrcDSTab, **kwargs):
3346
3377
 
3347
3378
  _WarnIfUserHasNotSpecifiedIfUsingExceptions()
3348
3379
 
3380
+ allowed_drivers, open_options = _get_allowed_drivers_and_open_options(**kwargs)
3349
3381
  if 'options' not in kwargs or isinstance(kwargs['options'], (list, str)):
3350
3382
  (opts, callback, callback_data) = MultiDimTranslateOptions(**kwargs)
3351
3383
  else:
@@ -3354,12 +3386,12 @@ def MultiDimTranslate(destName, srcDSOrSrcDSTab, **kwargs):
3354
3386
  import os
3355
3387
 
3356
3388
  if isinstance(srcDSOrSrcDSTab, (str, os.PathLike)):
3357
- srcDSTab = [OpenEx(srcDSOrSrcDSTab, OF_VERBOSE_ERROR | OF_RASTER | OF_MULTIDIM_RASTER)]
3389
+ srcDSTab = [OpenEx(srcDSOrSrcDSTab, OF_VERBOSE_ERROR | OF_RASTER | OF_MULTIDIM_RASTER, allowed_drivers = allowed_drivers, open_options = open_options)]
3358
3390
  elif isinstance(srcDSOrSrcDSTab, list):
3359
3391
  srcDSTab = []
3360
3392
  for elt in srcDSOrSrcDSTab:
3361
3393
  if isinstance(elt, str):
3362
- srcDSTab.append(OpenEx(elt, OF_VERBOSE_ERROR | OF_RASTER | OF_MULTIDIM_RASTER))
3394
+ srcDSTab.append(OpenEx(elt, OF_VERBOSE_ERROR | OF_RASTER | OF_MULTIDIM_RASTER, allowed_drivers = allowed_drivers, open_options = open_options))
3363
3395
  else:
3364
3396
  srcDSTab.append(elt)
3365
3397
  else:
@@ -18,7 +18,7 @@ from setuptools import setup
18
18
  from setuptools import find_packages
19
19
  from setuptools import Extension
20
20
 
21
- version = '3.13.0'
21
+ version = '3.13.1'
22
22
 
23
23
  # If CXX is defined in the environment, it will be used to link the .so
24
24
  # but setuptools will be confused if it is made of several words like 'ccache g++'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes