Learn R Programming

raster (version 1.8-3)

KML: Write a KML file

Description

Export raster data to a KML file

Usage

KML(raster, filename, col=rainbow(255), maxpixels=100000)

Arguments

raster
RasterLayer
filename
output filename
col
color scheme to be used
maxpixels
maximum number of pixels. If ncell(raster) > maxpixels, sampleRegular is used to reduce the number of pixels

Value

  • None. But there is the side-effect of two files written to disk.