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

AttributeTypeDescription
geometryLatLng | LineStrip | Polygon | MultiPolygonThe 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

AttributeTypeDescription
indicesDGGSIndex[]The DGGS Indices of the Geography. More information of the type can be found in the PointToDGGSIndex.
message RasterizeResult {
  repeated DGGSIndex indices = 1;
}