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

gc_sf

Transform a spatial object to class sf


Description

Transform a spatial object to class sf

Usage

gc_sf(input, ...)

## S4 method for signature 'geom'
gc_sf(input = NULL)

Arguments

input

the object to transform to class sf.

...

other arguments.

Value

If input is a geom and has attributes other than fid and gid, a "Simple feature collection", otherwise a "Geometry set". Several features of the geom are returned as MULTI* feature, when they have gid and optionally other attributes in common, otherwise they are returned as a single simple feature.

See Also

Other spatial classes: gc_geom(), gc_raster(), gc_sp()

Examples

gc_sf(input = gtGeoms$point)

gc_sf(input = gtGeoms$line)

gc_sf(input = gtGeoms$polygon)

geometr

Generate and Modify Interoperable Geometric Shapes

v0.2.10
GPL-3
Authors
Steffen Ehrmann [aut, cre] (<https://orcid.org/0000-0002-2958-0796>), Dan Sunday [cph] (fast point-in-polygon algorithm.)
Initial release

We don't support your browser anymore

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