rangeMapper (version 0.3-1)

global.bbox.save: 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 an object of class '>CRS

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.

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab