Skip to content

Commit 85a56d2

Browse files
committed
Make GDAL skip the certificate check
1 parent 2b00229 commit 85a56d2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

forestatrisk/data/compute/compute_biomass_avitabile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def compute_biomass_avitabile(proj, extent, verbose=False):
3939
"/vsicurl/https://forestatrisk.cirad.fr/"
4040
"tropics/agb/Avitabile_AGB_Map_cog.tif"
4141
)
42+
# Make GDAL skip the certificate check
43+
gdal.SetConfigOption("GDAL_HTTP_UNSAFESSL", "YES")
4244
param = gdal.WarpOptions(
4345
warpOptions=["overwrite"],
4446
srcSRS="EPSG:4326",
@@ -52,6 +54,7 @@ def compute_biomass_avitabile(proj, extent, verbose=False):
5254
callback=cback,
5355
)
5456
gdal.Warp("AGB.tif", ifile, options=param)
57+
# Reset GDAL configuration option
58+
gdal.SetConfigOption("GDAL_HTTP_UNSAFESSL", "NO")
5559

5660
# End
57-

0 commit comments

Comments
 (0)