Create GEOS Geometry Vectors

# S3 method for class 'wk_xy'
as_geos_geometry(x, ...)

# S3 method for class 'wk_xyz'
as_geos_geometry(x, ...)

as_geos_geometry(x, ...)

# S3 method for class 'geos_geometry'
as_geos_geometry(x, ...)

# Default S3 method
as_geos_geometry(x, ...)

# S3 method for class 'character'
as_geos_geometry(x, ..., crs = NULL)

# S3 method for class 'blob'
as_geos_geometry(x, ..., crs = NULL)

# S3 method for class 'WKB'
as_geos_geometry(x, ..., crs = NULL)

# S3 method for class 'SpatVector'
as_geos_geometry(x, ...)

geos_geometry(crs = wk::wk_crs_inherit())

Arguments

x

An object to be coerced to a geometry vector

...

Unused

crs

An object that can be interpreted as a CRS. See wk::wk_crs().

Value

A geos geometry vector

Examples

as_geos_geometry("LINESTRING (0 1, 3 9)")
#> <geos_geometry[1]>
#> [1] <LINESTRING (0 1, 3 9)>