1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/make.R 3\name{wk_linestring} 4\alias{wk_linestring} 5\alias{wk_polygon} 6\alias{wk_collection} 7\alias{wk_linestring_filter} 8\alias{wk_polygon_filter} 9\alias{wk_collection_filter} 10\title{Create lines, polygons, and collections} 11\usage{ 12wk_linestring(handleable, feature_id = 1L, ...) 13 14wk_polygon(handleable, feature_id = 1L, ring_id = 1L, ...) 15 16wk_collection( 17 handleable, 18 geometry_type = wk_geometry_type("geometrycollection"), 19 feature_id = 1L, 20 ... 21) 22 23wk_linestring_filter(handler, feature_id = 1L) 24 25wk_polygon_filter(handler, feature_id = 1L, ring_id = 1L) 26 27wk_collection_filter( 28 handler, 29 geometry_type = wk_geometry_type("geometrycollection"), 30 feature_id = 1L 31) 32} 33\arguments{ 34\item{handleable}{A geometry vector (e.g., \code{\link[=wkb]{wkb()}}, \code{\link[=wkt]{wkt()}}, \code{\link[=xy]{xy()}}, 35\code{\link[=rct]{rct()}}, or \code{\link[sf:sfc]{sf::st_sfc()}}) for which \code{\link[=wk_handle]{wk_handle()}} is defined.} 36 37\item{feature_id}{An identifier where changes in sequential 38values indicate a new feature. This is recycled silently 39as needed.} 40 41\item{...}{Passed to the \code{\link[=wk_handle]{wk_handle()}} method.} 42 43\item{ring_id}{An identifier where changes in sequential 44values indicate a new ring. Rings are automatically 45closed. This is recycled silently as needed.} 46 47\item{geometry_type}{The collection type to create.} 48 49\item{handler}{A \link[=wk_handle]{wk_handler} object.} 50} 51\value{ 52An object of the same class as \code{handleable} with 53whose coordinates have been assembled into the given 54type. 55} 56\description{ 57Create lines, polygons, and collections 58} 59\examples{ 60wk_linestring(xy(c(1, 1), c(2, 3))) 61wk_polygon(xy(c(0, 1, 0), c(0, 0, 1))) 62wk_collection(xy(c(1, 1), c(2, 3))) 63 64} 65