On Tue, Oct 25, 2011 at 7:45 AM, Martin Tomko <[email protected]> wrote:
> Dear all,
> Just to clarify some of the issues raised by Bahman (working in the same
> team).
> Indeed, we are interested to see how we can use some of the processes (and
> please, do not interpret this in the tight sense of Geotools processes), by
> that I mean also topological operators, etc (exposing JTS, I guess). We are
> actuallly looking much beyond GeoTools, and may need to plug in other
> libraries (Say, apache math commons).
>
> Now, we are at the beginning, and do not know whether this is possible to
> do so easily at all! ;)
>
> Andrea's approach in Jgrasstools is nice, but involves writing a wrapper
> for each function. I am keen to find out whether this can be avoided to some
> extent – maybe not. What we are really after is the capability detailed ion
> page 18 of the presentation here:
> http://www.javaforge.com/displayDocument/20090331+MMS+to+OMS+to+Minimally+Invasive+Framework.ppt?doc_id=72793
>
> And also detailed in a later presentation which I cannot find now, but
> maybe Bahman can contribute the link or name.
>
> We will report if we find out a solution (or an alternative approach) -
> as it seems there is interest in this in the Geotools community as well.
>
Hi,
I don't use OMS so I can't provide a precise suggestion, but as far as I can
see you want to be able to
create processes by scanning configuration xml files, right?
In that case all you have to do is to implement your own ProcessFactory and
register it in SPI.
The current widely used annotation based factories, used for vector, raster
and JTS based processes,
are just one possible implementation of that interface, you can roll your
own and then register
it into META-INF/org.geotools.process.ProcessFactory (see how the other
implementations are registered).
At that point all of GeoTools and GeoServer too will be able to pick up and
use your processes
(well, sort of, for GeoServer you will still have to provide a
ProcessParameterIO class to turn whatever
parameter your processes receive into a serialized form that can be used
into the XML document
representing the WPS Request).
Btw, the same would be valid for OMS processes, no need to wrap them one by
one, if you have
the ability to list and describe the processes all that is needed is a
single factory list and describing
them, and wrapping them on demand into a class bridging the two worlds.
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
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
-------------------------------------------------------
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel