1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/filters.R
\name{wkt_set_srid}
\alias{wkt_set_srid}
\alias{wkb_set_srid}
\alias{wkt_set_z}
\alias{wkb_set_z}
\alias{wkt_transform}
\alias{wkb_transform}
\title{Modify well-known geometries}
\usage{
wkt_set_srid(wkt, srid, precision = 16, trim = TRUE)
wkb_set_srid(wkb, srid)
wkt_set_z(wkt, z, precision = 16, trim = TRUE)
wkb_set_z(wkb, z)
wkt_transform(wkt, trans, precision = 16, trim = TRUE)
wkb_transform(wkb, trans)
}
\arguments{
\item{wkt}{A character vector containing well-known text.}
\item{srid}{An integer spatial reference identifier with a user-defined meaning.
Use \code{NA} to unset this value.}
\item{precision}{The rounding precision to use when writing
(number of decimal places).}
\item{trim}{Trim unnecessary zeroes in the output?}
\item{wkb}{A \code{list()} of \code{\link[=raw]{raw()}} vectors, such as that
returned by \code{sf::st_as_binary()}.}
\item{z}{A Z value that will be assigned to every coordinate in each feature.
Use \code{NA} to unset this value.}
\item{trans}{A 3x3 transformation matrix that will be applied to all coordinates
in the input.}
}
\value{
An unclassed well-known vector with the same type
as the input.
}
\description{
Modify well-known geometries
}
\examples{
wkt_set_srid("POINT (30 10)", 1234)
wkt_set_z("POINT (30 10)", 1234)
wkt_transform(
"POINT (0 0)",
# translation +12 +13
matrix(c(1, 0, 0, 0, 1, 0, 12, 13, 1), ncol = 3)
)
}
|