Description Usage Arguments Details Note Examples
View source: R/MapCanvas-methods.R
Computes, sets or retrieves the global spatial bounding box.
1 2 3 | global.bbox.save(con, ...)
global.bbox.fetch(con)
|
con |
An |
... |
Arguments to pass to the corresponding methods: |
global.bbox.save
saves the global bounding box and the
proj4 string to the sqlite database.
global.bbox.fetch
retrieves the global bounding box as a
SpatialPolygonsDataFrame
.
If bbox is a character
vector then the corresponding
method calls rangeMapBbox
with checkProj = TRUE
which requires
all ranges to have the same proj4 argument.
If p4s is set
then the bbox will be set with that p4s string else the
p4s will be identical with the proj4 string of the range
files.
If bbox and p4s are missing then an unprojected
global bounding box is set.
1 2 3 4 5 6 7 8 9 10 11 | require(rangeMapper)
wd = tempdir()
f= system.file(package = "rangeMapper", "extdata", "wrens", "vector")
# Using default values for both bbox and p4s
dbcon = rangeMap.start(file = "test.sqlite", overwrite = TRUE, dir = wd )
global.bbox.save(con = dbcon)
bbox0 = global.bbox.fetch(dbcon)
plot(bbox0, axes = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.