Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

prep_for_polyfill

Prepare geometry for polyfill


Description

Converts a variety of possible input geometries to geojson for h3jsr::polyfill().

Usage

prep_for_polyfill(polys = NULL)

## S3 method for class 'sf'
prep_for_polyfill(polys = NULL)

## S3 method for class 'sfc'
prep_for_polyfill(polys = NULL)

## S3 method for class 'sfg'
prep_for_polyfill(polys = NULL)

Arguments

polys

'sf', 'sfc' or 'sfg' POLYGON/MULTIPOLYGON object.

Value

'geojson' representation of supplied geometry.


h3jsr

Access Uber's H3 Library

v1.2.2
Apache License (>= 2)
Authors
Lauren O'Brien [aut, cre] (<https://orcid.org/0000-0002-7336-2171>)
Initial release
2021-06-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.