Skip to content

Commit 985bb0b

Browse files
committed
fix #172 i think wicket integration is done, closing issue
bumped patch version due to the change
1 parent a973c3e commit 985bb0b

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description: A programmatic interface to many species occurrence data sources,
88
System ('OBIS'), and Atlas of Living Australia ('ALA'). Includes
99
functionality for retrieving species occurrence data, and combining
1010
those data.
11-
Version: 0.6.0.9131
11+
Version: 0.6.2.9100
1212
License: MIT + file LICENSE
1313
Authors@R: c(
1414
person("Scott", "Chamberlain", role = c("aut", "cre"), email = "myrmecocystus@gmail.com"),
@@ -32,7 +32,7 @@ Imports:
3232
jsonlite (>= 1.1),
3333
data.table (>= 1.9.6),
3434
tibble (>= 1.2),
35-
wicket (>= 0.1.0)
35+
wicket (>= 0.2.0)
3636
Suggests:
3737
testthat,
3838
knitr,

R/wkt_bbox.R

+15-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#' wkt2bbox returns a numeric vector of length 4, like c(minx, miny,
1515
#' maxx, maxy).
1616
#'
17-
#' @examples \dontrun{
17+
#' @examples
1818
#' # Convert a bounding box to a WKT
1919
#'
2020
#' ## Pass in a vector of length 4 with all values
@@ -26,7 +26,20 @@
2626
#' # Convert a WKT object to a bounding box
2727
#' wkt <- "POLYGON((-125 38.4,-125 40.9,-121.8 40.9,-121.8 38.4,-125 38.4))"
2828
#' wkt2bbox(wkt)
29-
#' }
29+
#'
30+
#' identical(
31+
#' bbox2wkt(-125.0, 38.4, -121.8, 40.9),
32+
#' "POLYGON((-125 38.4,-125 40.9,-121.8 40.9,-121.8 38.4,-125 38.4))"
33+
#' )
34+
#'
35+
#' identical(
36+
#' c(-125.0, 38.4, -121.8, 40.9),
37+
#' as.numeric(
38+
#' wkt2bbox(
39+
#' "POLYGON((-125 38.4,-125 40.9,-121.8 40.9,-121.8 38.4,-125 38.4))"
40+
#' )
41+
#' )
42+
#' )
3043
bbox2wkt <- function(minx=NA, miny=NA, maxx=NA, maxy=NA, bbox=NULL) {
3144
if (is.null(bbox)) bbox <- list(c(minx, miny, maxx, maxy))
3245
wicket::bounding_wkt(values = bbox)

man/bbox2wkt.Rd

+14-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)