[Geoserver-devel] WPS with R module

Hi,

I’d like to create a new community module called wps-r. The purpose is to run R processes from GeoServer.

I have done a prototype and my plan seems to go well. Before I get in too deep, I thought I should get an approval and commit my code.

The plan is to:

  1. Create wps-r community module.

  2. Add a profile (-Pwps-r) in wps-core pom.xml to include wps-r module as a dependency if enabled.

The implementation details:

Cheers

Rini

On Wed, Jun 6, 2012 at 10:10 AM, <Rini.Angreani@anonymised.com> wrote:

Hi,

I’d like to create a new community module called wps-r. The purpose is to
run R processes from GeoServer.

I have done a prototype and my plan seems to go well. Before I get in too
deep, I thought I should get an approval and commit my code.

The plan is to:

1. Create wps-r community module.

2. Add a profile (-Pwps-r) in wps-core pom.xml to include wps-r module
as a dependency if enabled.

The implementation details:

- Create a catalog file from R help files (*.Rd files) to load base
functions automatically. The catalog can be edited with custom processes.

- Use RServe to call R from my module.

- I followed this guide for the rest of it:
http://docs.geoserver.org/latest/en/developer/programming-guide/wps/index.html#the-processes

Nice!

Wondering, on trunk most of the processes that have nothing to do with GeoServer
internals are in Geotools.
Wondering if using r-serve forces a GPL license on the code though?

I'm also curious about the integration between feature collections and
R spatial abilities,
how is it going to happen?

Btw, this might be of interest:
https://wiki.52north.org/bin/view/Geostatistics/WPS4R

Cheers
Andrea

--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

It no longer does an API - and instead uses client / server. I know a
team using R and uDig in this fashion.

--
Jody Garnett

On 06/06/2012, at 6:56 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Wed, Jun 6, 2012 at 10:10 AM, <Rini.Angreani@anonymised.com> wrote:

Hi,

I’d like to create a new community module called wps-r. The purpose is to
run R processes from GeoServer.

I have done a prototype and my plan seems to go well. Before I get in too
deep, I thought I should get an approval and commit my code.

The plan is to:

1. Create wps-r community module.

2. Add a profile (-Pwps-r) in wps-core pom.xml to include wps-r module
as a dependency if enabled.

The implementation details:

- Create a catalog file from R help files (*.Rd files) to load base
functions automatically. The catalog can be edited with custom processes.

- Use RServe to call R from my module.

- I followed this guide for the rest of it:
http://docs.geoserver.org/latest/en/developer/programming-guide/wps/index.html#the-processes

Nice!

Wondering, on trunk most of the processes that have nothing to do with GeoServer
internals are in Geotools.
Wondering if using r-serve forces a GPL license on the code though?

I'm also curious about the integration between feature collections and
R spatial abilities,
how is it going to happen?

Btw, this might be of interest:
https://wiki.52north.org/bin/view/Geostatistics/WPS4R

Cheers
Andrea

--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

On Wed, Jun 6, 2012 at 3:37 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

It no longer does an API - and instead uses client / server. I know a
team using R and uDig in this fashion.

Hum, there seems to be a client library, but now that I look into the
sources the
src/client/java-new has the following LICENSE file:

---------------------------------------------------------------------------------

REngine - Java interface to R
Copyright (C) 2004,5,6,7 Simon Urbanek

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

---------------------------------------------------------------------------------

So it seems that using this one it should be possible to put the work
in Geotools

Cheers
Andrea

--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

Thanks Andrea. I am using REngine indeed.
This document says GPL-2 though (http://cran.r-project.org/web/packages/CommonJavaJars/CommonJavaJars.pdf):

. JRIEngine and REngine under GPL-2, http://www.rforge.net/rJava/, Copyright 2010
by Simon Urbanek

I better clarify with them first and then I'll get back to you.

Cheers
Rini

-----Original Message-----
From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: Wednesday, 6 June 2012 9:58 PM
To: Jody Garnett
Cc: Angreani, Rini (CESRE, Kensington); geoserver-devel@anonymised.comet
Subject: Re: [Geoserver-devel] WPS with R module

On Wed, Jun 6, 2012 at 3:37 PM, Jody Garnett <jody.garnett@anonymised.com> wrote:

It no longer does an API - and instead uses client / server. I know a
team using R and uDig in this fashion.

Hum, there seems to be a client library, but now that I look into the
sources the
src/client/java-new has the following LICENSE file:

---------------------------------------------------------------------------------

REngine - Java interface to R
Copyright (C) 2004,5,6,7 Simon Urbanek

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

---------------------------------------------------------------------------------

So it seems that using this one it should be possible to put the work
in Geotools

Cheers
Andrea

--
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf