Difference between revisions of "Simple R example"

From Gcube Wiki
Jump to: navigation, search
m (moved Here to Simple R example)
 
Line 1: Line 1:
 
= Simple R example =  
 
= Simple R example =  
  
== Processing rational ==
+
== Processing rationale ==
  
 
The process takes one OGC WFS getFeature request passed as reference and use R to generate a plot as shown below:
 
The process takes one OGC WFS getFeature request passed as reference and use R to generate a plot as shown below:

Latest revision as of 10:20, 23 January 2013

Simple R example

Processing rationale

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: