Jump to: navigation, search

Difference between revisions of "WPS"

(Created page with "=Installation WPS service from 52°North= *Download the latest 52n WPS release from [http://52north.org/index.php?option=com_jdownloads&view=finish&cid=431&catid=14 here].(If ...")
 
Line 5: Line 5:
 
==Configure R==
 
==Configure R==
 
*Start R, install the package Rserve and the recommended ones with the following command. Add more of them for your own purposes:
 
*Start R, install the package Rserve and the recommended ones with the following command. Add more of them for your own purposes:
install.packages(c("Rserve","sp","maptools","rgdal", "spatstat","gstat","automap"))
+
install.packages(c("Rserve","sp","maptools","rgdal", "spatstat","gstat","automap"))
 
===Optional===
 
===Optional===
 
You can use the Rprofile.site file in directory R_HOME%/etc to configure options and packages that should be available on every start of R.
 
You can use the Rprofile.site file in directory R_HOME%/etc to configure options and packages that should be available on every start of R.
 
To do this, initialize the .First function. Specify required libraries and the default work directory inside the function. These settings will be preloaded during start-up of R:
 
To do this, initialize the .First function. Specify required libraries and the default work directory inside the function. These settings will be preloaded during start-up of R:
  .First <- function() {
+
  .First = function() {
 
  #the following libraries will be loaded on R start-up:
 
  #the following libraries will be loaded on R start-up:
 
  library(sp)
 
  library(sp)

Revision as of 15:35, 26 April 2013

Installation WPS service from 52°North

  • Download the latest 52n WPS release from here.(If you want the source code, follow this tutorial)
  • Rename the downloaded .war file to wps.war and drop it in the webapps folder of your tomcat.

Configure R

  • Start R, install the package Rserve and the recommended ones with the following command. Add more of them for your own purposes:
install.packages(c("Rserve","sp","maptools","rgdal", "spatstat","gstat","automap"))

Optional

You can use the Rprofile.site file in directory R_HOME%/etc to configure options and packages that should be available on every start of R. To do this, initialize the .First function. Specify required libraries and the default work directory inside the function. These settings will be preloaded during start-up of R:

.First = function() {
#the following libraries will be loaded on R start-up:
library(sp)
library(gstat)
library(rgdal)
library(spatstat)
library(maptools)
library(automap)
#specify the R work directory here:
setwd("<R WD>")
}