Learn R Programming

rangeMapper (version 0.2-8)

global.bbox: Global bounding box

Description

Computes, sets or retrieves the global spatial bounding box.

Usage

global.bbox.save(con, ...)
	global.bbox.fetch(con)

Arguments

con
An SQLiteConnection object pointing to a rangeMapper project
...
Arguments to pass to the corresponding methods: bbox can be a character vector; the path to the range files directory bbox can also be an object inheriting from Spatial p4s

Details

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.

References

Valcu, M., Dale, J. and Kempenaers, B. (2012) rangeMapper: A platform for the study of macroecology of life history traits. 21(9). (DOI: 10.1111/j.1466-8238.2011.00739.x)

See Also

rangeMapper proj4string bbox

Examples

Run this code
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)


# more examples at: http://rangemapper.orn.mpg.de/

Run the code above in your browser using DataLab