Below was how I am trying the create a ImagePyramid store and publish the
layer but seeing something unexpected.

// Create workspace:
curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d
'<workspace><name>wsPyramid</name></workspace>'
http://localhost:8081/geoserver/rest/workspaces
// Workspace was created successfully.

// Create ImagePyramid store:
curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d
'<coverageStore><name>Sioux-Falls</name><enabled>true</enabled><type>ImagePyramid</type><url>/archive/maps/ImagePyramid/testSiouxFalls/pyramid</url></coverageStore>'
 
   
http://localhost:8081/geoserver/rest/workspaces/wsPyramid/coveragestores?configure=all
// The store was created but in the wrong <workspace>.  It was created in
the default workspace <BMNG> instead of the specified workspace "wsPyramid".

// Create the layer from the store. Since the workspace was wrong, I have to
modified the  workspace to see if I can create the layer from it:
curl -u admin:geoserver -v -XPUT -H 'Content-type: text/xml' -d
'<coverageStore><name>Sioux-Falls</name><title>NAIP Imagery of Sioux
Falls</title></coverageStore>' 
   
http://localhost:8081/geoserver/rest/workspaces/BMNG/coveragestores/Sioux-Falls/coverageStores?recalculate=nativebbox
// The above command executed without error but layer was not created. 
Also, the <store> became disabled. 

Something is wrong but I could not figure out.  Can someone show what I did
wrong and tell me how to fix it?

Many thanks in advance,

Regards,
Tam




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Using-Geoserver-REST-API-to-create-ImagePyramid-and-publish-layer-tp5137630.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to