Skip to content

Commit

Permalink
Make it more clear that chunk_polygon is deprecated
Browse files Browse the repository at this point in the history
just point to apply_polygon from docs
  • Loading branch information
soxofaan committed Nov 27, 2024
1 parent a239fe5 commit bb4b368
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,19 +1453,7 @@ def chunk_polygon(
mask_value: float = None,
context: Optional[dict] = None,
) -> DataCube:
"""
Apply a process to spatial chunks of a data cube.
.. warning:: experimental process: not generally supported, API subject to change.
:param chunks: Polygons, provided as a shapely geometry, a GeoJSON-style dictionary,
a public GeoJSON URL, or a path (that is valid for the back-end) to a GeoJSON file.
:param process: "child callback" function, see :ref:`callbackfunctions`
:param mask_value: The value used for cells outside the polygon.
This provides a distinction between NoData cells within the polygon (due to e.g. clouds)
and masked cells outside it. If no value is provided, NoData cells are used outside the polygon.
:param context: Additional data to be passed to the process.
"""
""""""
process = build_child_callback(process, parent_parameters=["data"], connection=self.connection)
valid_geojson_types = [
"Polygon",
Expand Down

0 comments on commit bb4b368

Please sign in to comment.