Skip to contents

Given an vector of geometries, cast it as an rsgeo class object.

Usage

as_rsgeo(x)

Arguments

x

a geometry vector

Value

an object of class rsgeo

Examples

x <- sf::st_sfc(sf::st_point(c(0,0)))
as_rsgeo(x)
#> <rs_POINT[1]>
#> [1] Point(Coord { x: 0.0, y: 0.0 }))