Skip to content

Commit

Permalink
fix(zonal_stats) : wkt
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasK committed Dec 16, 2024
1 parent 1cdd8d4 commit bd1d7a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion earthdaily/earthdatastore/cube_utils/_zonal.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ def _loop_time_chunks(dataset, method, smart_load, time_chunks):

if geoms.crs.to_epsg() != 4326:
geoms = geoms.to_crs("EPSG:4326")

geometry = xr.DataArray(
geoms.iloc[list(f - 1)].geometry.apply(lambda x: x.wkt).values,
geoms.geometry.iloc[list(f-1)].to_wkt(rounding_precision=-1).values,
dims=["feature"],
coords={"feature": zs.feature.values},
)
Expand Down

0 comments on commit bd1d7a5

Please sign in to comment.