Hello list,
I must be overlooking something simple. I am using the REST API to create a
Geoserver coveragestore and coverage. I followed the example and
successfully created the store. However, when I go to the web interface I
find that I didn't publish/create the image mosaic jdbc store.
This is the code snippet that I am using in python
payload = f.read()
headers = {'Content-type':'text/xml'}
resp = requests.post(workspace_url, auth=(user,word), data=payload,
headers=headers)
I tried posting to an xml to this url
"/workspaces/<ws>/coveragestores/<cs>/coverages/<c>" and received a 401
error.
I am overlooking something, but I am not sure what. According to this url (
http://docs.geoserver.org/stable/en/user/rest/api/coveragestores.html). The
coverage should be created automatically. " The coverageName parameter
specifies the name of the coverage within the coverage store. This
parameter is only relevant if the configure parameter is not equal to
“none”. If not specified the resulting coverage will receive the same name
as its containing coverage store. "
However, I do not have a new layer in geoserver. It is possible for me to
go through the web interface and add the layer, but I would prefer to
automate if possible.
--
David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
612-626-3933
www.terrapop.org
------------------------------------------------------------------------------
Give your users amazing mobile app experiences with Intel XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2-D/3-D games for multiple OSs.
Then get your creation into app stores sooner, with many ways to monetize.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users