Displaying 1 result from an estimated 1 matches for "meuse_soil".
2012 Feb 24
1
Producing KML files
...yst.net/wiki/index.php?title=Export_maps_to_GE
The lines that I can run are:
data(meuse.grid)
coordinates(meuse.grid) <- ~x+y
gridded(meuse.grid) <- TRUE
proj4string(meuse.grid) = CRS("+init=epsg:28992")
# raster to polygon conversion;
writeGDAL(meuse.grid["soil"], "meuse_soil.sdat", "SAGA", mvFlag=-99999)
rsaga.geoprocessor(lib="shapes_grid", module=6,
param=list(GRID="meuse_soil.sgrd", POLYGONS="meuse_soil.shp", CLASS_ALL=1))
and it crashes there with the following error message:
Error in setwd(env$w...