gc_sf: Transform a spatial object to class 'sf'

Description Usage Arguments Value See Also Examples

Description

Transform a spatial object to class sf

Usage

1
2
3
4
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

1
2
3
4
5
gc_sf(input = gtGeoms$point)

gc_sf(input = gtGeoms$line)

gc_sf(input = gtGeoms$polygon)

geometr documentation built on Sept. 21, 2021, 1:07 a.m.