Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster to vector Conversion #434

Open
wants to merge 17 commits into
base: draft
Choose a base branch
from
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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`
Expand Down
65 changes: 65 additions & 0 deletions proposals/raster_to_vector.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"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 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"
],
"experimental": true,
"parameters": [
{
"name": "data",
"description": "A raster data cube.",
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "spatial",
"axis": [
"x",
"y"
]
}
]
}
},
{
"name": "projection",
"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",
"type": "integer",
"subtype": "epsg-code",
"minimum": 1000,
"examples": [
3857
]
},
{
"title": "WKT2",
"type": "string",
"subtype": "wkt2-definition"
},
{
"type": "null"
}
],
"optional": true,
"default": null
PondiB marked this conversation as resolved.
Show resolved Hide resolved
}
],
"returns": {
"description": "A converted vector data cube.",
"schema": {
"type": "object",
"subtype": "datacube",
"dimensions": [
{
"type": "geometry"
}
]
}
}
}