Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 821af6c

Browse files
author
Emma Ai
committed
support water body polygons
1 parent 0b20365 commit 821af6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/wit/wetland_brutal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from wit_tooling.polygon_drill import cal_area
3434
from wit_tooling.database.io import DIO
3535
from wit_tooling import poly_wkt, convert_shape_to_polygon, query_wit_data, plot_to_png, query_wit_metrics, load_timeslice, generate_raster
36+
from dea_tools import waterbodies
3637

3738
try:
3839
# this need to be fixed
@@ -368,7 +369,7 @@ def query_process(args):
368369
return grouped
369370

370371
def convert_hash_to_shape(gh, id_inc):
371-
wb_poly = dea_waterbodies.get_waterbody(geohash=gh).geometry.iloc[0]
372+
wb_poly = waterbodies.get_waterbody(geohash=gh).geometry.iloc[0]
372373
shape = dict({'geometry': mapping(wb_poly), 'id':str(id_inc),
373374
'properties':{'hash': gh}})
374375
return shape

0 commit comments

Comments
 (0)