Description Usage Arguments Value See Also Examples
wkt_coords
extracts lat/long values from WKT polygons,
specifically the outer shell of those polygons (working on the assumption
that said outer edge is what you want).
Because it assumes coordinates, it also assumes a sphere - say, the earth - and uses spherical coordinate values.
1 | wkt_coords(wkt)
|
wkt |
a character vector of WKT objects |
a data.frame of four columns; object
(containing which object
the row refers to), ring
containing which layer of the object the row
refers to, lng
and lat
.
wkt_bounding()
to extract a bounding box, and wkt_centroid()
to extract the centroid.
1 | wkt_coords("POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.