On 04/01/2011 12:45 PM, Federica De Martin wrote:
> Thank you for the answer.
> My  geoserver istance is deployed on a jboss application server so in the
> deploy directory I've got the geoserver.war directory.
> I suppose that the configuration files were deleted because I didn't defined
> the GEOSERVER_DATA_DIR in my web.xml file (I thought that geoserver uses the
> default data directory mantaining the data even if there isn't defined any
> one in web.xml)

Indeed it does, but it is current practice to specify an external data dir to 
avoid overwriting the established configuration any time a new installation is 
done.


> I've tried to define a postgis datastore and adding some layers. The files
> generated by geoserver are:
>      - GEOSERVER_DATA_DIR/workspaces/ws_name/ds_name/datastore.xml
>          where there are the parameters about the connection
>      - GEOSERVER_DATA_DIR/workspaces/ws_name/ds_name/l_name/feature.xml
>      - GEOSERVER_DATA_DIR/workspaces/ws_name/ds_name/l_name/layer.xml
>          where there are the parameters about the layer , its position and
> projection, its style..
>
> For every 'object' I saw there is an id tag, for example:
>      <id>LayerInfoImpl--5838fbbb:12f1062e5eb:-7e80</id>
>      <id>FeatureTypeInfoImpl--5838fbbb:12f1062e5eb:-7e81</id>
>      ...
> Is there a meaning for each part of the id code or could it be setted with
> some other code?

No meaning, these are just Ids: AFAIU, the class name is there only to lower 
the 
chance of a collision.


> I tried to edit it on an existing layer and it keeps on
> working. But if I try to create a new layer in the same datastore it is
> never loaded. This are the files I create:
>      - GEOSERVER_DATA_DIR/workspaces/ws_name/ds_name/newl_name/feature.xml
>      - GEOSERVER_DATA_DIR/workspaces/ws_name/ds_name/newl_name/layer.xml
> I update the layer and feature name and correctly set the id with some new
> values in both files.

One question: would not be easier to use the ReST API ?

Moreover, configuration files are implementation-dependent, hence they are not 
guaranteed to stay the same throughout releases.


> Are there other files I have to edit to make geoserver load the new layer?

Silly question: have you hit "Reload" on the server status page ?

Regards,

Luca Morandini
http://www.lucamorandini.it


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to