From 97398f3ae4a3358112fd2255c4510f83ff67c874 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Mon, 13 Mar 2023 17:20:55 +0100 Subject: [PATCH] Add dimension parameter --- filter_temporal.json | 2 +- proposals/vector_reproject.json | 25 +++++++++++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/filter_temporal.json b/filter_temporal.json index 0ba2274e..c873645b 100644 --- a/filter_temporal.json +++ b/filter_temporal.json @@ -66,7 +66,7 @@ }, { "name": "dimension", - "description": "The name of the temporal dimension to filter on. If no specific dimension is specified or it is set to `null`, the filter applies to all temporal dimensions. Fails with a `DimensionNotAvailable` exception if the specified dimension does not exist.", + "description": "The name of the temporal dimension to filter on. If no specific dimension is specified, the filter applies to all temporal dimensions. Fails with a `DimensionNotAvailable` exception if the specified dimension does not exist.", "schema": { "type": [ "string", diff --git a/proposals/vector_reproject.json b/proposals/vector_reproject.json index 5b4b4dfd..3fc487bf 100644 --- a/proposals/vector_reproject.json +++ b/proposals/vector_reproject.json @@ -1,7 +1,7 @@ { "id": "vector_reproject", "summary": "Reprojects the geometry dimension", - "description": "Converts the geometries stored in the geometry dimensions to a different projection.\n\nTo spatially align two data cubes with each other, better use the process ``resample_cube_spatial()``.", + "description": "Converts the geometries stored in a geometry dimensions to a different projection.\n\nTo spatially align two data cubes with each other, better use the process ``resample_cube_spatial()``.", "categories": [ "cubes", "reproject", @@ -24,7 +24,7 @@ }, { "name": "projection", - "description": "Reprojects the geometries stored in the geometry dimensions to the given projection, specified as as [EPSG code](http://www.epsg-registry.org/), [WKT2 (ISO 19162) string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html), [PROJ definition (deprecated)](https://proj.org/usage/quickstart.html).", + "description": "Projection to reproject to. specified as as [EPSG code](http://www.epsg-registry.org/), [WKT2 (ISO 19162) string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html), [PROJ definition (deprecated)](https://proj.org/usage/quickstart.html).", "schema": [ { "title": "EPSG Code", @@ -41,20 +41,37 @@ "subtype": "wkt2-definition" } ] + }, + { + "name": "dimension", + "description": "The name of the geometry dimension to reproject. If no specific dimension is specified, the filter applies to all geometry dimensions. Fails with a `DimensionNotAvailable` exception if the specified dimension does not exist.", + "schema": { + "type": [ + "string", + "null" + ] + }, + "default": null, + "optional": true } ], "returns": { - "description": "A vector data cube with geometries converted into the new projection. The reference system of the vector dimensions changes all other dimensions and properties remain unchanged.", + "description": "A vector data cube with geometries projected to the new projection. The reference system of the geometry dimension changes, all other dimensions and properties remain unchanged.", "schema": { "type": "object", "subtype": "datacube", "dimensions": [ { - "type": "geometries" + "type": "geometry" } ] } }, + "exceptions": { + "DimensionNotAvailable": { + "message": "A dimension with the specified name does not exist." + } + }, "links": [ { "href": "https://openeo.org/documentation/1.0/datacubes.html#resample",