Hi Jakub,

You can use Geoserver RESTful services to generate the features and layers
automatically. It's by far much more safe implement a client API to deal
with the GS REST interface, implementing the standard operations - add,
update and remove workspaces/datastores/features type/layers/whatever you
need - than managing the correspondent configurations files directly. 

For example, in the project I'm working we needed to instantiate N feature
types from several Oracle datastores. To do this, and based on the metadata
present in user_sdo_geom_metadata (oracle locator/spatial specific table)
table, a batch script with cURL commands was generated.

For more examples and explanations
http://docs.geoserver.org/2.0.x/en/user/extensions/rest/rest-config-api.html
http://docs.geoserver.org/2.0.x/en/user/extensions/rest/rest-config-examples
.html

clients library examples
http://bitbucket.org/dwins/gsconfigpy
https://svn.codehaus.org/geoserver/trunk/src/community/restconfig-java

Hope this helps.

Cheers,
Pedro Mendes



KubaKuba wrote:
> 
> Hi forum 
> 
> I have a big set of data stored in PostGis Tables. I is about 300
> layers/tables. I wanted to make a program, which would create data stores
> and layers automatically. The problem is that there are namespace.xml and
> workspace.xml files inside of each store directory and featuretype.xml and
> layer.xml inside of each layer directory. In order to generate this xml
> files automatically i am planning to use JAXB tools . the problem is that
> i need xml Schema for all of this xm files to generate Java Classes and
> afterwards xml files for datastores and layers. Is it  possible to get
> those xml schema online or the way of generating them form xml files..
> 
> Cheers Kuba 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/workspaces-xml-schemas-tp29449003p29449170.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to