Rdocumentation
powered by
Learn R Programming
raster (version 1.9-13)
KML: Write a KML or KMZ file
Description
Export raster data to a KML file and an accompanying PNG image file, or to a single KMZ file (a zip file containing the KML and PNG files).
Usage
KML(x, filename, col=rainbow(255), maxpixels=100000, zip='')
Arguments
x
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
zip
If there is no zip program on your path (on windows), you can supply the full path to a zip.exe here, in order to make a KMZ file
Value
None. But there is the side-effect of two files written to disk.