Description
The "Rasterize" beta endpoint allows you to obtain the DGGS Index associated with a Geographical Point on the earth or a set of DGGS indices in the case of a polygon/line. This could be useful for searching for non-geospatial attributes associated to this particular Geography at an aggregated view.
Proto Definition
service BGSearchBeta {
rpc Rasterize(RasterizeArgs) returns (RasterizeResult) {}
}
Input Message
Name: geometry
Attribute | Type | Description |
---|---|---|
geometry | LatLng | LineStrip | Polygon | MultiPolygon | The input geometry to find the DGGS Indices. |
message RasterizeArgs {
oneof geometry {
LatLng point = 1;
LineStrip line_strip = 2;
Polygon polygon = 3;
MultiPolygon multi_polygon = 4;
}
}
Output Message
Name: indices
Attribute | Type | Description |
---|---|---|
indices | DGGSIndex[] | The DGGS Indices of the Geography. More information of the type can be found in the PointToDGGSIndex. |
message RasterizeResult {
repeated DGGSIndex indices = 1;
}