Learn R Programming

geotopbricks (version 1.4)

KML: KML

Description

KML method for a GeotopRasterBrick object

Usage

# S4 method for GeotopRasterBrick
KML(x, filename,
  crs = as.character("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"), ...)

Arguments

x
filename

mane of the KML file to produce

crs

character string containg the LatLon reference system. Default is "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" (see http://spatialreference.org/ref/epsg/4326/).

...

further argument for S4 method KLM for Raster object.

Examples

Run this code
# NOT RUN {

library(geotopbricks)
# The examples is the following R script conteined in a 'inst' directory of the package source
f <- system.file("doc/examples/example.KML.GeotopRasterBrick.R",package="geotopbricks")
#  source(f) # Uncomment this line to run the example. 
# You can copy the example file using file.copy(from=f,to=....,...) See file.copy documentation
# }

Run the code above in your browser using DataLab