Mark character vectors as well-known text
wkt(x = character())parse_wkt(x)
as_wkt(x, ...)
# S3 method for default
as_wkt(x, ...)
# S3 method for character
as_wkt(x, ...)
# S3 method for wk_wkt
as_wkt(
x,
...,
include_z = NULL,
include_m = NULL,
include_srid = NULL,
precision = NULL,
trim = NULL
)
# S3 method for wk_wkb
as_wkt(
x,
...,
include_z = NULL,
include_m = NULL,
include_srid = NULL,
precision = NULL,
trim = NULL
)
# S3 method for wk_wksxp
as_wkt(
x,
...,
include_z = NULL,
include_m = NULL,
include_srid = NULL,
precision = NULL,
trim = NULL
)
A character()
vector containing well-known text.
Unused
Include the
values of the Z and M coordinates and/or SRID
in the output? Use FALSE
to omit, TRUE
to include, or NA
to include
only if present. Note that using TRUE
may result in an error if there
is no value present in the original.
Include the
values of the Z and M coordinates and/or SRID
in the output? Use FALSE
to omit, TRUE
to include, or NA
to include
only if present. Note that using TRUE
may result in an error if there
is no value present in the original.
Include the
values of the Z and M coordinates and/or SRID
in the output? Use FALSE
to omit, TRUE
to include, or NA
to include
only if present. Note that using TRUE
may result in an error if there
is no value present in the original.
The rounding precision to use when writing (number of decimal places).
Trim unnecessary zeroes in the output?
# NOT RUN {
wkt("POINT (20 10)")
# }
Run the code above in your browser using DataCamp Workspace