plotKML.GDALobj(obj, file.name, block.x, tiles=NULL,
tiles.sel=NULL, altitude=0, altitudeMode="relativeToGround", colour_scale,
z.lim=NULL, breaks.lst=NULL, kml.logo, overwrite=TRUE, cpus,
home.url=".", desc=NULL, open.kml=TRUE)
"GDALobj"
object i.e. a pointer to a spatial layerGSIF::tile
"absolute"
, "relativeToGround"
or "clampToGround"
length(colour_scale)+1)
plotKML
, kml.tiles
library(sp)
library(snowfall)
library(GSIF)
library(rgdal)
fn = system.file("pictures/SP27GTIF.TIF",
package = "rgdal")
obj <- GDALinfo(fn)
tiles <- getSpatialTiles(obj, block.x=5000,
return.SpatialPolygons = FALSE)
## plot using tiles:
plotKML.GDALobj(obj, tiles=tiles, z.lim=c(0,185))
## Even better ideas is to first reproject
## the large grid using 'gdalUtils::gdalwarp', then tile...
Run the code above in your browser using DataLab