[Geoserver-users] coverage editor from command line?

Is it possible to run geoserver's coverage editor from the
command line? That is, instead of using the sequence of web
pages (Create New Coverage Data Set, Coverage Data Set
Editor, Coverage Editor) to create the info.xml file, can
that be done from the command line?

Would I need to get and build GeoTools to do that?

Thanks,

Wendell

Hi Wendell,

The answer to this question is a bit more complicated than we'd like it to be (fortunately this is being worked on.) Basically:
Today: There's no supported way, however it is possible to put all the files in the right place and prompt GeoServer to reload (either by restarting it entirely or simulating a press of the 'reload' button in the configuration page). More on this is on the wiki at http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog

The Future: There will be a RESTful interface for programmatically changing the catalog (over HTTP, so you'll even be able to do it remotely). I don't think there are any plans for a command-line tool at the moment; however making changes from the command-line will be easily accomplished using something like cURL. If you want to look at the discussion about how this will work you can check out this thread on the developers mailing list: http://www.nabble.com/GeoServer-Resources-to16318517.html#a16318517 as well as this page on the wiki: http://geoserver.org/display/GEOSDOC/GeoServer+Resources . If you have any thoughts on this (even a listing of 'things I would like to be easy' is very useful) feel free to send them our way.

Hope this helps,
-David Winslow

Wendell Turner wrote:

Is it possible to run geoserver's coverage editor from the
command line? That is, instead of using the sequence of web
pages (Create New Coverage Data Set, Coverage Data Set
Editor, Coverage Editor) to create the info.xml file, can
that be done from the command line?

Would I need to get and build GeoTools to do that?

Thanks,

Wendell

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4040,48598c59284612085621377!

On Thu, Jun 19, 2008 at 03:21:51AM -0400, David Winslow wrote:

Hi Wendell,

The answer to this question is a bit more complicated than we'd like it to
be (fortunately this is being worked on.) Basically:
Today: There's no supported way, however it is possible to put all the
files in the right place and prompt GeoServer to reload (either by
restarting it entirely or simulating a press of the 'reload' button in the
configuration page). More on this is on the wiki at
http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog

Thanks, I'll try the perl scripts. I have about 75
individual maps that I want to load, so doing that by hand
would be tedious to say the least.

The Future: There will be a RESTful interface for programmatically changing
the catalog (over HTTP, so you'll even be able to do it remotely). I don't
think there are any plans for a command-line tool at the moment; however
making changes from the command-line will be easily accomplished using
something like cURL.

I couldn't get curl to get past the javascript. I'll keep
trying.

If you want to look at the discussion about how this
will work you can check out this thread on the developers mailing list:
http://www.nabble.com/GeoServer-Resources-to16318517.html#a16318517 as

That thread is quite involved. I'll try to follow it.

well as this page on the wiki:
http://geoserver.org/display/GEOSDOC/GeoServer+Resources .

That looks like good information. Thanks.

If you have any
thoughts on this (even a listing of 'things I would like to be easy' is
very useful) feel free to send them our way.

As I get new versions of the maps, It would be nice to have
all of the commands in a makefile to:
- use gdal to convert to right format & translate
- figure out coordinates & create info.xml & put into
  directory & catalog.xml
- restart geoserver

don't know how easy that is, however.

Wendell

Oops, didn't see this one until today due to my spam filter.

Don't bang your head against the wall too hard trying to get curl working with the current UI, that was never intended to work and is not going to be simple. I meant curl would be easy to use with the new REST API. By the way, there is a community module called RESTConfig that does provide the rest endpoints described; however it does not line up 100% with the proposal I linked earlier. I'll be updating the documentation for it soon, so keep an eye out.

-David Winslow

Wendell Turner wrote:

On Thu, Jun 19, 2008 at 03:21:51AM -0400, David Winslow wrote:
  

Hi Wendell,

The answer to this question is a bit more complicated than we'd like it to be (fortunately this is being worked on.) Basically:
Today: There's no supported way, however it is possible to put all the files in the right place and prompt GeoServer to reload (either by restarting it entirely or simulating a press of the 'reload' button in the configuration page). More on this is on the wiki at http://geoserver.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog
    
Thanks, I'll try the perl scripts. I have about 75
individual maps that I want to load, so doing that by hand
would be tedious to say the least.

The Future: There will be a RESTful interface for programmatically changing the catalog (over HTTP, so you'll even be able to do it remotely). I don't think there are any plans for a command-line tool at the moment; however making changes from the command-line will be easily accomplished using something like cURL.
    
I couldn't get curl to get past the javascript. I'll keep
trying.

If you want to look at the discussion about how this will work you can check out this thread on the developers mailing list: http://www.nabble.com/GeoServer-Resources-to16318517.html#a16318517 as
    
That thread is quite involved. I'll try to follow it.

well as this page on the wiki: http://geoserver.org/display/GEOSDOC/GeoServer+Resources .
    
That looks like good information. Thanks.

If you have any thoughts on this (even a listing of 'things I would like to be easy' is very useful) feel free to send them our way.
    
As I get new versions of the maps, It would be nice to have
all of the commands in a makefile to:
- use gdal to convert to right format & translate
- figure out coordinates & create info.xml & put into
  directory & catalog.xml
- restart geoserver

don't know how easy that is, however.

Wendell

!DSPAM:4040,485bb1c7218001030819293!

On Wed, Jun 25, 2008 at 09:44:20AM -0400, David Winslow wrote:

Oops, didn't see this one until today due to my spam filter.
Don't bang your head against the wall too hard trying to get curl working
with the current UI, that was never intended to work and is not going to be
simple.

That is a correct statement. I was able to get curl
working by running wireshark on a real web-page session and
reverse engineering it. It was tricky, but was able to get
a script that inserts my 77 maps into geoserver.

I meant curl would be easy to use with the new REST API.

I'm not familiar with that API (but I wasn't familiar with
curl, either, before this).

By the
way, there is a community module called RESTConfig that does provide the
rest endpoints described; however it does not line up 100% with the
proposal I linked earlier. I'll be updating the documentation for it soon,
so keep an eye out.

I'll do that. Thanks,

Wendell turner

Okay, I have updated the wiki to reflect what's actually there now.

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

-David Winslow

Wendell Turner wrote:

On Wed, Jun 25, 2008 at 09:44:20AM -0400, David Winslow wrote:
  

Oops, didn't see this one until today due to my spam filter. Don't bang your head against the wall too hard trying to get curl working with the current UI, that was never intended to work and is not going to be simple.
    
That is a correct statement. I was able to get curl
working by running wireshark on a real web-page session and
reverse engineering it. It was tricky, but was able to get
a script that inserts my 77 maps into geoserver.

I meant curl would be easy to use with the new REST API.
    
I'm not familiar with that API (but I wasn't familiar with
curl, either, before this).

By the way, there is a community module called RESTConfig that does provide the rest endpoints described; however it does not line up 100% with the proposal I linked earlier. I'll be updating the documentation for it soon, so keep an eye out.
    
I'll do that. Thanks,

Wendell turner

!DSPAM:4040,486255f283012085621377!

It seems like you need a solution like our Ingestion Engine (http://www.geo-solutions.it/trac/IngestionEngine) :stuck_out_tongue:

We had similar problems here and so we built an automatic and extensible system to ingest dataset, both gridded and vectorial, to GeoServer via different protocols … I hope this could become a nice GeoServer plugin in the near future.

On Thu, Jun 19, 2008 at 12:29 AM, Wendell Turner <wendell@anonymised.com> wrote:

Is it possible to run geoserver’s coverage editor from the
command line? That is, instead of using the sequence of web
pages (Create New Coverage Data Set, Coverage Data Set
Editor, Coverage Editor) to create the info.xml file, can
that be done from the command line?

Would I need to get and build GeoTools to do that?

Thanks,

Wendell


Check out the new SourceForge.net Marketplace.
It’s the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Alessio Fabiani
Vice-President /CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 349 8227000

http://www.geo-solutions.it