Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wkt_reverse

Reverses the points within a geometry.


Description

wkt_reverse reverses the points in any of point, multipoint, linestring, multilinestring, polygon, or multipolygon

Usage

wkt_reverse(x)

Arguments

x

a character vector of WKT objects, represented as strings

Details

segment, box, and ring types not supported

Value

a string, same length as given

Examples

wkt_reverse("POLYGON((42 -26,42 -13,52 -13,52 -26,42 -26))")

wellknown

Convert Between 'WKT' and 'GeoJSON'

v0.7.2
MIT + file LICENSE
Authors
Scott Chamberlain [aut, cre] (<https://orcid.org/0000-0003-1444-9135>), Os Keyes [aut] (author of code in src/)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.