Skip to content

Commit e9ec44d

Browse files
issue #678 improve documentation
1 parent db6bbb8 commit e9ec44d

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
@@ -1270,7 +1270,7 @@ def load_collection(
12701270
:param collection_id: image collection identifier
12711271
:param spatial_extent: limit data to specified bounding box or polygons. Can be provided in different ways:
12721272
- a bounding box dictionary
1273-
- a shapely geometry
1273+
- a Shapely geometry object
12741274
- a GeoJSON-style dictionary,
12751275
- a path (:py:class:`str` or :py:class:`~pathlib.Path`) to a local, client-side GeoJSON file,
12761276
which will be loaded automatically to get the geometries as GeoJSON construct.
@@ -1295,7 +1295,7 @@ def load_collection(
12951295
Add :py:func:`~openeo.rest.graph_building.collection_property` support to ``properties`` argument.
12961296
12971297
.. versionchanged:: 0.37.0
1298-
Add support for shapely geometry and local path to GeoJSON file to spatial_extent argument.
1298+
Add support for passing a Shapely geometry or a local path to a GeoJSON file to the ``spatial_extent`` argument.
12991299
"""
13001300
return DataCube.load_collection(
13011301
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)