curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
  -d "<featureType><name>bioimplendt</name> 
<title>theNewTitle</title></featureType>" \
  http://localhost/geoserver/rest/workspaces/wms/datastores/db/featuretypes

 curl -v -u admin:geoserver -XGET 
"http://localhost/geoserver/rest/layers/wms:bioimplendt";
 curl -v -u admin:geoserver -XDELETE 
"http://localhost/geoserver/rest/layers/wms:bioimplendt";
 curl -v -u admin:geoserver -XGET 
"http://localhost/geoserver/rest/layers/wms:bioimplendt";
No such layer: wms:bioimplendt

curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" \
  -d "<featureType><name>bioimplendt</name> 
<title>theNewTitle</title></featureType>" \
  http://localhost/geoserver/rest/workspaces/wms/datastores/db/featuretypes

this returns - Resource named 'bioimplendt' already exists in store: 'db'

When I run these to add a layer from database and delete it I cannot add it 
back. In the gui I see the layer as published, but not showing in layers or 
layer preview. Is this correct?

Geoserver 2.5.2

Thanks,
Jim

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to