Hello,
following my email from May 10, I'd like to be sure about creating a new datastore for GeoServer. Basically, what I think I have to do is:
1.) create a FeatureType
2.) create an instance
3.) create the datastore
4.) interface with GeoServer
5.) register the datastore in GeoServer (add jar-file in the webapp tree)
Could you please tell me whether this procedure is right or if I'm missing something?
And especially: how is the interfacing with GeoServer done, i.e. I want to create a new selectable Feature Data Set. Which API do I have to implement etc. Are there any examples around?
Thanks already in advance,
Bernd.
Hi Bernd,
Just glanced over that thread. And do you mean that you are going to implement your own geotools datastore? Or do you mwan that you have a datastore and just want to add feature types from it GeoServer?
-Justin
Bernd Resch wrote:
Hello,
following my email from May 10, I'd like to be sure about creating a new datastore for GeoServer. Basically, what I think I have to do is:
1.) create a FeatureType
2.) create an instance
3.) create the datastore
4.) interface with GeoServer
5.) register the datastore in GeoServer (add jar-file in the webapp tree)
Could you please tell me whether this procedure is right or if I'm missing something?
And especially: how is the interfacing with GeoServer done, i.e. I want to create a new selectable Feature Data Set. Which API do I have to implement etc. Are there any examples around?
Thanks already in advance,
Bernd.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,4692534632101431913854!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org
Bernd Resch ha scritto:
Hello,
following my email from May 10, I'd like to be sure about creating a new datastore for GeoServer. Basically, what I think I have to do is:
1.) create a FeatureType
2.) create an instance
3.) create the datastore
4.) interface with GeoServer
5.) register the datastore in GeoServer (add jar-file in the webapp tree)
No, the list is a bit different. You should try and follow the
datastore tutorial on the Geotools web site, here:
http://docs.codehaus.org/display/GEOTDOC/DataStore+Developers+Guide
Once the datastore is coded and working (better unit test it in
isolation from Geoserver) all you have to do make a jar out of
your datastore and drop it inside a Geoserver WEB-INF/lib,
restart, configure it just like any other data store, and you're
done.
The "magic" is the SPI subystem: when coding the datastore you'll
build a DataStoreFactory and a text file to be put in META-INF
that Geoserver will look up to determine what datastores are
there. If you coded everything right, your datastore will be
picked up too, and it will be available in the Geoserver user
interface.
Also, I suggest you checkout geotools from the svn repo and set
it up using the Geotools developer guide
(http://docs.codehaus.org/display/GEOT/Home), maven will make it
easier to setup your datastore (handling dependencies and the like)
and you'll have plenty of already coded datastore that you
can refer to.
Hope this helps
Cheers
Andrea
Hi Justin,
what I basically want to do is to make sensors queryable in real-time via GeoServer and thus need a live "converter" from the O&M XML structure (sensor measurements) to some XML format GeoServer can use as a data source (e.g. GML). I don't want to use a database, which is constantly updated, but just a servlet having GML as an output type. The URL of the servlet shall then be specified the data source in GeoServer.
It has to be said that the XML structure is flat (max. 7 element levels) and it is _static_. Thus, I don't have to implement a full schema-based XSLT but only a static mapping of elements.
Do you think there is an easier way of implementing this than creating a separate datastore?
Best,
Bernd.
Justin Deoliveira wrote:
Hi Bernd,
Just glanced over that thread. And do you mean that you are going to implement your own geotools datastore? Or do you mwan that you have a datastore and just want to add feature types from it GeoServer?
-Justin
Bernd Resch wrote:
Hello,
following my email from May 10, I'd like to be sure about creating a new datastore for GeoServer. Basically, what I think I have to do is:
1.) create a FeatureType
2.) create an instance
3.) create the datastore
4.) interface with GeoServer
5.) register the datastore in GeoServer (add jar-file in the webapp tree)
Could you please tell me whether this procedure is right or if I'm missing something?
And especially: how is the interfacing with GeoServer done, i.e. I want to create a new selectable Feature Data Set. Which API do I have to implement etc. Are there any examples around?
Thanks already in advance,
Bernd.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,4692534632101431913854!
Hi Bernd,
Hmmm, yeah implementing the mapping as a XSLT is probably simpler then writing your own datastore. Especially since your target schema is static and the xml input format sounds simple.
So then all you need is a simple servlet / service in geoserver which ties it all together.
Bernd Resch wrote:
Hi Justin,
what I basically want to do is to make sensors queryable in real-time via GeoServer and thus need a live "converter" from the O&M XML structure (sensor measurements) to some XML format GeoServer can use as a data source (e.g. GML). I don't want to use a database, which is constantly updated, but just a servlet having GML as an output type. The URL of the servlet shall then be specified the data source in GeoServer.
It has to be said that the XML structure is flat (max. 7 element levels) and it is _static_. Thus, I don't have to implement a full schema-based XSLT but only a static mapping of elements.
Do you think there is an easier way of implementing this than creating a separate datastore?
Best,
Bernd.
Justin Deoliveira wrote:
Hi Bernd,
Just glanced over that thread. And do you mean that you are going to implement your own geotools datastore? Or do you mwan that you have a datastore and just want to add feature types from it GeoServer?
-Justin
Bernd Resch wrote:
Hello,
following my email from May 10, I'd like to be sure about creating a new datastore for GeoServer. Basically, what I think I have to do is:
1.) create a FeatureType
2.) create an instance
3.) create the datastore
4.) interface with GeoServer
5.) register the datastore in GeoServer (add jar-file in the webapp tree)
Could you please tell me whether this procedure is right or if I'm missing something?
And especially: how is the interfacing with GeoServer done, i.e. I want to create a new selectable Feature Data Set. Which API do I have to implement etc. Are there any examples around?
Thanks already in advance,
Bernd.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,46933b3a281271804284693!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org