h3_set_to_multi_polygon: Get the outlines of a set of hexagons

Description Usage Arguments Examples

View source: R/h3_algorithms.R

Description

Get the outlines of a set of hexagons

Usage

1
h3_set_to_multi_polygon(h3_index, format_as_geojson = TRUE)

Arguments

h3_index

character vector representing H3 indexes

format_as_geojson

provide GeoJSON output: [lng, lat] and closed loops?

Examples

1
2
3
4
5
6
7
coords <- c(37.3615593, -122.0553238)

geo_to_h3(coords) %>%
  k_ring(3) %>%
  h3_set_to_multi_polygon() %>%
  geo_boundary_to_sf() %>%
  plot()

crazycapivara/h3forr documentation built on Dec. 6, 2020, 5:21 a.m.