[Geoserver-users] geoserver API or Ingestion Engine

Hi,

is it possible to add a datastore and feature to geoserver without using the
web interface? I'm thinking of something like a geoserver API that could be
used by a servlet to dynamically add and remove data sets within geoserver.

I've found some old posts that mention an 'Ingestion Engine' which seems to
do what I'm asking, is it available (even as a beta)?

Thanks,
Dave.
--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21581793.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao David,
I have not done much marketing to the project since I still have not
taken a final decision on licensing and the headers do not always
contain a license. We are actively developing on this project but at
the same time we are using it in various deployments.

Since it seems that more and more people do need similar
functionalities, i think it is about time to go public with it.

The project is here:
http://code.google.com/p/geobatch/

Feel free to come back with questions.

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Jan 21, 2009 at 1:01 PM, djud <djud@anonymised.com> wrote:

Hi,

is it possible to add a datastore and feature to geoserver without using the
web interface? I'm thinking of something like a geoserver API that could be
used by a servlet to dynamically add and remove data sets within geoserver.

I've found some old posts that mention an 'Ingestion Engine' which seems to
do what I'm asking, is it available (even as a beta)?

Thanks,
Dave.
--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21581793.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Simone,

I've followed the project link and, if I understand it correctly, I have to
build my own version of geoserver with geobatch included.

Will I need to checkout the geobatch code or can I just follow the mavern
build instructions (and it will download all the necessary files)?

Is there any user documentation available or do I need to browse the code?

Final question, is it envisaved that this will eventually become part of the
standard geoserver distribution and, if so, is there an expected release
date? (that was two questions!)

Thanks,
Dave

--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21582989.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ah yes, I see that I do need to checkout the code.

--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21583423.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

It looks like geobatch will handle geotiffs and shapefiles.

Will it be able to add a new feature type from an existing Oracle Datastore?
That is, if I add a new geometry table to oracle, can I use geobatch to
dynamically add the table as a new feature type within geoserver?

Thanks,
Dave

--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21583863.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Dave,

There is also an experimental rest api available in which it it possible to add new data stores through.

You can download the extensions from

http://downloads.sourceforge.net/geoserver/geoserver-1.7.1-rest-plugin.zip?modtime=1230060781&big_mirror=0

And some docs here:

http://geoserver.org/display/GEOSDOC/RESTful+Configuration+API

As I said, a word of warning that this is an initial cut, of which will probably be changing when officially released. See proposed REST api in the above doc.

-Justin

djud wrote:

Thanks Simone,

I've followed the project link and, if I understand it correctly, I have to
build my own version of geoserver with geobatch included.

Will I need to checkout the geobatch code or can I just follow the mavern
build instructions (and it will download all the necessary files)?

Is there any user documentation available or do I need to browse the code?

Final question, is it envisaved that this will eventually become part of the
standard geoserver distribution and, if so, is there an expected release
date? (that was two questions!)

Thanks, Dave

Simone.Giannecchini wrote:

Ciao David,
I have not done much marketing to the project since I still have not
taken a final decision on licensing and the headers do not always
contain a license. We are actively developing on this project but at
the same time we are using it in various deployments.

Since it seems that more and more people do need similar
functionalities, i think it is about time to go public with it.

The project is here:
http://code.google.com/p/geobatch/

Feel free to come back with questions.

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Jan 21, 2009 at 1:01 PM, djud <djud@anonymised.com> wrote:

Hi,

is it possible to add a datastore and feature to geoserver without using
the
web interface? I'm thinking of something like a geoserver API that could
be
used by a servlet to dynamically add and remove data sets within
geoserver.

I've found some old posts that mention an 'Ingestion Engine' which seems
to
do what I'm asking, is it available (even as a beta)?

Thanks,
Dave.
--
View this message in context:
http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21581793.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Ciao David,
here you have some answers...

- yes, you need to build the code yourself for the moment.
Instructions are here
(http://code.google.com/p/geobatch/wiki/BuildInstructions). I might
add a war to the project though. Definitely having releases is
something we need to work on asap.

- document is abset right now since we are porting the project from
our internal svn to the google hosting, and we have not ported the old
docs (documentation was scarce anyway :slight_smile: ). I am going to port some
parts of it later on today.

- yes, we want to make geobatch (or whatever the final name will be)
an extension for geoserver.

- yes, it is possible to use geobatch to create a new feature type, in
fact we are developing (or better porting) the functionality to
create/update a feture type from incoming shapefiles

As far as timeline for development are concerned, we have some
internal plans for the geobatch which I want to review before posting
to the site. However, as usual, timeline and features which we will
develop are mainly driven by available funding.

Ciao,
Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Jan 21, 2009 at 3:10 PM, djud <djud@anonymised.com> wrote:

It looks like geobatch will handle geotiffs and shapefiles.

Will it be able to add a new feature type from an existing Oracle Datastore?
That is, if I add a new geometry table to oracle, can I use geobatch to
dynamically add the table as a new feature type within geoserver?

Thanks,
Dave

--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21583863.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Justin,

the REST API looks like the best option for me.

I'm afaid I still need some help though...

The situation is this, I have a spatial db that is linked to geoserver as a
datastore and I need to add one of its views to geoserver as a new feature
type.

If, from a client browser, I request the URL:
http://localhost/geoserver/rest/folders/MyDatastore/layers
I receive a correct list of 'Configured feature types' and 'Unconfigured
feature types'. My task is to make one of the unconfigured featuretypes
(say, FEATURE) a configured one.

It looks like I need to make a HTTP PUT request from the client (I'm just
using javascript HTTP requests). I've tried sending an empty PUT request to:
http://localhost/geoserver/rest/folders/MyDatastore/layers/FEATURE but that
fails with 'could not find requested resource'. So I tried another PUT
request to the same URL but including the feature's info.xml in the PUT body
(like a POST request) but that fails the same way.

Can you provide some guidlines as to how to configure an unconfigured
feature type using the API.

Also, using geoserver's web interface, I have to login to geoserver's admin
account, is this bypassed when using the API or will I need to supply the
login information somehow?

Thanks for any help,
Dave

Justin Deoliveira-6 wrote:

Hi Dave,

There is also an experimental rest api available in which it it possible
to add new data stores through.

--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21602629.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

The XML format used in info.xml is not the same as the one used by the
REST API. You can get a featuretype configuration in the proper format
by doing a GET request against
http://localhost/geoserver/rest/folders/\{datastore
name}/layers/{featuretype name}/default.xml

PUTing this document to the featuretype URL without the '/default' bit
should configure the featuretype for you. (That's
http://localhost/geoserver/rest/folders/\{datastore
name}/layers/{featuretype name}.xml)

Hope this helps.
David Winslow

On Thu, 2009-01-22 at 03:52 -0800, djud wrote:

Hi Justin,

the REST API looks like the best option for me.

I'm afaid I still need some help though...

The situation is this, I have a spatial db that is linked to geoserver as a
datastore and I need to add one of its views to geoserver as a new feature
type.

If, from a client browser, I request the URL:
http://localhost/geoserver/rest/folders/MyDatastore/layers
I receive a correct list of 'Configured feature types' and 'Unconfigured
feature types'. My task is to make one of the unconfigured featuretypes
(say, FEATURE) a configured one.

It looks like I need to make a HTTP PUT request from the client (I'm just
using javascript HTTP requests). I've tried sending an empty PUT request to:
http://localhost/geoserver/rest/folders/MyDatastore/layers/FEATURE but that
fails with 'could not find requested resource'. So I tried another PUT
request to the same URL but including the feature's info.xml in the PUT body
(like a POST request) but that fails the same way.

Can you provide some guidlines as to how to configure an unconfigured
feature type using the API.

Also, using geoserver's web interface, I have to login to geoserver's admin
account, is this bypassed when using the API or will I need to supply the
login information somehow?

Thanks for any help,
Dave

Justin Deoliveira-6 wrote:
>
> Hi Dave,
>
> There is also an experimental rest api available in which it it possible
> to add new data stores through.
>

That's amazing, a simple GET and PUT, worked perfectly and is exactly what I
was looking for.

Thanks

David Winslow-5 wrote:

The XML format used in info.xml is not the same as the one used by the
REST API. You can get a featuretype configuration in the proper format
by doing a GET request against
http://localhost/geoserver/rest/folders/\{datastore
name}/layers/{featuretype name}/default.xml

PUTing this document to the featuretype URL without the '/default' bit
should configure the featuretype for you. (That's
http://localhost/geoserver/rest/folders/\{datastore
name}/layers/{featuretype name}.xml)

Hope this helps.
David Winslow

--
View this message in context: http://www.nabble.com/geoserver-API-or-Ingestion-Engine-tp21581793p21608164.html
Sent from the GeoServer - User mailing list archive at Nabble.com.