Skip to content

Commit 8a74d7e

Browse files
committed
aggregate_spatial with points: more robust buffering approach
1 parent a9742b3 commit 8a74d7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openeo_driver/dry_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from pyproj import CRS
5454
from shapely.geometry import GeometryCollection, MultiPolygon, Point, Polygon
5555
from shapely.geometry.base import BaseGeometry
56+
import shapely.ops
5657

5758
from openeo.utils.normalize import normalize_resample_resolution
5859
from openeo_driver import filter_properties
@@ -655,7 +656,7 @@ def _normalize_geometry(
655656
points.append(g)
656657
else:
657658
other.append(g)
658-
other_hull = reproject_geometry(shapely.unary_union(other),geometries.get_crs(),CRS.from_user_input(target_crs))
659+
other_hull = reproject_geometry(shapely.ops.unary_union(other),geometries.get_crs(),CRS.from_user_input(target_crs))
659660

660661
if len(points) > 0:
661662
point_hull = reproject_geometry(shapely.geometry.MultiPoint(points).envelope,geometries.get_crs(),CRS.from_user_input(target_crs))

0 commit comments

Comments
 (0)