Difference between revisions of "Simple R example"

From Gcube Wiki
Jump to: navigation, search
(Resources)
(Resources)
Line 16: Line 16:
  
 
* retrieves the WFS response via a curl GET request and stores the output (GML file).  
 
* 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).  
+
* 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
+
* The output is published on the HDFS storage and returned to the client as an HTTP reference to the result
  
 
=== Interface ===  
 
=== Interface ===  

Revision as of 17:56, 27 November 2012

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: