The goal of tst is geo-spatial data testing using the 'testthat' package frameworks. Geo Spatial Data tests including CRS, geometry types, spetial relatons and units correctly.
NOTES tst: total station theodolite is an electronic/optical instrument used for surveying and building construction.
You can install the develop version of tst from GitHub with:
# install.packages("remotes") remotes::install_github("uribo/tst")
library(sf) #> Linking to GEOS 3.6.1, GDAL 2.1.3, proj.4 4.9.3 library(tst) x <- st_point(c(0, 0)) expect_geom_type(x, "POINT") # TRUE
expect_geom_type(x, "POLYGON") # FALSE # Error: `x`, geometry type is POINT, not POLYGON.
sfc <- st_sfc(st_point(c(0, 0)), st_point(c(1, 1))) sf <- st_sf(a = 1:2, geom = sfc) st_crs(sf) <- 4326 expect_crs(sf, 4326)
We will compatible to the objects provided by the following packages. Please write the issue if there is a request with other methods. We welcome your contribution :)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.