wicket v0.4.0


Monthly downloads



Utilities to Handle WKT Spatial Data

Utilities to generate bounding boxes from 'WKT' (Well-Known Text) objects and R data types, validate 'WKT' objects and convert object types from the 'sp' package into 'WKT' representations.


WKT utilities in R

Travis-CI Build Status downloads

wicket is a little package to make handling Well-Known Text (WKT) data easier in R, letting you easily:

  1. Validate WKT data;
  2. Generate WKT bounding boxes from R data types, and;
  3. 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.


The package can be installed via:


For the release version, and:


For the development version.

Functions in wicket

Name Description
wkt_centroid Extract Centroid
wkt_coords Extract Latitude and Longitude from WKT polygons
wkt_correct Correct Incorrectly Oriented WKT Objects
bounding_wkt Generate Bounding Boxes
sp_convert Convert SpatialPolygons or SpatialPolygonDataFrames into WKT objects
validate_wkt Validate WKT objects
wicket Well-Known Text utilities
wkt_bounding Convert WKT Objects into Bounding Boxes
No Results!

Vignettes of wicket

No Results!

Last month downloads


Type Package
Date 2017-11-18
License MIT + file LICENSE
LazyData TRUE
LinkingTo Rcpp, BH
RoxygenNote 6.0.1
VignetteBuilder knitr
URL https://github.com/ropensci/wicket
BugReports https://github.com/ropensci/wicket/issues
NeedsCompilation yes
Packaged 2017-11-18 23:43:08 UTC; ironholds
Repository CRAN
Date/Publication 2017-11-19 17:20:10 UTC
linkingto BH
suggests knitr , rmarkdown , testthat
imports Rcpp
Contributors Oliver Keyes

Include our badge in your README