Skip to content

Commit a64ce16

Browse files
issue #678 correct valid types of geojson types in filter_spatial
1 parent 81431c2 commit a64ce16

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

openeo/rest/datacube.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,14 @@ def filter_spatial(
647647
(which will be loaded client-side to get the geometries as GeoJSON construct).
648648
"""
649649
valid_geojson_types = [
650-
"Polygon", "MultiPolygon", "GeometryCollection", "FeatureCollection"
650+
"Point",
651+
"MultiPoint",
652+
"LineString",
653+
"MultiLineString",
654+
"Polygon",
655+
"MultiPolygon",
656+
"GeometryCollection",
657+
"FeatureCollection",
651658
]
652659
geometries = _get_geometry_argument(geometries, valid_geojson_types=valid_geojson_types, connection=self.connection, crs=None)
653660
return self.process(
@@ -2809,6 +2816,8 @@ def unflatten_dimension(self, dimension: str, target_dimensions: List[str], labe
28092816
label_separator=label_separator,
28102817
),
28112818
)
2819+
2820+
28122821
def _get_geometry_argument(
28132822
argument: Union[
28142823
shapely.geometry.base.BaseGeometry,

0 commit comments

Comments
 (0)