KML
method for a GeotopRasterBrick
object
# S4 method for class 'GeotopRasterBrick'
KML(
x,
filename,
crs = as.character("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"),
...
)
the GeotopRasterBrick
object
mane of the KML file to produce
character string containing the LatLon reference system. Default is "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
(see https://spatialreference.org/ref/epsg/4326/).
further argument for S4 method KLM
for Raster object.
A coordinate transformation is made with projectRaster
.
library(geotopbricks)
# The examples is the following R script contained in a 'inst' directory of the package source
f <- system.file("doc/examples/example.KML.GeotopRasterBrick.R",package="geotopbricks")
if (FALSE) { # \dontrun{
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