h3_to_geo_boundary: Get the vertices of a given hexagon (or pentagon)

Description Usage Arguments Value See Also

View source: R/h3_h3-to-geo-boundary.R

Description

Get the vertices of a given hexagon (or pentagon) either as an array of [lat, lng] points or as GeoJSON output: [lng, lat] points and closed loops.

Usage

1
h3_to_geo_boundary(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?

Value

matrix with [lat, lng] or [lng, lat] points if format_as_geojson = TRUE; Furthermore, GeoJSON format returns closed loops; list of matrices if multiple indexes are supplied

See Also

geo_boundary_to_sf and geo_to_sf


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