[Geoserver-users] Dynamically adding lots of data to GeoServer

Hi,
This is just to satisfy my curiosity really.

The project I'm working uses many individual images which may be added to in
the future. Adding these to GeoServer using the browser interface is very
tedious. I was wondering whether there's a possiblity of adding data in a
more dynamic way either now or in the future?

For example, imagine a plugin that loads when GeoServer starts which checks
a certain directory for new files matching a certain criteria then adds them
to using some given parameters. Or even just a way of adding data more
programmatically (via the command line or something), so an external program
could be written to take advantage of this.

Personally, I would find this sort of functionality very useful.

Cheers,
Jon
--
View this message in context: http://www.nabble.com/Dynamically-adding-lots-of-data-to-GeoServer-tp15454840p15454840.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Jon,

I have a same kind of need. Actually I would have to import a couple of hundred shp-files into GS and produce raster images out of them with certain SLD. Let's wait and see what the experts will comment on this issue.

- mika -

Jon Britton kirjoitti:

Hi,
This is just to satisfy my curiosity really.

The project I'm working uses many individual images which may be added to in
the future. Adding these to GeoServer using the browser interface is very
tedious. I was wondering whether there's a possiblity of adding data in a
more dynamic way either now or in the future?

For example, imagine a plugin that loads when GeoServer starts which checks
a certain directory for new files matching a certain criteria then adds them
to using some given parameters. Or even just a way of adding data more
programmatically (via the command line or something), so an external program
could be written to take advantage of this.

Personally, I would find this sort of functionality very useful.

Cheers,
Jon
  

Lehtonen, Mika ha scritto:

Hi Jon,

I have a same kind of need. Actually I would have to import a couple of hundred shp-files into GS and produce raster images out of them with certain SLD. Let's wait and see what the experts will comment on this issue.

The current answer is that, unfortunately, you have to do it by hand
or create a script that mimics a user dong it by hand, some hints are
provided here:
http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog

In the 1.6.x series we should add a REST api to allow programmatic configuration using simple http calls. This would be much better, yet
you would have to write a script anyways.

In the longer term the UI will be redone, and quick adding lots of
data from a db is something I want to tackle. With the current UI framework it's simply too painful to do.

What Jon is looking for, that is, automated sucking data into geoserver,
has been called in the past an "ingestion engine". GeoSolutions developed on, but it's not open source. The nice thing about the
REST api is that it'll become quite a bit easier to develop one
using the technology one likes better.

Hope this helps
Cheers
Andrea

Thanks for the response.

This all sounds very interesting. Where can I get information on the REST
api? I'd like to get familiar with it.

The future is bright, the future is GeoServer :wink:

Cheers,
Jon

aaime wrote:

Lehtonen, Mika ha scritto:

Hi Jon,

I have a same kind of need. Actually I would have to import a couple of
hundred shp-files into GS and produce raster images out of them with
certain SLD. Let's wait and see what the experts will comment on this
issue.

The current answer is that, unfortunately, you have to do it by hand
or create a script that mimics a user dong it by hand, some hints are
provided here:
http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog

In the 1.6.x series we should add a REST api to allow programmatic
configuration using simple http calls. This would be much better, yet
you would have to write a script anyways.

In the longer term the UI will be redone, and quick adding lots of
data from a db is something I want to tackle. With the current UI
framework it's simply too painful to do.

What Jon is looking for, that is, automated sucking data into geoserver,
has been called in the past an "ingestion engine". GeoSolutions
developed on, but it's not open source. The nice thing about the
REST api is that it'll become quite a bit easier to develop one
using the technology one likes better.

Hope this helps
Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Dynamically-adding-lots-of-data-to-GeoServer-tp15454840p15456849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Jon Britton ha scritto:

Thanks for the response.

This all sounds very interesting. Where can I get information on the REST
api? I'd like to get familiar with it.

Hum, I'm not very up to speed with it, but I'm cc'ing the main
developer of it, he should be able to give you more pointers
Cheers
Andrea

The REST API is still under pretty heavy development, I strongly recommend
against writing anything serious against it at this point. That said, it
does mostly *work* so you could probably use it as part of a bash script with
curl or something similarly quick and dirty. It's currently implemented as a
community module in geoserver trunk (there's an older version in the 1.6.x
branch, but it's basically non-functional.) You should be able to do a
checkout of 1.6.x and use svn to switch over that one module to the trunk
version. I'll put an outline of how to do this on the Geoserver wiki with
the rest of the documentation on the REST API (which lives at
http://geoserver.org/display/GEOSDOC/RESTful+Configuration+API) This
documentation is going to be changing a lot until the REST API stabilizes, so
keep that in mind.

Hope this helps,
David Winslow

On Wednesday 13 February 2008 08:43:33 Andrea Aime wrote:

Jon Britton ha scritto:
> Thanks for the response.
>
> This all sounds very interesting. Where can I get information on the REST
> api? I'd like to get familiar with it.

Hum, I'm not very up to speed with it, but I'm cc'ing the main
developer of it, he should be able to give you more pointers
Cheers
Andrea

!DSPAM:4040,47b2f40817961012714783!

Hello,

Programmatically inserting data is an integral part of the project I work
on.

I have created a tutorial based on the original "Alternative for Reloading
the GeoServer Catalog" website. It is in Java, and should provide enough
direction to complete most tasks in GeoServer.

http://www.olympianengine.com/tutorials/geoserver/index.html

Cheers,
-Sam

David Winslow-3 wrote:

The REST API is still under pretty heavy development, I strongly recommend
against writing anything serious against it at this point. That said, it
does mostly *work* so you could probably use it as part of a bash script
with
curl or something similarly quick and dirty. It's currently implemented
as a
community module in geoserver trunk (there's an older version in the 1.6.x
branch, but it's basically non-functional.) You should be able to do a
checkout of 1.6.x and use svn to switch over that one module to the trunk
version. I'll put an outline of how to do this on the Geoserver wiki with
the rest of the documentation on the REST API (which lives at
http://geoserver.org/display/GEOSDOC/RESTful+Configuration+API) This
documentation is going to be changing a lot until the REST API stabilizes,
so
keep that in mind.

Hope this helps,
David Winslow

On Wednesday 13 February 2008 08:43:33 Andrea Aime wrote:

Jon Britton ha scritto:
> Thanks for the response.
>
> This all sounds very interesting. Where can I get information on the
REST
> api? I'd like to get familiar with it.

Hum, I'm not very up to speed with it, but I'm cc'ing the main
developer of it, he should be able to give you more pointers
Cheers
Andrea

!DSPAM:4040,47b2f40817961012714783!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Dynamically-adding-lots-of-data-to-GeoServer-tp15454840p15462751.html
Sent from the GeoServer - User mailing list archive at Nabble.com.