Learn R Programming

wellknown (version 0.7.4)

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

Value

a string, same length as given

Details

segment, box, and ring types not supported

Examples

Run this code
# NOT RUN {
wkt_reverse("POLYGON((42 -26,42 -13,52 -13,52 -26,42 -26))")
# }

Run the code above in your browser using DataLab