[Geoserver-devel] Adding layers and layer groups programmatically

Does rest api work for subj in geoserver 2.0.2? I form a request as described in
REST Configuration examples and get an error “HTTP/1.1 405 Method Not Allowed”.
I’ve found a similiar issue in mail list archive posted in 2009 and there was information
it doesn’t.
p.s. Is there any possibility to make layer addition (from PostGIS database for example)
programmatically without page creation? I’d like to make a class that generates layers
according to injected parameters, no wickets or other gui infrastructure elements needed.

I’ve managed to create a datastore which is quite trivial when using GeoTools infrastructure. The main
problem still stands - how do i add it to geoserver? I guess i need to have a reference to an instance of
geoserver application, but a) my datastore generator is plain java class that doesn’t inherit from
GeoserverBasePage b) it is executed from servlet. Any ideas how to overcome this? Thanks in advance.


From: sky.l1ne@anonymised.com
To: geoserver-devel@lists.sourceforge.net
Date: Wed, 24 Nov 2010 22:57:06 +0700
Subject: [Geoserver-devel] Adding layers and layer groups programmatically

Does rest api work for subj in geoserver 2.0.2? I form a request as described in
REST Configuration examples and get an error “HTTP/1.1 405 Method Not Allowed”.
I’ve found a similiar issue in mail list archive posted in 2009 and there was information
it doesn’t.
p.s. Is there any possibility to make layer addition (from PostGIS database for example)
programmatically without page creation? I’d like to make a class that generates layers
according to injected parameters, no wickets or other gui infrastructure elements needed.

------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel