Skip to contents

GeoArrow encoded arrays as R vectors

Usage

as_geoarrow_vctr(x, ..., schema = NULL)

Arguments

x

An object that works with as_geoarrow_array_stream(). Most spatial objects in R already work with this method.

...

Passed to as_geoarrow_array_stream()

schema

An optional schema (e.g., na_extension_geoarrow()).

Value

A vctr of class 'geoarrow_vctr'

Examples

as_geoarrow_vctr("POINT (0 1)")
#> <geoarrow_vctr geoarrow.wkt{string}[1]>
#> [1] <POINT (0 1)>