i have a basic question.
is it possible to write some code (presumably using DataStoreFactorySpi, and it's ilk), generate a JAR file, put that jar file under a geoserver installed under say tomcat, and have that store appear in the geoserver web UI such that the features it provides can be composed into layer sets?
i've been swirling around in geotools and geoserver documentation APIs and examples for days and days now, but i can't for the life of me figure out how to do this. i don't know if my mental model of how this should work is wrong, or if there is more configuration i need to provide to geoserver, or one of a thousand other possible mistakes i could be making, so i'm backing up and challenging my basic assumptions.
thank you,
-trebor
Yes.
There is an incomplete tutorial here:
http://docs.geotools.org/latest/userguide/tutorial/advanced/contentdatastore.html
and another here:
http://docs.geotools.org/latest/userguide/tutorial/advanced/abstractdatastore.html
the example code::
http://svn.osgeo.org/geotools/trunk/docs/src/main/java/org/geotools/data/property/
All your work is in GeoTools-space. GeoServer will automatically load any DataStoreFactorySpi declared via SPI on the classpath.
http://download.oracle.com/javase/1.4.2/docs/guide/jar/jar.html#Service%20Provider
(1) Write an implementation of DataStoreFactorySpi and a corresponding DataStore implementation. You will also have a host of readers and sources and things to implement.
(2) Ensure it is declared in META-INF/services/org.geotools.data.DataStoreFactorySpi in your jar file.
(3) Put the jar file in GeoServer's WEB-INF/lib and reload the servlet.
Kind regards,
Ben.
On 28/06/11 07:20, Robert Harris wrote:
i have a basic question.
is it possible to write some code (presumably using DataStoreFactorySpi, and it's ilk), generate a JAR file, put that jar file under a geoserver installed under say tomcat, and have that store appear in the geoserver web UI such that the features it provides can be composed into layer sets?
i've been swirling around in geotools and geoserver documentation APIs and examples for days and days now, but i can't for the life of me figure out how to do this. i don't know if my mental model of how this should work is wrong, or if there is more configuration i need to provide to geoserver, or one of a thousand other possible mistakes i could be making, so i'm backing up and challenging my basic assumptions.
thank you,
-trebor
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre