powered by
Modify well-known geometries
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)
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)
An unclassed well-known vector with the same type as the input.
A character vector containing well-known text.
An integer spatial reference identifier with a user-defined meaning. Use NA to unset this value.
NA
The rounding precision to use when writing (number of decimal places).
Trim unnecessary zeroes in the output?
A list() of raw() vectors, such as that returned by sf::st_as_binary().
list()
raw()
sf::st_as_binary()
A Z value that will be assigned to every coordinate in each feature. Use NA to unset this value.
A 3x3 transformation matrix that will be applied to all coordinates in the input.
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) )
Run the code above in your browser using DataLab