Skip to content

Commit 9d3eca4

Browse files
committed
feat: parametrize buffer distance
1 parent 48cb3b8 commit 9d3eca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soil_id/global_soil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ class SoilListOutputData:
7272
##################################################################################################
7373
# getSoilLocationBasedGlobal #
7474
##################################################################################################
75-
def list_soils_global(connection, lon, lat):
75+
def list_soils_global(connection, lon, lat, buffer_dist=100000):
7676
# Extract HWSD2 Data
7777
try:
7878
hwsd2_data = extract_hwsd2_data(
7979
connection,
8080
lon,
8181
lat,
8282
table_name="hwsdv2",
83-
buffer_dist=10000,
83+
buffer_dist=buffer_dist,
8484
)
8585
except KeyError:
8686
return "Data_unavailable"

0 commit comments

Comments
 (0)