gridSize.save: Save or retrieve the grid size from an 'rangeMapper' project.

Description Usage Arguments Value Note Examples

View source: R/MapCanvas-methods.R

Description

Save or retrieve the grid size from the active sqlite database.

Usage

1
2
3

Arguments

con

A connection pointing to a valid rangeMapper project.

...

gridSize: A numeric vector of one unit length. See notes.

Value

list("gridSize.fetch")

Returns a numeric vector of one unit length containing the grid size previously saved by gridSize.save

Note

If gridSize is not given the default grid size is computed based on the bounding box as the range of the smallest axis /100.

Examples

1
2
3
4
5
6
7
8
9
wd = tempdir()
dbcon = rangeMap.start(file = "test.sqlite", overwrite = TRUE, dir = wd )
global.bbox.save(con = dbcon)
gridSize.save(dbcon, gridSize = 2)

dbcon = rangeMap.start(file = "test.sqlite", overwrite = TRUE, dir = wd )
global.bbox.save(con = dbcon)
gridSize.save(dbcon)
gridSize.fetch(dbcon) #default grid size value

rangeMapper documentation built on May 29, 2017, 12:08 p.m.

Search within the rangeMapper package
Search all R packages, documentation and source code