sqlite_to_raster: helpers to convert sqlite table to rasters

View source: R/sqlite_to_raster.R

sqlite_to_rasterR Documentation

helpers to convert sqlite table to rasters

Description

<Delete and Replace>

Usage

sqlite_to_raster(
  db,
  tb_gm = "gm",
  colsxy = c("center_x", "center_y"),
  cols2Raster = colsSomeX(),
  res = c(NA, NA),
  format = ".img",
  dirOut = "E:\\projects\\2017_NAIP\\rasters\\",
  raster_prefix = "",
  crs = NA,
  nProc = 4,
  doDebug = F,
  doBuild = F,
  set9999 = c(0, NA, -9999),
  big_raster = F
)

colsAll(thresh = "6_00")

colsID()

colsAllX(thresh = "6_00")

colsSomeX(thresh = "6_00")

colsFewX(thresh = "6_00")

Arguments

db

a database object, tested for sqlite database

tb_gm

which table has gridmetrics data

colsxy

names of xy columns

cols2Raster

which columns to grab

format

raster formate e.g. .tif , .img etc

dirOut

where to export rasters

raster_prefix

give a name to rasters for id purposes

crs

proj4 string or other crs notation used by raster package (see writeRaster)

nProc

number of cores to use in converting to raster

doDebug

run in debug mode and only read 50k rows?

thresh

character string like "2_50" that matches height representation in column names in tb_gm

Details

<Delete and Replace>


Revision History

1.0 3/16/2020 Function created

Value

<Delete and Replace>

Author(s)

Jacob Strunk <Jstrunk@fs.fed.us>

See Also

rasterFromXYZ
writeRaster

Examples

 <Delete and Replace>


jstrunk001/RSForInvt documentation built on April 18, 2022, 11:03 p.m.