| cell_to_lonlat | R Documentation |
Converts DGGS cell IDs back to geographic coordinates (cell centers).
cell_to_lonlat(cell_id, grid)
cell_id |
Numeric vector of cell IDs |
grid |
A HexGridInfo or HexData object |
Data frame with lon_deg and lat_deg columns
lonlat_to_cell for the forward operation
grid <- hex_grid(area_km2 = 1000)
cells <- lonlat_to_cell(c(0, 10), c(45, 50), grid)
coords <- cell_to_lonlat(cells, grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.