diff --git a/openeo/rest/datacube.py b/openeo/rest/datacube.py index 457b7e61c..2afcf46e7 100644 --- a/openeo/rest/datacube.py +++ b/openeo/rest/datacube.py @@ -647,7 +647,14 @@ def filter_spatial( (which will be loaded client-side to get the geometries as GeoJSON construct). """ valid_geojson_types = [ - "Polygon", "MultiPolygon", "GeometryCollection", "FeatureCollection" + "Point", + "MultiPoint", + "LineString", + "MultiLineString", + "Polygon", + "MultiPolygon", + "GeometryCollection", + "FeatureCollection", ] geometries = _get_geometry_argument(geometries, valid_geojson_types=valid_geojson_types, connection=self.connection, crs=None) return self.process( @@ -2809,6 +2816,8 @@ def unflatten_dimension(self, dimension: str, target_dimensions: List[str], labe label_separator=label_separator, ), ) + + def _get_geometry_argument( argument: Union[ shapely.geometry.base.BaseGeometry,