Take single points from geographical coordinates and convert it into a
geojson 'Polygon' string using st_buffer.
sf_to_geojson(lonlat, dist = 0.00001, nQuadSegs = 2L, ...)
| lonlat | an object of class 'sf' and geometry type 'POINT' or 'POLYGON' |
|---|---|
| dist | numeric, buffer distance for all |
| nQuadSegs | integer, number of segments per quadrant |
| ... | further arguments passed to |
An object of class 'geosjon' for each row in lonlat
Other utility functions:
dataframe_to_geojson()