ExportKMLRasterOverlay: ExportKMLRasterOverlay

Description Usage Arguments Details Value

View source: R/kml.R

Description

Export KML Raster function

Usage

1
2
ExportKMLRasterOverlay(raster, color_pal, alpha, maxpixels, blur,
  colNA, outfile, output_dir)

Arguments

raster

a Raster* object

color_pal

color palette, can be a color ramp (e.g., c("white", "red") or a specific palette (e.g., "SAGA_pal[[1]]")

alpha

numeric (0-1), transparency level of the kml. Default is 1.

method

method used to compute values for the new RasterLayer. Either 'ngb' (nearest neighbor), which is useful for categorical variables, or 'bilinear' (bilinear interpolation; the default value), which is appropriate for continuous variables.

overwrite

logical, whether or not to overwrite result file. Default is TRUE.

maxpixels

maximum number of pixels. If ncell(raster) > maxpixels, sample is used to reduce the number of pixels.

blur

integer (default=10). Higher values help avoid blurring of isolated pixels (at the expense of a png file that is blur^2 times larger)

colNA

color to use for the background (default is transparent)

outfile

name of KML, default is to use name of raster

output_dir

output folder location, default is getwd()

zip

logical, whether or not to convert .kml to .kmz

Details

Modified from functions in the 'kml' and 'raster' packages

Value

KML of a Raster


Blakemassey/gisr documentation built on Aug. 30, 2020, 12:14 a.m.