1% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/compat-sf.R, R/handle-crc.R, R/handle-rct.R,
3%   R/handle-sfc.R, R/handle-wkb.R, R/handle-wkt.R, R/handle-xy.R, R/handler.R
4\name{wk_handle.sfg}
5\alias{wk_handle.sfg}
6\alias{wk_handle.sf}
7\alias{wk_handle.bbox}
8\alias{wk_handle.wk_crc}
9\alias{wk_handle.wk_rct}
10\alias{wk_handle.sfc}
11\alias{wk_handle.wk_wkb}
12\alias{wk_handle.wk_wkt}
13\alias{wk_handle.wk_xy}
14\alias{wk_handle}
15\alias{new_wk_handler}
16\alias{is_wk_handler}
17\alias{as_wk_handler}
18\title{Read geometry vectors}
19\usage{
20\method{wk_handle}{sfg}(handleable, handler, ...)
21
22\method{wk_handle}{sf}(handleable, handler, ...)
23
24\method{wk_handle}{bbox}(handleable, handler, ...)
25
26\method{wk_handle}{wk_crc}(
27  handleable,
28  handler,
29  ...,
30  n_segments = getOption("wk.crc_n_segments", NULL),
31  resolution = getOption("wk.crc_resolution", NULL)
32)
33
34\method{wk_handle}{wk_rct}(handleable, handler, ...)
35
36\method{wk_handle}{sfc}(handleable, handler, ...)
37
38\method{wk_handle}{wk_wkb}(handleable, handler, ...)
39
40\method{wk_handle}{wk_wkt}(handleable, handler, ...)
41
42\method{wk_handle}{wk_xy}(handleable, handler, ...)
43
44wk_handle(handleable, handler, ...)
45
46new_wk_handler(handler_ptr, subclass = character())
47
48is_wk_handler(handler)
49
50as_wk_handler(handler, ...)
51}
52\arguments{
53\item{handleable}{A geometry vector (e.g., \code{\link[=wkb]{wkb()}}, \code{\link[=wkt]{wkt()}}, \code{\link[=xy]{xy()}},
54\code{\link[=rct]{rct()}}, or \code{\link[sf:sfc]{sf::st_sfc()}}) for which \code{\link[=wk_handle]{wk_handle()}} is defined.}
55
56\item{handler}{A \link[=wk_handle]{wk_handler} object.}
57
58\item{...}{Passed to the \code{\link[=wk_handle]{wk_handle()}} method.}
59
60\item{n_segments, resolution}{The number of segments to use when approximating
61a circle. The default uses \code{getOption("wk.crc_n_segments")} so that
62this value can be set for implicit conversions (e.g., \code{as_wkb()}).
63Alternatively, set the minimum distance between points on the circle
64(used to estimate \code{n_segments}). The default is obtained
65using \code{getOption("wk.crc_resolution")}.}
66
67\item{handler_ptr}{An external pointer to a newly created WK handler}
68
69\item{subclass}{The handler subclass}
70}
71\value{
72A WK handler.
73}
74\description{
75The handler is the basic building block of the wk package. In
76particular, the \code{\link[=wk_handle]{wk_handle()}} generic allows operations written
77as handlers to "just work" with many different input types. The
78wk package provides the \code{\link[=wk_void]{wk_void()}} handler, the \code{\link[=wk_format]{wk_format()}}
79handler, the \code{\link[=wk_debug]{wk_debug()}} handler, the \code{\link[=wk_problems]{wk_problems()}} handler,
80and \code{\link[=wk_writer]{wk_writer()}}s for \code{\link[=wkb]{wkb()}}, \code{\link[=wkt]{wkt()}}, \code{\link[=xy]{xy()}}, and \code{\link[sf:sfc]{sf::st_sfc()}})
81vectors.
82}
83