Skip to content

Commit a72e3a5

Browse files
ElienVandermaesenVITOsoxofaan
authored andcommitted
issue #678 improve documentation
1 parent 79d14c6 commit a72e3a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

openeo/rest/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ def load_collection(
12711271
:param collection_id: image collection identifier
12721272
:param spatial_extent: limit data to specified bounding box or polygons. Can be provided in different ways:
12731273
- a bounding box dictionary
1274-
- a shapely geometry
1274+
- a Shapely geometry object
12751275
- a GeoJSON-style dictionary,
12761276
- a path (:py:class:`str` or :py:class:`~pathlib.Path`) to a local, client-side GeoJSON file,
12771277
which will be loaded automatically to get the geometries as GeoJSON construct.
@@ -1296,7 +1296,7 @@ def load_collection(
12961296
Add :py:func:`~openeo.rest.graph_building.collection_property` support to ``properties`` argument.
12971297
12981298
.. versionchanged:: 0.37.0
1299-
Add support for shapely geometry and local path to GeoJSON file to spatial_extent argument.
1299+
Add support for passing a Shapely geometry or a local path to a GeoJSON file to the ``spatial_extent`` argument.
13001300
"""
13011301
return DataCube.load_collection(
13021302
collection_id=collection_id,

openeo/rest/datacube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def load_collection(
160160
Can be ``None`` to work without connection and collection metadata.
161161
:param spatial_extent: limit data to specified bounding box or polygons. Can be provided in different ways:
162162
- a bounding box dictionary
163-
- a shapely geometry
163+
- a Shapely geometry object
164164
- a GeoJSON-style dictionary,
165165
- a path (:py:class:`str` or :py:class:`~pathlib.Path`) to a local, client-side GeoJSON file,
166166
which will be loaded automatically to get the geometries as GeoJSON construct.
@@ -185,7 +185,7 @@ def load_collection(
185185
Add :py:func:`~openeo.rest.graph_building.collection_property` support to ``properties`` argument.
186186
187187
.. versionchanged:: 0.37.0
188-
Add support for shapely geometry and local path to GeoJSON file to spatial_extent argument.
188+
Add support for passing a Shapely geometry or a local path to a GeoJSON file to the ``spatial_extent`` argument.
189189
"""
190190
if temporal_extent:
191191
temporal_extent = cls._get_temporal_extent(extent=temporal_extent)

0 commit comments

Comments
 (0)