
Provides an abbreviated version of the well-known text representation of a geometry. This returns a constant number of coordinates for each geometry, so is safe to use for geometry vectors with many (potentially large) features.
wkb_format(wkb, max_coords = 3)wkt_format(wkt, max_coords = 3)
wksxp_format(wksxp, max_coords = 3)
A list()
of raw()
vectors, such as that
returned by sf::st_as_binary()
.
The maximum number of coordinates to include in the output.
A character vector containing well-known text.
A list()
of classed objects
A character vector of abbreviated well-known text.
# NOT RUN {
wkt_format("MULTIPOLYGON (((0 0, 10 0, 0 10, 0 0)))")
wkb_format(
wkt_translate_wkb(
"MULTIPOLYGON (((0 0, 10 0, 0 10, 0 0)))"
)
)
# }
Run the code above in your browser using DataLab