canvas.save: Project's canvas

Description Usage Arguments Value Note See Also Examples

View source: R/MapCanvas-methods.R

Description

The canvas is a regular grid of a given resolution. Each range map is overlayed onto the canvas and the results saved to project.

Usage

1
2
3

Arguments

con

An sqlite connection pointing to a valid rangeMapper project.

Value

canvas.fetch Returns a SpatialPixelsDataFrame object.

Note

The method canvasSave() fails if grid.size was not set and if the canvas was already constructed for the given project.

See Also

rangeMap.save.
gridSize.save

Examples

1
2
3
4
5
6
7
8
wd = tempdir()
dbcon = rangeMap.start(file = "test.sqlite", overwrite = TRUE, dir = wd)
global.bbox.save(con = dbcon)
gridSize.save(dbcon, gridSize = 2)
canvas.save(dbcon)
cnv = canvas.fetch(dbcon)
summary(cnv)
plot(cnv, col = 'grey', axes = TRUE)

valcu/rangeMapper documentation built on Feb. 6, 2021, 8:20 p.m.