Simple R example
From Gcube Wiki
Contents
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:
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: