WKT utilities in R
wicket
is a little package to make handling Well-Known Text (WKT) data easier in R, letting you easily:
- Validate WKT data;
- Generate WKT bounding boxes from R data types, and;
- Convert
sp
objects (particularly SpatialPolygons and SpatialPolygonDataFrames) into WKT.
The package is mostly built out of C++, and as such can perform all of these operations extremely fast, to the tune of 100,000 sp-to-WKT conversions in just over a second. For more information, see the introductory vignette.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Installation
The package can be installed via:
install.packages("wicket")
For the release version, and:
devtools::install_github("ropensci/wicket")
For the development version.