Learn R Programming

geos (version 0.2.4)

as_geos_geometry.wk_xy: Create GEOS Geometry Vectors

Description

Create GEOS Geometry Vectors

Usage

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

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

as_geos_geometry(x, ...)

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

# S3 method for default as_geos_geometry(x, ...)

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

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

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

geos_geometry(crs = wk::wk_crs_inherit())

Value

A geos geometry vector

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().

Examples

Run this code
as_geos_geometry("LINESTRING (0 1, 3 9)")

Run the code above in your browser using DataLab