Simple R example

From Gcube Wiki
Revision as of 16:56, 27 November 2012 by Fabrice.brito (Talk | contribs) (Resources)

Jump to: navigation, search

Simple R example

Processing rational

The process takes one OGC WFS getFeature request passed as reference and use R to generate a plot as shown below:

FRA TUNA YEAR 5deg.png

The OGC WFS server is hosted by IRD, the GetCapabilities URL is here: IRD GetCapabilities

Processing

Resources

The WPS process uses WPS-hadoop in pseudo-cluster mode. It fruits the hadoop streaming approach where the WFS URLs are pipped into a bash script that:

  • retrieves the WFS response via a curl GET request and stores the output (GML file).

- This GML file is passed as argument to the R executable script (provided by IRD). - The output is published on the HDFS storage and returned to the client as an HTTP reference to the result

Interface

The DescribeProcess URL is available here:

GET invocation

The GET invocation URL is:

POST invocation

The POST invocation is provided by: