From dba38c62b76f698fab4914c7410d78ab85462740 Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 25 Apr 2023 11:38:42 +0200 Subject: [PATCH 01/16] raster to vector conversion --- proposals/raster_to_vector.json | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 proposals/raster_to_vector.json diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json new file mode 100644 index 00000000..ad04d836 --- /dev/null +++ b/proposals/raster_to_vector.json @@ -0,0 +1,52 @@ +{ + "id": "raster_to_vector", + "summary": "Converts a raster to a vector.", + "description": "Converts a raster data cube into a vector data cube. The bounding polygon of homogenous areas of pixels is constructed.", + "categories": [ + "cubes" + ], + "parameters": [ + { + "name": "data", + "description": "A data cube.", + "schema": { + "type": "object", + "subtype": "datacube" + } + }, + { + "name": "tranform", + "description": "Coordinate reference system to tranform the converted vector. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\n The default value is of the input raster cube.", + "schema": [ + { + "title": "EPSG Code", + "type": "integer", + "subtype": "epsg-code", + "minimum": 1000, + "examples": [ + 3857 + ] + }, + { + "title": "WKT2", + "type": "string", + "subtype": "wkt2-definition" + } + ], + "optional": true, + "default": null + } + ], + "returns": { + "description": "Returns a converted vector data cube.", + "schema": { + "type": "object", + "subtype": "datacube", + "dimensions": [ + { + "type": "geometry" + } + ] + } + } +} \ No newline at end of file From 6fbd70c6c9f6caf29c31c7960c89b4c8221a1187 Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 25 Apr 2023 11:40:02 +0200 Subject: [PATCH 02/16] raster to vector conversion --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d268dd9..973ac40f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - New processes in proposal state: + - `raster_to_vector` - `date_difference` - `filter_vector` - `flatten_dimensions` From 8ab4ad63adcc0f5f913e8305baecc1ab2e4a6d98 Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 25 Apr 2023 11:50:27 +0200 Subject: [PATCH 03/16] rename tranform to projection --- proposals/raster_to_vector.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index ad04d836..dbe610ec 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -15,8 +15,8 @@ } }, { - "name": "tranform", - "description": "Coordinate reference system to tranform the converted vector. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\n The default value is of the input raster cube.", + "name": "projection", + "description": "Coordinate reference system to reproject the converted vector. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\nThe default value is of the input raster cube.", "schema": [ { "title": "EPSG Code", From 8fee49e3e3e29f98b54552e3e5004d3ced2de3cf Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 25 Apr 2023 13:20:58 +0200 Subject: [PATCH 04/16] experimental line and summary update --- proposals/raster_to_vector.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index dbe610ec..016bdfe1 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -1,10 +1,11 @@ { "id": "raster_to_vector", - "summary": "Converts a raster to a vector.", + "summary": "Converts a raster to a vector", "description": "Converts a raster data cube into a vector data cube. The bounding polygon of homogenous areas of pixels is constructed.", "categories": [ "cubes" ], + "experimental": true, "parameters": [ { "name": "data", From 999f034bb302e709a4347e9660ad1baf8403fad2 Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 25 Apr 2023 13:23:05 +0200 Subject: [PATCH 05/16] word correction --- proposals/raster_to_vector.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 016bdfe1..b26d1fb9 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -1,7 +1,7 @@ { "id": "raster_to_vector", "summary": "Converts a raster to a vector", - "description": "Converts a raster data cube into a vector data cube. The bounding polygon of homogenous areas of pixels is constructed.", + "description": "Converts a raster data cube into a vector data cube. The bounding polygon of similar areas of pixels is constructed.", "categories": [ "cubes" ], From 1b51f58d6eab8f1eea533e950228f7518e2a1089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brian=20P=CF=95ndi?= Date: Fri, 28 Apr 2023 14:51:26 +0200 Subject: [PATCH 06/16] Update proposals/raster_to_vector.json Co-authored-by: Stefaan Lippens --- proposals/raster_to_vector.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index b26d1fb9..a1462f5b 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -1,6 +1,6 @@ { "id": "raster_to_vector", - "summary": "Converts a raster to a vector", + "summary": "Converts raster data to vector data", "description": "Converts a raster data cube into a vector data cube. The bounding polygon of similar areas of pixels is constructed.", "categories": [ "cubes" From bb4695f0d5be317fa552764103c924b4d1466952 Mon Sep 17 00:00:00 2001 From: PondiB Date: Fri, 28 Apr 2023 14:55:25 +0200 Subject: [PATCH 07/16] update returns description --- proposals/raster_to_vector.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index a1462f5b..5c8dec45 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -39,7 +39,7 @@ } ], "returns": { - "description": "Returns a converted vector data cube.", + "description": "A converted vector data cube.", "schema": { "type": "object", "subtype": "datacube", From 6d4bdec2ddefd07c29a2c7cb47a6136dace03c3e Mon Sep 17 00:00:00 2001 From: PondiB Date: Fri, 28 Apr 2023 15:06:21 +0200 Subject: [PATCH 08/16] update descriptions --- proposals/raster_to_vector.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 5c8dec45..2db0ff3f 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -1,7 +1,7 @@ { "id": "raster_to_vector", - "summary": "Converts raster data to vector data", - "description": "Converts a raster data cube into a vector data cube. The bounding polygon of similar areas of pixels is constructed.", + "summary": "Converts single band raster data cube to vector data", + "description": "Converts a single band raster data cube into a vector data cube. The bounding polygon of uniform areas of pixels is constructed.", "categories": [ "cubes" ], @@ -17,7 +17,7 @@ }, { "name": "projection", - "description": "Coordinate reference system to reproject the converted vector. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\nThe default value is of the input raster cube.", + "description": "Coordinate reference system to reproject the converted vector. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\n When no projection (or null) is given, the reference system of the input raster data cube is used.", "schema": [ { "title": "EPSG Code", From 3fbb141116ba430f4850f9a6e0b51b1d2a340ed9 Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 2 May 2023 15:35:00 +0200 Subject: [PATCH 09/16] remove nullibility option on projection --- proposals/raster_to_vector.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 2db0ff3f..5f80a62a 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -34,8 +34,7 @@ "subtype": "wkt2-definition" } ], - "optional": true, - "default": null + "optional": true } ], "returns": { From 8ec6e65fee9a3189a7e4147d94d59695cb5f0367 Mon Sep 17 00:00:00 2001 From: PondiB Date: Fri, 5 May 2023 13:36:35 +0200 Subject: [PATCH 10/16] enable projections to be null --- proposals/raster_to_vector.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 5f80a62a..090d9f17 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -32,9 +32,13 @@ "title": "WKT2", "type": "string", "subtype": "wkt2-definition" + }, + { + "type": null } ], - "optional": true + "optional": true, + "default": null } ], "returns": { From f4fab59eed052256d64583fea81a05743d8f850a Mon Sep 17 00:00:00 2001 From: PondiB Date: Fri, 5 May 2023 13:39:04 +0200 Subject: [PATCH 11/16] enable projections to be null --- proposals/raster_to_vector.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 090d9f17..56549901 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -34,7 +34,7 @@ "subtype": "wkt2-definition" }, { - "type": null + "type": "null" } ], "optional": true, From 6d77e730970212476d57001a9244e8be3d39d260 Mon Sep 17 00:00:00 2001 From: PondiB Date: Tue, 20 Jun 2023 17:29:07 +0200 Subject: [PATCH 12/16] change log update --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90cb9d72..bb395c38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `flatten_dimensions` - `load_geojson` - `load_url` + - `raster_to_vector` - `unflatten_dimension` - `vector_buffer` - `vector_reproject` From 1ef71995bcf5ab2748645832ae3f88a4d3871176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brian=20P=CF=95ndi?= Date: Wed, 13 Dec 2023 22:29:42 +0100 Subject: [PATCH 13/16] Update proposals/raster_to_vector.json Co-authored-by: Matthias Mohr --- proposals/raster_to_vector.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 56549901..2c4dab52 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -17,7 +17,7 @@ }, { "name": "projection", - "description": "Coordinate reference system to reproject the converted vector. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\n When no projection (or null) is given, the reference system of the input raster data cube is used.", + "description": "Coordinate reference system to reproject the converted vector to. Specified as an [EPSG code](http://www.epsg-registry.org/) or [WKT2 CRS string](http://docs.opengeospatial.org/is/18-010r7/18-010r7.html).\nWhen no projection (or null) is given, the reference system of the input raster data cube is used.", "schema": [ { "title": "EPSG Code", From 47a70fc366d8a38e0fce40a4f711d11126e7878f Mon Sep 17 00:00:00 2001 From: Brian Pondi Date: Thu, 14 Dec 2023 12:02:48 +0100 Subject: [PATCH 14/16] clear description --- proposals/raster_to_vector.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 2c4dab52..8acfb8d1 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -1,7 +1,7 @@ { "id": "raster_to_vector", "summary": "Converts single band raster data cube to vector data", - "description": "Converts a single band raster data cube into a vector data cube. The bounding polygon of uniform areas of pixels is constructed.", + "description": "Converts a single band raster data cube into a vector data cube. The process involves constructing the bounding polygon based on the full area covered by pixel boundaries, providing a representation of homogeneous areas within the raster dataset.", "categories": [ "cubes" ], From 5f50a6a22e63d8d0fb8e0d78e18072eb4cfe4469 Mon Sep 17 00:00:00 2001 From: Brian Pondi Date: Thu, 14 Dec 2023 12:22:35 +0100 Subject: [PATCH 15/16] data dimensions --- CHANGELOG.md | 1 - proposals/raster_to_vector.json | 20 ++++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb395c38..f5b988ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - New processes in proposal state: - - `raster_to_vector` - `date_between` - `date_difference` - `filter_vector` diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index 8acfb8d1..abeff066 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -10,10 +10,22 @@ { "name": "data", "description": "A data cube.", - "schema": { - "type": "object", - "subtype": "datacube" - } + "schema": [ + { + "title": "Raster data cube", + "type": "object", + "subtype": "datacube", + "dimensions": [ + { + "type": "spatial", + "axis": [ + "x", + "y" + ] + } + ] + } + ] }, { "name": "projection", From bb7b736c5daa5d0c7f931d7a64d7c122a065f29c Mon Sep 17 00:00:00 2001 From: Brian Pondi Date: Thu, 14 Dec 2023 12:29:52 +0100 Subject: [PATCH 16/16] data dimensions --- proposals/raster_to_vector.json | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/proposals/raster_to_vector.json b/proposals/raster_to_vector.json index abeff066..43821bb5 100644 --- a/proposals/raster_to_vector.json +++ b/proposals/raster_to_vector.json @@ -9,23 +9,20 @@ "parameters": [ { "name": "data", - "description": "A data cube.", - "schema": [ - { - "title": "Raster data cube", - "type": "object", - "subtype": "datacube", - "dimensions": [ - { - "type": "spatial", - "axis": [ - "x", - "y" - ] - } - ] - } - ] + "description": "A raster data cube.", + "schema": { + "type": "object", + "subtype": "datacube", + "dimensions": [ + { + "type": "spatial", + "axis": [ + "x", + "y" + ] + } + ] + } }, { "name": "projection",