prep_for_polyfill {h3jsr}R Documentation

Prepare geometry for polygon_to_cells

Description

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

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.


[Package h3jsr version 1.3.1 Index]