[Geoserver-users] Command Line Geoserver?

Hi,

I was wondering if anyone had any thoughts or experience in scripting
layers into Geoserver from the command line. We're looking to implement
a system whereby users/processes can simply upload a Shapefile which
gets ingested into PostGIS and subsequently put into Geoserver. Our
simplified workplan for doing this, at least initially, entails
adding/appending "scraped" metadata from the file into Geoserver's data
directory. If there's a better solution, or an existing solution for
this, I'd definitely like to hear about it.

-pete

--
Pete Giencke
Lead Systems Developer
Great Lakes Commission
2805 S. Industrial Hwy., Suite 100
Ann Arbor, MI 48104-6791

Pete,

Yeah, I've done a bit of that, and I did it exactly the way that you're suggesting. Scraping metadata from the data, and then adding a new directory to geoserver's data directory.

I then used wget and the "--save-cookies" flag to simulate a login to geoserver and wget with "--load-cookies" to simulate a click of the "load" button. This causes geoserver to re-read its data directory, and it should then pick up the changed data directory.

--saul

Pete Giencke wrote:

Hi,

I was wondering if anyone had any thoughts or experience in scripting
layers into Geoserver from the command line. We're looking to implement
a system whereby users/processes can simply upload a Shapefile which
gets ingested into PostGIS and subsequently put into Geoserver. Our
simplified workplan for doing this, at least initially, entails
adding/appending "scraped" metadata from the file into Geoserver's data
directory. If there's a better solution, or an existing solution for
this, I'd definitely like to hear about it.

-pete

We are using scripts to upload files, modify the Geoserver catalog and
then load said catalog, so the new layers are accessible.

Just curious, why would you want to ingest the shapefiles into
Postgis, since Geoserver can use the shapefiles without Postgis?

Alex

On 7/26/06, Pete Giencke <pgiencke@anonymised.com> wrote:

Hi,

I was wondering if anyone had any thoughts or experience in scripting
layers into Geoserver from the command line. We're looking to implement
a system whereby users/processes can simply upload a Shapefile which
gets ingested into PostGIS and subsequently put into Geoserver. Our
simplified workplan for doing this, at least initially, entails
adding/appending "scraped" metadata from the file into Geoserver's data
directory. If there's a better solution, or an existing solution for
this, I'd definitely like to hear about it.

-pete

--
Pete Giencke
Lead Systems Developer
Great Lakes Commission
2805 S. Industrial Hwy., Suite 100
Ann Arbor, MI 48104-6791

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

Alex's work is here: http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog

We are hoping to have better ways of doing this in the future, but for now the popular way is to mess with the data_dir and force a reload. We built these DTO java objects to pass across the wire, but they never seemed to really catch on.

best regards,

Chris

Alexander Petkov wrote:

We are using scripts to upload files, modify the Geoserver catalog and
then load said catalog, so the new layers are accessible.

Just curious, why would you want to ingest the shapefiles into
Postgis, since Geoserver can use the shapefiles without Postgis?

Alex

On 7/26/06, Pete Giencke <pgiencke@anonymised.com> wrote:

Hi,

I was wondering if anyone had any thoughts or experience in scripting
layers into Geoserver from the command line. We're looking to implement
a system whereby users/processes can simply upload a Shapefile which
gets ingested into PostGIS and subsequently put into Geoserver. Our
simplified workplan for doing this, at least initially, entails
adding/appending "scraped" metadata from the file into Geoserver's data
directory. If there's a better solution, or an existing solution for
this, I'd definitely like to hear about it.

-pete

--
Pete Giencke
Lead Systems Developer
Great Lakes Commission
2805 S. Industrial Hwy., Suite 100
Ann Arbor, MI 48104-6791

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44c7d8e336121336712104!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Chris and Alex,

Alex's work is here:
http://docs.codehaus.org/display/GEOSDOC/Alternative+for+reloading+the+Geoserver+catalog

Thanks for the link. I must have missed this while perusing through the
documentation. Always nice to not reinvent the wheel if you don't have to...

Just curious, why would you want to ingest the shapefiles into
Postgis, since Geoserver can use the shapefiles without Postgis?

PostGIS is our geospatial backbone. For the amount of data we ingest and
disseminate on a daily basis, and the applications which support those
activities, there's no other option (short of going the SDE route).

-pete

Everyone feel free to add your thoughts and ideal workflows to this RnD page: http://docs.codehaus.org/display/GEOS/Ingestion+Engine

This really seems to be a popular topic, and I'd like to hear how people want it to work. Like so GeoServer would do all the metadata scrapping for you, maybe even give you the option of putting in to a database, ect. It's probably a bit away at this point, but it's always good to gather use cases so we can get it exactly right when we do have the time and/or have a plan in place if someone wants to fund a developer to do it.

best regards,

Chris

Saul Farber wrote:

Pete,

Yeah, I've done a bit of that, and I did it exactly the way that you're suggesting. Scraping metadata from the data, and then adding a new directory to geoserver's data directory.

I then used wget and the "--save-cookies" flag to simulate a login to geoserver and wget with "--load-cookies" to simulate a click of the "load" button. This causes geoserver to re-read its data directory, and it should then pick up the changed data directory.

--saul

Pete Giencke wrote:

Hi,

I was wondering if anyone had any thoughts or experience in scripting
layers into Geoserver from the command line. We're looking to implement
a system whereby users/processes can simply upload a Shapefile which
gets ingested into PostGIS and subsequently put into Geoserver. Our
simplified workplan for doing this, at least initially, entails
adding/appending "scraped" metadata from the file into Geoserver's data
directory. If there's a better solution, or an existing solution for
this, I'd definitely like to hear about it.

-pete

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44c7e0a938541460912952!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org